summaryrefslogtreecommitdiff
path: root/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/tests/Player_DynamicEmbed.html
blob: 135e1713598921055df2226d74668728cc61ba3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<html>
  <head>
    <script type="text/javascript" src="../../../mwEmbedStartup.php"></script>
  </head>
<body>

  <div style="width:640px; height:480px;" id="mwplayer"></div>

  <script>
	mw.ready(function(){

	mw.load('EmbedPlayer', function(){
      // seems to trip a bug in IE8/win7
      $('#mwplayer').embedPlayer({
    	 'poster' : "http://cdn.kaltura.org/apis/html5lib/kplayer-examples/media/bbb480.jpg",
          'sources':[{
              	'src':'http://cdn.kaltura.org/apis/html5lib/kplayer-examples/media/bbb_trailer_iphone.m4v',
                'type':'video/h264'}]
            });
      });
	});
  </script>
  
</body>