src/js/init.js
branchnew-model
changeset 909 aa0e42229784
parent 908 f56199193fad
child 910 b9f1bd52df9a
equal deleted inserted replaced
908:f56199193fad 909:aa0e42229784
   201          will contain the video.
   201          will contain the video.
   202          */
   202          */
   203         case "html5":
   203         case "html5":
   204             var _tmpId = Popcorn.guid("video"),
   204             var _tmpId = Popcorn.guid("video"),
   205                 _videoEl = IriSP.jQuery('<video>');
   205                 _videoEl = IriSP.jQuery('<video>');
       
   206             
       
   207             _videoEl.attr({
       
   208                 "src" : this.config.player.video,
       
   209                 "id" : _tmpId
       
   210             })
       
   211 
       
   212             if(this.config.player.hasOwnProperty("width")) {
       
   213                 _videoEl.attr("width", this.config.player.width);
       
   214             }
       
   215             if(this.config.player.hasOwnProperty("height")) {
       
   216                 _videoEl.attr("height", this.config.player.height);
       
   217             }
       
   218             IriSP.jQuery("#" + containerDiv).append(_videoEl);
       
   219             pop = Popcorn("#" + _tmpId);
       
   220             break;
       
   221 
       
   222         case "html5-audio":
       
   223             var _tmpId = Popcorn.guid("audio"),
       
   224                 _videoEl = IriSP.jQuery('<audio>');
   206             
   225             
   207             _videoEl.attr({
   226             _videoEl.attr({
   208                 "src" : this.config.player.video,
   227                 "src" : this.config.player.video,
   209                 "id" : _tmpId
   228                 "id" : _tmpId
   210             })
   229             })