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

Update JplayerRtmp.as #161

Closed
wants to merge 1 commit into from
Closed
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
18 changes: 15 additions & 3 deletions actionscript/happyworm/jPlayer/JplayerRtmp.as
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,13 @@ package happyworm.jPlayer
{
appName = rtmpSrc.substring(endHost,rtmpSrc.indexOf("mp3:"));
streamFileName = rtmpSrc.substr(rtmpSrc.indexOf("mp3:"));
streamFileName = streamFileName.substr(0,streamFileName.length - 4);
if ( streamFileName.indexOf("?") )
{
var tmp:String = streamFileName.substring(streamFileName.indexOf("?")) ;
streamFileName = streamFileName.substr(0,streamFileName.indexOf("?")) + encodeURI(tmp) ;
}
else
streamFileName = streamFileName.substr(0,streamFileName.length - 4);
}
// rtmp://cp83813.edgefcs.net/ondemand/rob_hall/bruce_campbell_oldspice.flv

Expand All @@ -522,7 +528,13 @@ package happyworm.jPlayer
{
appName = rtmpSrc.substring(endHost,rtmpSrc.indexOf("mp4:"));
streamFileName = rtmpSrc.substr(rtmpSrc.indexOf("mp4:"));
streamFileName = streamFileName.substr(0,streamFileName.length - 4);
if ( streamFileName.indexOf("?") )
{
var tmpV:String = streamFileName.substring(streamFileName.indexOf("?")) ;
streamFileName = streamFileName.substr(0,streamFileName.indexOf("?")) + encodeURI(tmpV) ;
}
else
streamFileName = streamFileName.substr(0,streamFileName.length - 4);
}

// .f4v streams with standard appname/no instance name, .flv extension
Expand Down Expand Up @@ -981,4 +993,4 @@ package happyworm.jPlayer
}
}
}
}
}