联系 Akamai 并使其正常工作,下面是直接从他们的示例文件中获取的示例。
jwplayer("player").setup({
playlist: [{
file: 'http://multiformatlive-f.akamaihd.net/demostream_1_,300~300,800~800,1200~1200,@2131.usmil',
provider: "AkamaiAdvancedJWStreamProvider.swf",
type:'mp4'
}],
width:640,
height:360,
primary: "flash",
//<----------------- RTMP CONFIG TAGS ---------------------------->
//, retryLive:true
//, retryInterval:5
//, liveTimeout:5
//, connectionAttemptInterval:5
//, connectAuthParams:'connectionAuthToken'
//, streamAuthParams:'auth=livestreamAuthToken'
//<----------------- Works on all network types ---------------------------->
// clipBegin:30
//, clipEnd:60
//, autoRewind:false
//, mbrStartingBitrate:3500
//, mbrStartingIndex:2
//, akamaiMediaType:'akamai-hdn-single-bitrate'
//<----------------- HDN 1.0 CONFIG TAGS ---------------------------->
// , startingBufferTime:5
// , forceNoSubclip:true
// , useMBRStartupBandwidthCheck:5
//, primaryToken:'1336218178_ee70588889d6e859ffcd58c49c3872be'
//<----------------- HDN 2.0 CONFIG TAGS ---------------------------->
//, addManifestQueryArgsToFragmentRequests:false
//, enableLogStringOnFragments:false
//, enableLargeBuffersForLongFormContent:false
//, fragmentRetryAttemptsForLostConnectivity:120
//, liveBufferProfile:'livelowlatency' // OR 'livestable'
//, useNetSession:true
//, netsessionMode:'opportunistic' //OR 'never'
//, enableNetSessionDiscovery:false
//, playerVerificationChallenge:'salt'
//<----------------- HDN 1.0 & 2.0 CONFIG TAGS ---------------------------->
//, enableAlternateServerMapping:false
//, enableEndUserMapping:false
});