New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mediaelement.js occasionally playing cached instead of live mp3 stream #1321
Comments
I've got the same problem. Can anyone help me? I'd like to stop the audio instead pause it. |
I had the same problem, Fixed by:
Here is my code block:
|
Damn, you're a genius, @moo-farag! This worked perfectly for me! Here are the essential parts of my version:
Thank you! |
@nicolasschabram ,, I added some event listeners for "error" and "stall" events that reconnects automatically according to "netStat" (dc from streaming service or from the user, usefull for bad connections). on page load Initialize: function initPlayer() {
Global Vars: "paused" is used to keed track wether the player is paused or not (as $jq('audio')[0].player.media.paused returned wrong values) I'm facing some problems with mobile version, will attach it once finished |
Hey @moo-farag, it's been a while. Now I finally found the time to look into this again. I indeed do have some issues with the player stopping because of network errors. I haven't tried your solution yet (thanks for sharing though!). I first wanted to ask if you already resolved the problems with the mobile version you talked about. |
Hey Guys, searching for the same thing like you. Can someone help me? I doesen't get your codes.. atm I load the Player with:
What I have to add to tell him that Pause is Stop? |
Okay. mastered it.. This is my Script:
|
@nicolasschabram Closing old issues. If you'd like to reopen this, let us know. Thanks! |
The parameter |
No it doesn’t |
ForceLive is mostly to avoid displaying the controls’ progress bar on a live source |
Thank you very much! |
Hey guys,
I built a player which is successfully streaming mp3 (IceCast). However every once in a while it suddenly plays cached content from minutes ago instead of the actual live stream. There's a play/pause button. Muting instead of pausing made it a little bit better but there are still hiccups. Is there anything I can do to solve this problem?
This is my current html setup:
... and jQuery:
Thanks a lot!
Nicolas
The text was updated successfully, but these errors were encountered: