优酷视频swf转html5方法-javascript

window.alert("优酷HTML5播放链接转换");
var input = "";
var ykid = "";
var result = "http://v.youku.com/player/getRealM3U8/vid/";
input = window.prompt("请输入优酷网页地址", "http://v.youku.com/v_show/id_XXXXXXXXXXXXX.html");
ykid = input.slice(-18,-5);
result += ykid;
result += "/type//video.m3u8";
window.prompt("HTML5播放链接", result);

 

除非注明, 风波竹林 文章均为原创,转载请以链接形式标明本文地址
本文地址: https://blog.fbzl.org/优酷视频swf转html5方法-javascript/