jPlayer icon indicating copy to clipboard operation
jPlayer copied to clipboard

RTMP - Audio will not pause

Open rswarthout opened this issue 10 years ago • 10 comments

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

rswarthout avatar Mar 22 '14 17:03 rswarthout

For what it is worth, I have tried to post a thread in the Google Group but it has yet to be approved.

rswarthout avatar Mar 26 '14 23:03 rswarthout

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.

  1. 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.
  2. 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.
  3. 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

sobytes avatar Apr 02 '14 13:04 sobytes

Please take a look into my pull request with a fix for Audio Stream Pause.

dikirill avatar Apr 30 '14 16:04 dikirill

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?

mirozoolab avatar Dec 15 '14 13:12 mirozoolab

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.

thepag avatar Dec 15 '14 13:12 thepag

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

[email protected]

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

sobytes avatar Dec 15 '14 13:12 sobytes

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?

mirozoolab avatar Dec 15 '14 13:12 mirozoolab

The fix was exactly to avoid video logic applied to audio, it means your video streaming will work as it is right now.

dikirill avatar Dec 15 '14 15:12 dikirill

ok, thanx.

mirozoolab avatar Dec 16 '14 08:12 mirozoolab

Okay, I got bit by this today.

thedumbtechguy avatar Mar 03 '16 11:03 thedumbtechguy