-
I’m using an EC2 AMI with Wowza Media Server 3 for Amazon EC2 3.0.4 build1127
-
I can stream public S3 files with no issue
-
But if I edit conf/MediaCache.xml, and add /MediaCacheSources/MediaCacheSource/Properties:
awsAccessKeyId
-----
awsSecretAccessKey
------------
and restart, I cannot access any content at all, not even public content.
- I am assuming my keys are correct as they are the same keys I use to successfully mount the S3 bucket using s3fs.
Here’s a relevant excerpt from the Wowza output when I try to play a file:
DEBUG server comment - StreamNameAliasFile.load: /usr/local/WowzaMediaServer/conf/aliasmap.play.txt
INFO server comment - StreamNameAliasFile.load: size:0:1 hash:true matchAll:true
INFO server comment - ModuleStreamNameAlias.nameToAlias[play]: streamName:mp4:amazons3/playfi-audio/sample.mp4 alias:{pattern: “*” alias:"${Stream.Name}" wildcardMatches:{[0]: “mp4:amazons3/playfi-audio/sample.mp4”}} result:mp4:amazons3/playfi-audio/sample.mp4
DEBUG server comment - cmd: setBufferTime
DEBUG session setbuffertime [1183153499,1]: 3000 3000
DEBUG server comment - MediaReaderH264.mp4ReadAheadSize: 65536
DEBUG server comment - MediaReaderH264.mp4ReadAheadTrigger: 32768
DEBUG server comment - MediaReaderH264.mp4IndexBufferSize: 16384
DEBUG server comment - MediaReaderH264.randomAccessReaderClass: com.wowza.wms.plugin.mediacache.impl.MediaCacheRandomAccessReader
DEBUG server comment - MediaCache.acquireReader[amazons3/playfi-audio/sample.mp4]: createNew
DEBUG server comment - MediaCacheSourceBasic.canHandle[amazons3]: true mediaName:amazons3/playfi-audio/sample.mp4 prefix:amazons3/
DEBUG server comment - MediaCacheItemHTTPImpl.init url:http://playfi-audio.s3.amazonaws.com/sample.mp4
WARN server comment - MediaCacheItemHTTPImpl.getItemInfo[playfi-audio.s3.amazonaws.com/sample.mp4]: HTTP response: 301
DEBUG server comment - MediaCacheItemHTTPImpl.getItemInfo length: 0
WARN server comment - MediaCacheItemBase.init: Item does not exist: amazons3/playfi-audio/sample.mp4
DEBUG server comment - MediaCache.acquireReader[amazons3/playfi-audio/sample.mp4]: createNew
DEBUG server comment - MediaCacheSourceBasic.canHandle[amazons3]: true mediaName:amazons3/playfi-audio/sample.mp4 prefix:amazons3/
DEBUG server comment - MediaCacheItemHTTPImpl.init url:http://playfi-audio.s3.amazonaws.com/sample.mp4
WARN server comment - MediaCacheItemHTTPImpl.getItemInfo[playfi-audio.s3.amazonaws.com/sample.mp4]: HTTP response: 301
DEBUG server comment - MediaCacheItemHTTPImpl.getItemInfo length: 0
WARN server comment - MediaCacheItemBase.init: Item does not exist: amazons3/playfi-audio/sample.mp4
WARN server comment amazons3/playfi-audio/sample.mp4 MediaReaderH264.open[1]: java.io.IOException: MediaCacheRandomAccessReader.open: Item not in cache: amazons3/playfi-audio/sample.mp4
DEBUG server comment - sendPlayStatus: ltc:0 atc:0