mirror of
https://github.com/videojs/video.js.git
synced 2024-12-14 11:23:30 +02:00
20 lines
560 B
JavaScript
20 lines
560 B
JavaScript
|
var PlayerTest = {
|
||
|
makeTag: function(){
|
||
|
var videoTag = document.createElement('video');
|
||
|
videoTag.id = 'example_1';
|
||
|
videoTag.className = 'video-js vjs-default-skin';
|
||
|
return videoTag;
|
||
|
},
|
||
|
makePlayer: function(playerOptions){
|
||
|
var player;
|
||
|
var videoTag = PlayerTest.makeTag();
|
||
|
|
||
|
var fixture = document.getElementById('qunit-fixture');
|
||
|
fixture.appendChild(videoTag);
|
||
|
|
||
|
playerOptions = playerOptions || {};
|
||
|
playerOptions['techOrder'] = ['mediaFaker'];
|
||
|
|
||
|
return player = new videojs.Player(videoTag, playerOptions);
|
||
|
}
|
||
|
};
|