jPlayer
jPlayer copied to clipboard
RTMP - Audio will not pause
I was having this issue within our usage of jPlayer so I downloaded the demos and switched the RTMP video example to use audio and the issue is also present there. Am I missing something to allow the audio to be paused?
Example RTMP audio stream: rtmp://s1p9o4qm8lnle3.cloudfront.net/cfx/st/mp3:janna/janna_150kginstrumental_api.mp3
For what it is worth, I have tried to post a thread in the Google Group but it has yet to be approved.
Hi All
Just to add to this i am having similar issues. I think a demo is best please see this link http://jplayertest.users38.interdns.co.uk this is using the latest code from the jPlayer website and is streaming via cloudfront.
Things ive noticed that you can see in the demo.
- After the stream has loaded the player then has the pause button as the load state. You have to click pause and then click play to get it to start.
- If you play the player and then seek to different points in the track pause then seek again you will notice that the play button stops working.
- If you press stop on the player and then attempt to play again the player doesn't allow this.
Just some errors i have encountered so far looking for a fix.
Thanks
Please take a look into my pull request with a fix for Audio Stream Pause.
I am wanting to use the RTMP for audio, but just because of this problem the jPlayer is completely useless in that case. Everything else works fine, that's a pitty. Will there be a fix soon?
I cannot promise it ill be soon, but I am aiming to clear 1 pull request per weekend for the new few months. This particular bug is now considered the most pressing problem, since fixing it would clear many issue threads and some PRs.
It is my understanding that the problems stems from the generic behaviour of always pausing the stream after connecting to it, and then resuming it if necessary. If this is indeed the case, I will investigate introducing logic to look ahead and only pause when the final state is to pause.
Thanks Mark would love to see this added. jPlayer is awesome ;)
On Mon, Dec 15, 2014 at 1:21 PM, Mark Panaghiston [email protected] wrote:
I cannot promise it ill be soon, but I am aiming to clear 1 pull request per weekend for the new few months. This particular bug is now considered the most pressing problem, since fixing it would clear many issue threads and some PRs.
It is my understanding that the problems stems from the generic behaviour of always pausing the stream after connecting to it, and then resuming it if necessary. If this is indeed the case, I will investigate introducing logic to look ahead and only pause when the final state is to pause.
— Reply to this email directly or view it on GitHub https://github.com/happyworm/jPlayer/issues/199#issuecomment-66992870.
Samuel East - Director
Connect with me on linkedin
http://uk.linkedin.com/pub/samuel-east/30/94a/2a7/
www.sobytes.com http://www.sobytes.com
Mobile: 07446 276 026 Office: 02920 886 507 Registered Office: ICE Britannia House, Caerphilly Business Park / Van Rd / Caerphilly / CF83 8GG Company Number: 08266291
Great! Meanwhile, do you thing that using dikirill's fix is reasonnible? It works fines with my audio test case but do you think it could break something on the video side?
The fix was exactly to avoid video logic applied to audio, it means your video streaming will work as it is right now.
ok, thanx.
Okay, I got bit by this today.