Amazon CloudFront
Developer Guide (API Version 2016-09-29)

Configuring the Media Player

To play a media file, you must configure the media player with the correct path to the file. How you configure the media depends on which media player you're using and how you're using it.

When you configure the media player, the path you specify to the media file must contain the characters cfx/st immediately after the domain name, for example:



CloudFront follows Adobe's FMS naming requirements. Different players have their own rules about how to specify streams. The example above is for JW Player. Check your player's documentation. For example, Adobe's Flash Media Server does not allow the .flv extension to be present on the play path. Many players remove the .flv extension for you.

Your media player might ask for the path separate from the file name. For example, with the JW Player wizard, you specify a streamer and file variable:

  • streamer—rtmp:// (with no trailing slash)

  • file— mediafile.flv

If you've stored the media files in a directory in your bucket (for example, videos/mediafile.flv), then the variables for JW Player would be:

  • streamer—rtmp:// (with no trailing slash)

  • file— videos/mediafile.flv

To use the JW Player wizard, go to the Setup Wizard page on the JW Player website.

MPEG Files

To serve MP3 audio files or H.264/MPEG-4 video files, you might need to prefix the file name with mp3: or mp4:. Some media players can be configured to add the prefix automatically. The media player might also require you to specify the file name without the file extension (for example, magicvideo instead of magicvideo.mp4).