내가 외부 URL에서 자바 스크립트를로드 해요 :구문 분석 자바 스크립트 변수
jQuery(document).ready(function() {
if (HasFlash()) {
EmbedViewerSwf(
"/static/flash/CBV_2p645.swf",
'mia7777',
'edge33-b.stream.highwebmedia.com',
'/xml/viewer.xml',
'0',
'login_required_true_if_loggedin',
'0' ,
"https://ssl-ccstatic.highwebmedia.com/flash/playerProductInstall.swf",
'mario4025',
"$.mydefchatconn('join_group_show')",
"$.mydefchatconn('spy_on_private')",
'registration_required()',
'0',
"https://ssl-ccstatic.highwebmedia.com/images/flashwatermark.png",
"chaturbate.com",
'pbkdf2_sha256%2412000%242NlTeIelZxcU%24j9/x/yjBjRqHJkntlLjDUkBJkh1dEC7XR8sh78/4T2w%3D',
'd2278438db4d37ad094a07e221b30c89ff07627cd1b1732d2f298328a71e9985',
'100',
'100'
);
}
else {
var html = "<div id='still_video' style='display: none'>";
html += "<video id='still_video_object'";
html += "src='http://origin13.stream.highwebmedia.com:1935/live-origin/mia7777-sd-5fd38820138291f9bcf6baa6ac062829f12567166a09f34d50fd93de58a65c79_aac/playlist.m3u8'";
html += "width='498px' height='407px'";
html += "webkit-playsinline autoplay></video></div>";
$('#still_video_container').html(html);
$('#still_video').show();
}
var userAgent = navigator.userAgent;
if (!($.cookie('supress_bline')) && userAgent.indexOf('bline') == -1 && (userAgent.indexOf('iPhone') >= 0 || userAgent.indexOf('iPod') >= 0)) {
$('#bline_notice').show();
}
$('#dismiss_bline_notice').click(function(e) {
e.preventDefault();
$('#bline_notice').hide();
$.cookie('supress_bline', 1, { expires: 30, path: '/' });
});
});
}
가 어떻게 위의 코드에서 선언 된 html
변수의 내용을 얻을 수 있습니다 (사용 PHP 또는 자바 스크립트) :
html += "src='http://origin13.stream.highwebmedia.com:1935/live-origin/mia7777-sd-5fd38820138291f9bcf6baa6ac062829f12567166a09f34d50fd93de58a65c79_aac/playlist.m3u8'";
나는 document.getElementById
으로 시도하고 또한 내 사이트의 전체 HTML을 구문 분석 한 다음 document.writeln
을 사용하여 변수를 가져 왔지만이 부분에 붙어 있습니다.
로 끝 나는 여전히 아무 생각을 사용하여 수행 할 수있는 무엇 다시 묻습니다 ... – sebnukem
위의 코드는 다른 사이트 (url)에 있습니다.이 사이트에서이 변수를 가져 와서 내 사이트로 구문 분석해야합니다. 그래서 "src = 'http : // origin13.stream.highwebmedia.com:1935/live-origin/mia7777-sd-5fd38820138291f9bcf6baa6ac062829f12567166a09f34d50fd93de58a65c79_aac/playlist.m3u8 ' ".. 설명하기가 어렵습니다. – user3477680
오픈 소스는 웹 사이트를 스트리밍하므로 URL을 가져 오는 것이 아닙니다. 범죄); – user3477680