|Did this page help you? Yes No Tell us about it...|
Perform the following procedure to get the embed code that you will include in your web page for the live stream.
To embed Flash Media playback for an CloudFront live stream in a web application
Open the AWS CloudFormation console at https://console.aws.amazon.com/cloudformation/.
Check the checkbox for the primary stack for live streaming.
In the bottom pane of the AWS CloudFormation console, click the Outputs tab.
Copy the value of the VideoSource key, for example, http://companymeeting.example.com/live/events/livepkgr/events/_definst_/liveevent.f4m.
On the Open Source Media Framework website, browse to the Flash Media Playback Setup page, http://www.osmf.org/configurator/fmp.
In the Video Source field, paste the value that you copied from the AWS Management Console earlier in this procedure.
For the Are You Using HTTP Streaming or Flash Access 2.0 radio buttons, click Yes.
Delete the value in the Poster frame file location field, if any.
Click Preview to update the value of the Preview Embed Code text box.
Play the video to ensure that you are satisfied with the current settings.
Change settings as desired. After you change options, click Preview to update the embed code.
To embed Flash Media Playback in a web page, copy the value of the Preview Embed Code text box, and paste it into your HTML code residing in the domain that you specified when you created the AWS CloudFormation stack for live streaming.
If you want to home web content in a domain different from the domain that you specified when you created the AWS CloudFormation stack for live streaming, change permissions in the cross-domain policy file, crossdomain.xml. Either log into Adobe Flash Media Server running on Amazon EC2, or edit the AWS CloudFormation template to create your own custom template. For more information on editing crossdomain.xml files, see the Adobe Cross Domain Policy File Specification, http://learn.adobe.com/wiki/download/attachments/64389123/CrossDomain_PolicyFile_Specification.pdf.