change cast button removal
This commit is contained in:
		@@ -62,8 +62,8 @@
 | 
				
			|||||||
        smallCastButton.addClass("vjs-control");
 | 
					        smallCastButton.addClass("vjs-control");
 | 
				
			||||||
        smallCastButton.addClass("vjs-button");
 | 
					        smallCastButton.addClass("vjs-button");
 | 
				
			||||||
        player.controlBar.addChild(smallCastButton);
 | 
					        player.controlBar.addChild(smallCastButton);
 | 
				
			||||||
        player.on("play", () => {
 | 
					        player.one("play", () => {
 | 
				
			||||||
            player.controlBar.removeChild(bigCastButton);
 | 
					            player.removeChild(bigCastButton);
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
        player.on("chromecastConnected", () => {
 | 
					        player.on("chromecastConnected", () => {
 | 
				
			||||||
            if(player.volume() > 0.3) {
 | 
					            if(player.volume() > 0.3) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user