Skip to content

Commit

Permalink
Update JplayerRtmp.as
Browse files Browse the repository at this point in the history
Fix problem with connection Amazon cloudfront signeture url
  • Loading branch information
iking0980 committed May 10, 2013
1 parent c1c7a4d commit 526da54
Showing 1 changed file with 15 additions and 3 deletions.
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
}
}
}
}
}

0 comments on commit 526da54

Please sign in to comment.