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.

Allow MediaPlayer to be closed on application shutdown

See original GitHub issue

Add a stop() function to the MediaPlayer so that an application can shutdown cleanly. This is also the case for the webcam example. This will only properly close if a peer connection was opened at least once.

I already wrote a stop function so I could do a PR

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
paulhobbelcommented, Mar 9, 2021

Oh wait you can also use .audio.stop() and .video.stop

0reactions
github-actions[bot]commented, Mar 22, 2022

This issue was closed because it has been stalled for 7 days with no activity.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to get Android MediaPlayer() to stop when app is closed?
My android app creates a MediaPlayer() and plays a looping song. I need to have it stop playing when the user leaves the...
Read more >
MediaPlayer - Android Developers
This callback allows applications to keep track of the buffering status while streaming ... It is the caller's responsibility to close the file...
Read more >
Windows Media Player Not Working In Windows 10/8/7 FIX ...
Windows Media Player Not Working In Windows 10/8/7 FIX [2022]Link: https://www.mediaplayercodecpack.com/At times, you may find that your ...
Read more >
Play audio and video with MediaPlayer - UWP - Microsoft Learn
When your app is done using a MediaPlayer, you should call the Close method (projected to Dispose in C#) to clean up the...
Read more >
PlayStation Media Player (US)
Go to Settings > Accessibility > Closed Captions and select Display Closed Captions. Restart the Media Player, start a video and press the...
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