console.debug('gs script file'); // check stream types var videoType = false; var audioType = false; if ( paramYTLeft ) videoType = 'youtube'; else if ( $('img#gif').length ) videoType = 'gif'; else if ( $('video#gif').length ) videoType = 'video'; if ( paramYTRight ) audioType = 'youtube'; else if ( $('#audiostream').length ) audioType = 'audio'; console.debug('videoType', videoType, 'audioType', audioType); // youtube error handler function ytError(event) { var data = event.data; var msg = 'We could not load the requested Youtube video.'; if ( data == 2 ) msg = 'The Youtube video url is invalid.'; if ( data == 5 ) msg = 'The requested Youtube content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.'; if ( data == 100 ) msg = 'The Youtube video requested was not found. It has been removed or has been marked as private.'; if ( data == 101 || data == 150 ) msg = 'The owner of the requested Youtube video does not allow it to be played in embedded players or it is blocked for your region.'; $('