We moved this page to our Documentation Portal. You can find the latest updates here. |
Question
How to integrate Live Streaming using "easy embed code" by OnApp?
Environment
OnApp CDN
Answer
After you created a Live Streaming Resource, in the "Instruction" tab on the control panel, there is an easy embed code, which you can copy and paste it in your HTML file, so that visitors can play the video from the player.
This easy embed code support all devices - flash, ios, android, etc.
For example:
<html>
<head>
<script src="http://video.worldcdn.net/player.js" type="text/javascript"></script>
</head>
<body>
<div id="my-video-player"/>
<script type="text/javascript">
CDNPlayer("my-video-player", resource_id, "mystream", {width:640, height:360} );
</script>
</body>
</html>