Skip to content
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

#199: RTMP - Audio will not pause #211

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions actionscript/happyworm/jPlayer/JplayerRtmp.as
Original file line number Diff line number Diff line change
Expand Up @@ -358,19 +358,19 @@ package happyworm.jPlayer

//myStatus.loaded();
//myStatus.isPlaying=true;
if (! myStatus.metaDataReady)
if (! videoBinding && ! myStatus.metaDataReady) // set metaDataReady only for Audio RTMP, otherwise pause doesn't work #199
{
//this.dispatchEvent(new JplayerEvent(JplayerEvent.DEBUG_MSG,myStatus,"onMetaDataHandler: " + myStatus.duration));

// Allow multiple onResult Handlers to affect size. As per PR #131 and #98.
// myStatus.metaDataReady = true;
myStatus.metaDataReady = true;

/*var info:Object = new Object();
info.duration=myStatus.duration
var info:Object = new Object();
info.duration=myStatus.duration;
info.width=undefined;
info.height=undefined;
myStatus.metaData = info;
*/

if (myStatus.playOnLoad)
{
myStatus.playOnLoad = false;// Capture the flag
Expand Down
Binary file modified jquery.jplayer/Jplayer.swf
Binary file not shown.