-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvv51.js
More file actions
34 lines (24 loc) · 742 Bytes
/
Copy pathvv51.js
File metadata and controls
34 lines (24 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//http://www.tudou.com/programs/view/html5embed.action?code=r4S7Hl4mvLs&resourceId=0_06_05_99
//http://www.tudou.com/programs/view/r4S7Hl4mvLs/?resourceId=0_06_02_99
function parse51vvCode(url,callback) {
var ul = $("video:eq(0)");
var src = ul[0];
src = $(src).attr("src");
callback({
isok: true,
url: src,
type:'detail',
});
}
function getVideos(url, callback) {
parse51vvCode(url, callback)
}
console.log("onloadonloadonload");
getVideos(document.URL, function(e) {
//$("#info").text(typeof(WebViewBridgeAndroid));
console.log(e);
if (typeof(WebViewBridgeAndroid) != "undefined" && WebViewBridgeAndroid) {
WebViewBridgeAndroid.send(JSON.stringify(e));
// $("#info").text(JSON.stringify(e));
}
});