-
Notifications
You must be signed in to change notification settings - Fork 52
/
EmbedVideo.Services.php
146 lines (145 loc) · 6.29 KB
/
EmbedVideo.Services.php
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<?php
// Build services list (may be augmented in LocalSettings.php)
$wgEmbedVideoServiceList = array(
'bambuser' => array(
'extern' => '<iframe src="http://embed.bambuser.com/broadcast/$2" width="$3" height="$4" frameborder="0"></iframe>',
'default_ratio' => 512 / 394
),
'bambuser_channel' => array(
'extern' => '<iframe src="http://embed.bambuser.com/channel/$2" width="$3" height="$4" frameborder="0"></iframe>',
'default_ratio' => 512 / 394
),
'bing' => array(
'extern' => '<iframe style="overflow: hidden;" src="http://hub.video.msn.com/embed/$2" width="$3" height="$4" frameborder="0" scrolling="no" noscroll></iframe>'
),
'bingvideo' => array(
'extern' => '<iframe style="overflow: hidden;" src="http://hub.video.msn.com/embed/$2" width="$3" height="$4" frameborder="0" scrolling="no" noscroll></iframe>'
),
'dailymotion' => array(
'url' => 'http://www.dailymotion.com/swf/$1'
),
'divshare' => array(
'url' => 'http://www.divshare.com/flash/video2?myId=$1',
),
'edutopia' => array(
'extern' =>
'<object id="flashObj" width="$3" height="$4">' .
'<param name="movie" value="http://c.brightcove.com/services/viewer/federated_f9?isVid=1&isUI=1" />' .
'<param name="flashVars" value="videoId=$2&playerID=85476225001&domain=embed&dynamicStreaming=true" />' .
'<param name="base" value="http://admin.brightcove.com" />' .
'<param name="allowScriptAccess" value="always" />' .
'<embed src="http://c.brightcove.com/services/viewer/federated_f9?isVid=1&isUI=1" ' .
'flashVars="videoId=$2&playerID=85476225001&domain=embed&dynamicStreaming=true" '.
'base="http://admin.brightcove.com" name="flashObj" width="$3" height="$4" '.
'seamlesstabbing="false" type="application/x-shockwave-flash" allowFullScreen="true" ' .
'allowScriptAccess="always" swLiveConnect="true" ' .
'pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">' .
'</embed>' .
'</object>',
'default_width' => 326,
'default_ratio' => 326/399,
),
'funnyordie' => array(
'url' =>
'http://www.funnyordie.com/v1/flvideo/fodplayer.swf?file='.
'http://funnyordie.vo.llnwd.net/o16/$1.flv&autoStart=false'
),
'google' => array(
'id_pattern'=>'%[^0-9\\-]%',
'url' => 'http://video.google.com/googleplayer.swf?docId=$1'
),
'googlevideo' => array(
'id_pattern'=>'%[^0-9\\-]%',
'url' => 'http://video.google.com/googleplayer.swf?docId=$1'
),
'interiavideo' => array(
'url' => 'http://video.interia.pl/i/players/iVideoPlayer.05.swf?vid=$1',
),
'interia' => array(
'url' => 'http://video.interia.pl/i/players/iVideoPlayer.05.swf?vid=$1',
),
'metacafe' => array(
'url' => 'http://www.metacafe.com/fplayer/$1.swf'
),
'msn' => array(
'extern' => '<iframe style="overflow: hidden;" src="http://hub.video.msn.com/embed/$2" width="$3" height="$4" frameborder="0" scrolling="no" noscroll></iframe>'
),
'msnvideo' => array(
'extern' => '<iframe style="overflow: hidden;" src="http://hub.video.msn.com/embed/$2" width="$3" height="$4" frameborder="0" scrolling="no" noscroll></iframe>'
),
'revver' => array(
'url' => 'http://flash.revver.com/player/1.0/player.swf?mediaId=$1'
),
'rutube' => array(
'url' => ''
),
'screen9' => array(
'extern' => 't',
'default_ratio' => 579 / 358
),
'sevenload' => array(
'url' => 'http://page.sevenload.com/swf/en_GB/player.swf?id=$1'
),
'teachertube' => array(
'extern' =>
'<embed src="http://www.teachertube.com/embed/player.swf" ' .
'width="$3" ' .
'height="$4" ' .
'bgcolor="undefined" ' .
'allowscriptaccess="always" ' .
'allowfullscreen="true" ' .
'flashvars="file=http://www.teachertube.com/embedFLV.php?pg=video_$2' .
'&menu=false' .
'&frontcolor=ffffff&lightcolor=FF0000' .
'&logo=http://www.teachertube.com/www3/images/greylogo.swf' .
'&skin=http://www.teachertube.com/embed/overlay.swf volume=80' .
'&controlbar=over&displayclick=link' .
'&viral.link=http://www.teachertube.com/viewVideo.php?video_id=$2' .
'&stretching=exactfit&plugins=viral-2' .
'&viral.callout=none&viral.onpause=false' .
'"' .
'/>',
),
'yahoo' => array(
'extern' => '<iframe src="http://d.yimg.com/nl/vyc/site/player.html#vid=$2" width="$3" height="$4" frameborder="0"></iframe>'
),
'yahoovideo' => array(
'extern' => '<iframe src="http://d.yimg.com/nl/vyc/site/player.html#vid=$2" width="$3" height="$4" frameborder="0"></iframe>'
),
'yahooscreen' => array(
'extern' => '<iframe src="http://d.yimg.com/nl/vyc/site/player.html#vid=$2" width="$3" height="$4" frameborder="0"></iframe>'
),
'yandex' => array(
'extern' => '$5'
),
'yandexvideo' => array(
'extern' => '$5'
),
'youtube' => array(
'extern' =>
'<iframe src="http://www.youtube.com/embed/$2?showsearch=0&modestbranding=1" ' .
'width="$3" height="$4" ' .
'frameborder="0" allowfullscreen="true"></iframe>',
),
'youtubehd' => array(
'extern' =>
'<iframe src="http://www.youtube.com/embed/$2?showsearch=0&modestbranding=1&hd=1" ' .
'width="$3" height="$4" ' .
'frameborder="0" allowfullscreen="true"></iframe>',
'default_ratio' => 16 / 9
),
'youtubeplaylist' => array(
'extern' =>
'<iframe src="http://www.youtube.com/embed/videoseries?showsearch=0&modestbranding=1&list=$2" ' .
'width="$3" height="$4" ' .
'frameborder="0" allowfullscreen="true"></iframe>',
'default_ratio' => 16 / 9
),
'videomaten' => array(
'extern' => '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="300" height="200" id="videomat" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="http://89.160.51.62/recordMe/play.swf?id=$2" /><param name="loop" value="false" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="http://89.160.51.62/recordMe/play.swf?id=$2" loop="false" quality="high" bgcolor="#ffffff" width="$3" height="$4" name="videomat" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>',
'default_ratio' => 300 / 200
),
'vimeo' => array(
'url'=>'http://vimeo.com/moogaloop.swf?clip_id=$1&;server=vimeo.com&fullscreen=0&show_title=1&show_byline=1&show_portrait=0'
)
);