src/js/init.js
branchpopcorn-port
changeset 558 29a370694c53
parent 557 e331072ce8fd
child 577 227d21a90fc5
equal deleted inserted replaced
557:e331072ce8fd 558:29a370694c53
    43         break;
    43         break;
    44         
    44         
    45       case "jwplayer":
    45       case "jwplayer":
    46           var opts = IriSP.jQuery.extend({}, options);
    46           var opts = IriSP.jQuery.extend({}, options);
    47           delete opts.container;
    47           delete opts.container;
       
    48           delete opts.type;
    48 
    49 
    49           if (options.provider === "rtmp") {
    50           if (options.provider === "rtmp") {
    50             /* exit if we can't access the metadata */
    51             /* exit if we can't access the metadata */
    51             if (typeof(IriSP.__jsonMetadata) === "undefined") {
    52             if (typeof(IriSP.__jsonMetadata) === "undefined") {
    52                 break;
    53                 break;
    64             /* other providers type, video for instance -
    65             /* other providers type, video for instance -
    65                pass everything as is */
    66                pass everything as is */
    66           }
    67           }
    67 
    68 
    68           if (!options.hasOwnProperty("flashplayer")) {
    69           if (!options.hasOwnProperty("flashplayer")) {
    69             options.flashplayer = IriSP.jwplayer_swf_path;
    70             opts.flashplayer = IriSP.jwplayer_swf_path;
    70           }
    71           }
    71 
    72 
    72           if (!options.hasOwnProperty("controlbar.position")) {
    73           if (!options.hasOwnProperty("controlbar.position")) {
    73             options["controlbar.position"] = "none";
    74             opts["controlbar.position"] = "none";
    74           }
    75           }
       
    76 
       
    77           console.log(opts);
    75           pop = IriSP.PopcornReplacement.jwplayer("#" + containerDiv, opts);
    78           pop = IriSP.PopcornReplacement.jwplayer("#" + containerDiv, opts);
    76         break;
    79         break;
    77       
    80       
    78       case "youtube":
    81       case "youtube":
    79           var opts = IriSP.jQuery.extend({}, options);
    82           var opts = IriSP.jQuery.extend({}, options);