src/js/main.js
branchlab-port
changeset 501 63e7b66d2a80
parent 498 cf2a0505cadc
child 511 81eb8e686456
equal deleted inserted replaced
500:a784e70993b3 501:63e7b66d2a80
    15       // load our popcorn.js lookalike
    15       // load our popcorn.js lookalike
    16       $L = $L.script(libs.jwplayer);
    16       $L = $L.script(libs.jwplayer);
    17     } else {
    17     } else {
    18       // load the real popcorn
    18       // load the real popcorn
    19       $L = $L.script(libs.popcorn).script(libs["popcorn.code"]);
    19       $L = $L.script(libs.popcorn).script(libs["popcorn.code"]);
    20       if (config.player === "youtube")
    20       if (config.player.type === "youtube") {
    21         $L = $L.script(libs["popcorn.youtube"]);
    21         $L = $L.script(libs["popcorn.youtube"]);
    22       if (config.player === "vimeo")
    22       } 
       
    23       if (config.player.type === "vimeo")
    23         $L = $L.script(libs["popcorn.vimeo"]);
    24         $L = $L.script(libs["popcorn.vimeo"]);
    24       
    25       
    25       /* do nothing for html5 */
    26       /* do nothing for html5 */
    26     }       
    27     }       
    27     
    28