question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

API .remove() command doesn't work if player has no sources defined

See original GitHub issue

To reproduce the issue:

  1. Go to https://ovenplayer.com/docs/demo.html (you should have a player with three sources) image

  2. Run the following commands on the browser console: players = window.OvenPlayer.getPlayerList() <- Store players loaded players[0].remove() <- Remove the player (the page should look like the image below) image window.OvenPlayer.create("player", { mute: true }); <- Create another player instance players = window.OvenPlayer.getPlayerList() -> Store players loaded again players[0].remove() -> Try to remove it

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
SangwonOhcommented, Feb 25, 2022

Consider it resolved and close the issue. Please reopen for further discussion.

1reaction
SangwonOhcommented, May 31, 2021

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found