app/js/vendor/universal_video_background.js
// 4. The API will call this function when the video player is ready.
4. The API will call this function when the video player is ready.
4 . The API will call this function when the video player is ready .
function onPlayerReady(event) {
                          event.target.setPlaybackQuality(options.suggestedQuality);
                          if (val.indexOf("ipad") != -1 || val.indexOf("iphone") != -1 || val.indexOf("ipod") != -1 || val.indexOf("webos") != -1 || navigator.userAgent.indexOf('Android') != -1) {
                          } else {
                              current_obj.player.setVolume(options.initialVolume*100);                                
                              if (options.autoPlayFirstVideo) {
                                if ($(imgs[current_obj.current_img_no]).attr('data-youtube')!=undefined  && $(imgs[current_obj.current_img_no]).attr('data-youtube')!='') {
                                    event.target.playVideo();
                                }
                              } else {
                                event.target.pauseVideo();
                                current_obj.player.cueVideoById(current_obj.currentImg.attr('data-youtube'));
                              }
                          }
                      }
function onPlayerReady ( event ) { event . target . setPlaybackQuality ( options . suggestedQuality ) ; if ( val . indexOf ( "ipad" ) != - 1 || val . indexOf ( "iphone" ) != - 1 || val . indexOf ( "ipod" ) != - 1 || val . indexOf ( "webos" ) != - 1 || navigator . userAgent . indexOf ( 'Android' ) != - 1 ) { } else { current_obj . player . setVolume ( options . initialVolume * 100 ) ; if ( options . autoPlayFirstVideo ) { if ( $ ( imgs [ current_obj . current_img_no ] ) . attr ( 'data-youtube' ) != undefined && $ ( imgs [ current_obj . current_img_no ] ) . attr ( 'data-youtube' ) != '' ) { event . target . playVideo ( ) ; } } else { event . target . pauseVideo ( ) ; current_obj . player . cueVideoById ( current_obj . currentImg . attr ( 'data-youtube' ) ) ; } } }
4.
4 .
/*$('.lbg_player',universal_video_background_container).css({ 
                              'z-index':3
                          });*/ //nothing   //set initial volume /*current_obj.player.addEventListener('onStateChange', function(e) {
                              //console.log('State is:', e.data);
                              alert ("aa");
                          });*/