Type.registerNamespace("ExtendedPlayer");ExtendedPlayer.Player=function(A){ExtendedPlayer.Player.initializeBase(this,[A])};ExtendedPlayer.Player.prototype={onPluginLoaded:function(A){ExtendedPlayer.Player.callBaseMethod(this,"onPluginLoaded",[A]);this._volumeHotspot=new ExpressionPlayer.HotspotButton(this,"VolumeControl");this._chapterHotspot=new ExpressionPlayer.HotspotButton(this,"ChapterAreaHotspot")},numVisibleChapters:function(C){var D=0;if(C){for(var B=0,A=C.length;B<A;B++){if(C[B].get_thumbnailSource()){D++}}}return D},set_chapters:function(A){ExtendedPlayer.Player.callBaseMethod(this,"set_chapters",[A]);this._chapterHotspot.get_element().Visibility=(this.numVisibleChapters(A)>0)?0:1},pluginDispose:function(){if(this._volumeHotspot){this._volumeHotspot.dispose()}this._volumeHotspot=null;if(this._chapterHotspot){this._chapterHotspot.dispose()}this._chapterHotspot=null;ExtendedPlayer.Player.callBaseMethod(this,"pluginDispose")}};ExtendedPlayer.Player.registerClass("ExtendedPlayer.Player",ExpressionPlayer.Player);