API .remove() command doesn't work if player has no sources defined
See original GitHub issueTo reproduce the issue:
-
Go to https://ovenplayer.com/docs/demo.html (you should have a player with three sources)
-
Run the following commands on the browser console:
players = window.OvenPlayer.getPlayerList()
<- Store players loadedplayers[0].remove()
<- Remove the player (the page should look like the image below)window.OvenPlayer.create("player", { mute: true });
<- Create another player instanceplayers = window.OvenPlayer.getPlayerList()
-> Store players loaded againplayers[0].remove()
-> Try to remove it
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Java error - bad source file: file does not contain class x ...
Hi the problem here is that the JVM confuses the class file due to the ambiguous class file name in both the directory...
Read more >Player - Roblox Creator Documentation
A Player object a client that is currently connected. These objects are added to the Players service when a new player connects, then...
Read more >Player - Video.js Documentation
An instance of the Player class is created when any of the Video.js setup methods are used to initialize a video. var myPlayer...
Read more >MediaPlayer - Android Developers
MediaPlayer is not thread-safe. Creation of and all access to player instances should be on the same thread. If registering callbacks, the thread...
Read more >YouTube Player API Reference for iframe Embeds
The IFrame player API lets you embed a YouTube video player on your website and control the player using JavaScript. Using the API's...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Consider it resolved and close the issue. Please reopen for further discussion.
@gusbmello Processing is not smooth when OvenPlayer is created as an empty source. If a player is created with an empty source or a specified source, it seems that load and remove processing should be done neatly in each. Thanks for the report and I will fix it soon.