Comments (4)
In jPlayer 2.1.0 the internal clearMedia operation was removed from the setMedia command. Changing the media no longer calls clearMedia beforehand... That is unless you are doing it in your external code for some reason.
To change to new media, all you need to use is the setMedia command.
clearMedia is only really useful if you want to stop a radio stream URL from downloading for ever... For example, the user paused the radio, but the page keeps buffering it ready for you to press play again. Somewhere in there, like on the stop button, you could hook the clearMedia command to stop the stream. (You'd then need a way of staring it again of course.)
from jplayer.
On our site, we maintain a pool of jPlayer instances and when we return an instance to the pool, explicitly call "clearMedia" in order to ensure that any audio on that player is fully stopped, removed, and cleared from memory.
from jplayer.
I have the same problem and your fix #56 works quite well.
Thank you Marc.
from jplayer.
Thanks @marcn I'll add that change. Right now... Since I appear to have missed this solution during one of my work marathons.
from jplayer.
Related Issues (20)
- TypeError: $(...).jPlayer is not a function HOT 4
- bugs with player in ampache HOT 1
- bugs with player in ampache HOT 2
- Audio quality is very low when pause and play the call
- Show title and author of song being streamed HOT 4
- mediasession
- jPlayer does not ask for FLash Player permission if flash player is used
- Can not use rtmp
- e_no_solution error when trying to play live streaming audio on the new Safari (version 14) with the new macOS (catalina) HOT 2
- not working on iPhone, nor Safari Desktop HOT 1
- Uncaught (in promise) TypeError: Failed to execute 'exitFullscreen' on 'Document': Document not active
- Multiple instances: Avoid duplicate download of media files
- No buttons of jplayer is working on iOS devices HOT 1
- How to seek or buffer video before play
- Is this Repo Dead? or anyone still available for maintenance? HOT 4
- Switching Tracks via Control Center (Lock Screen) Stops Playback on iOS 15
- Sourcing audio files from ACF repeater fields
- I HOT 1
- jPlayer for Blazor(Dot Net Cored)
- Sbjssksk
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jplayer.