RTMP Streaming with Dash Media Player

RTMP Streaming allows your users to click anywhere in the timeline and the video will start to buffer from that location. This allows you to present very long videos to your users where they do not have to buffer the entire movie to skip ahead to certain locations within the video clip.

The following is an example of how to use the Dash Media Player for RTMP streaming. To use RTMP streaming, you must provide a new variable called streamer along with the name of the file within the stream to play. For example, the following code produces the player at the bottom of the page.


<?php
$params
['width'] = 652;
$params['height'] = 432;
$params['streamer'] = 'rtmpt://flash-7.simplecdn.net/play';
$params['file'] = 'examples/videos/bbb_640x360_h264.mp4';
$params['autostart'] = 'true';
print
dashplayer_get_player($params);
?>