forked from hoyois/plugin-to-html5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSevenone.js
32 lines (28 loc) · 834 Bytes
/
Sevenone.js
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
// Sevenone killer (2011-09-16)
/**
* @link http://www.prosieben.de/
* @link http://www.kabeleins.de/
* @link http://www.sat1.de/
* @link http://www.ran.de/
*/
addKiller("Sevenone", {
"canKill": function(data) {
return /^http:\/\/(?:tvtotal\.prosieben\.de|www\.kabeleins\.de|www\.sat1\.de|www\.ran\.de).*(?:player_core|HybridPlayer)\.swf$/.test(data.src);
},
"process": function(data, callback) {
var clipId = parseFlashVariables(data.params.flashvars).clip_id;
var handleMIMEType = function(type) {
if(type === 'text/plain') return;
callback({
playlist: [{
sources: [{
url: "http://www.prosieben.de/dynamic/h264/h264map/?ClipID=" + clipId,
format: 'MP4',
isNative: true
}]
}]
});
};
getMIMEType("http://www.prosieben.de/dynamic/h264/h264map/?ClipID=" + clipId, handleMIMEType);
}
});