I can't play my recordings when my recorded streams are pushed to S3

Viewed 84

I can't play my recordings when my recorded streams are pushed to S3. How can I fix this issue? How can I be able to watch when I'm sending the stream to the S3.

1 Answers

This is caused because Ant Media is trying to watch Vods on your machine while recordings are somewhere else. You can achieve playing these by http forwarding.

I assume that you already added your S3 account to Ant Media Server since you are recording to that destination

  • Open the file {AMS-DIR} / webapps / {APPLICATION} / WEB-INF / red5-web.properties
  • Add comma separated file extensions like this settings.httpforwarding.extension=mp4 to the file
    • If you want to save your preview images, add png as well.
  • Add the base URL with settings.httpforwarding.baseURL=https://{s3BucketName}.s3.{awsLocation}.amazonaws.com for forwarding.
    • Please replace {s3BucketName} with your own URL and {awsLocation}. Please pay attention that there is no leading or trailing white spaces.

If you did correctly the steps above, your vod playing request will be like following: https://{s3BucketName}.s3.{awsLocation}.amazonaws.com/streams/{streamId.mp4}

Related