The latest version of InfluxisPlayer now supports p2p (peer to peer) live multicast feeds. With p2p multicast, a broadcast feed is handled through the viewers instead of the server. This way of broadcasting video reduces bandwidth costs.

Since this Flash Player technology is somewhat new, finding information to get setup is a little difficult. InfluxisPlayer breaks this barrier and offers an almost instant way to broadcast and view p2p feeds. It’s also extremely flexible so almost any p2p feed can be accepted by the player. The following is a breakdown of each method that can be used to setup the player to receive a feed:

Requirements:

  1. Minimum of Flash Player 10.1 must be installed for all viewers.
  2. An Influxis Custom Enterprise account is required.
  3. InfluxisPlayer application must be setup on the server with supporting server files.
  4. Download the sample files.

Influxis P2P Multicaster API

The P2P Multicaster API is a system that uses FMLE (Flash Media Live Encoder) to greatly facilitate the p2p broadcasting process. There are 2 ways to use this API.

1. The first method is by far the easiest way to get going with p2p broadcasting. If you haven’t done so already, download FMLE and open it once it’s installed. In FMLE enter a rtmp connection path to the Influxis account. In the stream name setting use any name, but append “usep2p” to the name chosen.

Once the settings are in place start your broadcast feed.

In the InfluxisPlayer settings, set the “isMulticast” setting to “true” and in the connection path use the “rtmfp” protocol instead of “rtmp”. Enter the full name of the stream name used in FMLE to the “file” setting in the player to complete setup.

FlashVars Example:

<object id=”infxplayer” type=”application/x-shockwave-flash” data=”InfluxisPlayer.swf” width=”480″ height=”360″>
<param name=”movie” value=”InfluxisPlayer.swf”></param>
<param name=”allowFullScreen” value=”true”></param>
<param name=”allowScriptAccess” value=”always”></param>
<param name=”flashvars” value=”RTMP=rtmfp://xxx.rtmphost.com/OSMFPlayer&file=livestream_usep2p&isMulticast=true”></param>
</object>

Settings XML Example:

<settings>
<rtmp path=”rtmfp://xxxxxx.rtmphost.com/OSMFPlayer” skin=”skins” />
<file file=”livestream_usep2p” isMulticast=”true” />
</settings>

2. The second way requires more work but is much more customizable then the first. It uses a string query to enter in custom parameters to use for the broadcast. In FMLE, enter a rtmp connection path to the Influxis account. Any name for the stream name can be used. To access the custom parameters append “?” to the string to begin the query. The following parameters are available:

p2p.group: The name of the p2p group to broadcast (required).
p2p.password: The p2p group password for the broadcast.
p2p.address: The p2p broadcast IP address and port separated by colon.

Separate each parameter using the “&” symbol. Here is an example query:

livestream?p2p.group=myCustomGroup&p2p.password=mySecretPass

FMLE Setup:

In the InfluxisPlayer settings, set the “isMulticast” setting to “true” and in the connection path use the “rtmfp” protocol instead of “rtmp”. Enter in the custom parameters used in FMLE with the “multicastGroup”, “multicastPassword”, and “multicastAddress” settings in the player. Enter the only name of the stream name used in FMLE (not the query string appended to the name) to the “file” setting in the player to complete setup.

FlashVars Example:

<object id=”infxplayer” type=”application/x-shockwave-flash” data=”InfluxisPlayer.swf” width=”480″ height=”360″>
<param name=”movie” value=”InfluxisPlayer.swf”></param>
<param name=”allowFullScreen” value=”true”></param>
<param name=”allowScriptAccess” value=”always”></param>
<param name=”flashvars” value=”RTMP=rtmfp://xxx.rtmphost.com/OSMFPlayer&file=livestream&
isMulticast=true&multicastGroup=myCustomGroup&multicastPassword=mySecretPass”></param>
</object>

Settings XML Example:

<settings>
<rtmp path=”rtmfp://xxxxxx.rtmphost.com/OSMFPlayer” skin=”skins” />
<file file=”livestream” multicastGroup=”myCustomGroup” multicastPassword=”mySecretPass” isMulticast=”true” />
</settings>

 

Adobe Configurator:

The Adobe configurator is a tool used to setup a p2p broadcast using Flash Media Live Encoder (FMLE). A full explanation on how to use this tool with FMLE is found here.

Once setup on the broadcasting side is complete, the F4M manifest file path should then be entered in the “file” setting. The “isMulticast” setting should be set to “true” to complete the setup. No connection path is required in the settings for this to work.

 

Custom Setup:

If FMLE is not an option and a custom setup is used to setup the broadcasting stream, then “multicastGroup”, “multicastPassword”, and “multicastAddress” can be used to enter in the proper authorizations to view the stream. A groupspec id can also be used via the “groupSpec” setting to keep the stream authorizations confidential. In the InfluxisPlayer settings set the “isMulticast” setting to “true” and in the connection path use the “rtmfp” protocol instead of “rtmp” to complete the setup.

2 Responses to “InfluxisPlayer Peer To Peer Multicasting”

  1. Tweets that mention InfluxisPlayer Peer To Peer Multicasting « Influxis Labs -- Topsy.com

    [...] This post was mentioned on Twitter by Influxis, VTV. VTV said: RT @Influxis: InfluxisPlayer Peer To Peer Multicasting. Try the P2P Multicaster API that uses FMLE! http://labs.influxis.com/?p=1485 [...]

    Reply
  2. Live Broadcasting With InfluxisPlayer! « Influxis Labs

    [...] You can also use FMLE to broadcast a live peer to peer multicast stream which would help save on bandwidth. However note that this kind of broadcasting does not support DSS or DVR functionality. For more details please checkout this article. [...]

    Reply

Leave a Reply

Current day month ye@r *