Game Development Reference
In-Depth Information
Watching a video
There are many different ways to transport the video, but there is one problem
that many people have, which is the SPS/PPS information that only gets sent at the
beginning of the stream. There is a solution that works with FFmpeg that is hosted
at https://github.com/AndyA/psips . Follow the instructions on the site to
compile the filter.
RTMP streams
We will use an open source media framework to stream the flash content directly in
a browser that supports flash plugins. Download the framework and extract it in the
HTML directory.
# cd /var/www/html
# Wget http://sourceforge.net/projects/smp.adobe/files/latest/
download?source=files
# unzip download?source=files
# sudo mv for\ Flash\ Player\ 10.1 osmf
In the HTML directory, create an HTML file called flash.html and copy this basic
markup into it:
<!DOCTYPE html>
<html>
<head>
<script src=osmf/lib/swfobject.js></script>
<script src=osmf/lib/ParsedQueryString.js></script>
</head>
<body>
<script>
var parameters = {
src: "rtmp://raspberrypi/src/live", autoPlay: true,
optimizeBuffering : false, optimizeInitialIndex: false,
liveBufferTime: 0.1,
liveDynamicStreamingBufferTime: 0.1,
initialBufferTime : 0.1, expandedBufferTime : 0.1,
minContinuousPlayback : 0.1, streamType: "live"
};
swfobject.embedSWF("osmf/StrobeMediaPlayback.swf",
"StrobeMediaPlayback",
1280, 720, "10.1.0", "expressInstall.swf", parameters,
 
Search WWH ::




Custom Search