Rozumiem,w takim wypadku pokaże wprost o co mi chodzi.
Fragment kodu z którego muszę wyciągnąć adres m3u8 i skopiować do zmiennej biorąc pod uwagę iż adres ten może zawierać różną liczbe znaków.Sądzę że ktoś mi pomoże:
<script type='text/javascript'>
$(document).ready(function() {
if (HasFlash() && ('False'=='' || 'False' == 'False')) {
EmbedViewerSwf(
"/static/flash/CBV_2p648.swf",
'007__cinnemma',
'edge39-a.stream.highwebmedia.com',
'/xml/viewer.xml',
'0',
'login_required_true_if_loggedin',
'0',
"https://ssl-ccstatic.highwebmedia.com/flash/playerProductInstall.swf",
'AnonymousUser',
"$.mydefchatconn('join_group_show')",
"$.mydefchatconn('spy_on_private')",
'registration_required()',
'0',
"https://ssl-ccstatic.highwebmedia.com/images/flashwatermark.png",
"",
'anonymous',
'e1a01be8f6d528b50932827dfba6f913db0e21fef80330d0777765aa12ad1537',
'100',
'100',
'0'
);
} else {
var html = "<div id='still_video' style='display: none'>";
html += "<video id='still_video_object'";
html += "src='http://origin13.stream.highwebmedia.com:1935/lix-origin/0078__video-sd-629698d9628f0711cd6d4a0a98124d41be4ded32511bc51967f3a69c5bdcdbd2_aac/playlist.m3u8'";
html += "width='498px' height='407px'";
html += "webkit-playsinline autoplay></video></div>";
$('#still_video_container').html(html);
$('#still_video').show();
if (typeof(resizable_player) != "undefined") {
resizable_player.init('0' == '1', true);
}
}
if(typeof resizable_player != "undefined"){
resizable_player.set_resolution_to_max();
}
if(typeof $.mydefchatconn != "undefined"){
$.mydefchatconn('scroll_chat_into_view');
}
$(window).bind('resize', function(event) {
if (this == event.target) {
if(typeof resizable_player != "undefined"){
resizable_player.set_resolution_to_max();
}
}
});