Title: [Plugin: FLV Embed] RTMP patch
Last modified: August 19, 2016

---

# [Plugin: FLV Embed] RTMP patch

 *  [Nommo](https://wordpress.org/support/users/nommo/)
 * (@nommo)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/plugin-flv-embed-1/)
 * Hey all,
 * Just in case anyone is trying to get this to work with RTMP streaming – it doesn’t
   support it, however – our developer wrote a patch that adds the ‘streamer’ variable
   and allows you to input a ‘Path to RTMP stream’ in the settings.
 * I posted a message in the comments on the author blog offering the patch but 
   the comment hasn’t been accepted yet… I thought I would also offer it here.
 * No support is offered though I am afraid.
 *     ```
       --- flv-embed.bak.php	2009-09-21 12:58:05.000000000 +0100
       +++ flv-embed.php	2009-09-21 13:06:09.000000000 +0100
       @@ -45,6 +45,7 @@
        		'imagetype' => "jpg",
        		'rssdisplay' => "prompt",
        		'flvpath' => "",
       +		'flvstreamer' => "",
        		'playerloc' => "",
        		'backcolor' => "FFFFFF",
        		'frontcolor' => "000000",
       @@ -649,6 +650,13 @@
        						Leave blank if not required i.e always use absolute or site relative links when embedding
        					</td>
        				</tr>
       +				<tr valign="top">
       +					<th scope="row">Path to RTMP stream</th>
       +					<td>
       +						<input name="flvstreamer" type="text" id="flvstreamer" class="code" value="{$options['flvstreamer']}" size="40" /><br />
       +						Leave blank if not required
       +					</td>
       +				</tr>
        			</table>
   
        		<h3>RSS</h3>
       @@ -830,7 +838,7 @@
   
        		<p class="submit">
        			<input type="submit" name="options_update" value="Save Changes" />
       -			<input type="hidden" name="page_options" value="sitemap,useposter,posterpath,imagetype,rssdisplay,flvpath,playerloc,backcolor,frontcolor,lightcolor,screencolor,logo,link,overstretch,smoothing,controlbar,callback,bufferlength,volume,showicons,showdigits,showfsbutton,showstop,showdownload,showvolume,autostart" />
       +			<input type="hidden" name="page_options" value="sitemap,useposter,posterpath,imagetype,rssdisplay,flvstreamer,flvpath,playerloc,backcolor,frontcolor,lightcolor,screencolor,logo,link,overstretch,smoothing,controlbar,callback,bufferlength,volume,showicons,showdigits,showfsbutton,showstop,showdownload,showvolume,autostart" />
        		</p>
        		</form>
   
       @@ -898,6 +906,7 @@
   
        	$flv_posterpath = $options['posterpath'];			// Path to directory of poster images (trailing slash required). If only filename is given (i.e. not absolute or site relative path) when using embed tags, the filename will be appended to this path. Leave blank if not required. (this property has no effect if $flv_useposter = 0)
        	$flv_flvpath = $options['flvpath'];					// Path to directory of flv files (trailing slash required). If only filename is given (i.e. not absolute or site relative path) when using embed tags, the filename will be appended to this path. leave blank if not required.
       +	$flv_flvstreamer = $options['flvstreamer'];					// Path to RTMP stream
   
        	$flv_rssdisplay = $options['rssdisplay'];			// Specify how should FLV Embed handle embed tags for RSS feeds
   
       @@ -963,6 +972,9 @@
   
        	$file = flv_addVariable("file", $movie);
   
       +	// streamer
       +	$streamer = (empty($flv_flvstreamer)) ? "" : flv_addVariable("streamer", $flv_flvstreamer);
       +
        	// poster
        	if ($flv_useposter) {
        		if (empty($poster)) {
       @@ -1120,7 +1132,7 @@
        	s{$flv_counter}.addParam("allowscriptaccess","always");
        	s{$flv_counter}.addParam("allowfullscreen","true");
        	s{$flv_counter}.addVariable("height","{$height}");
       -	s{$flv_counter}.addVariable("width","{$width}"); {$displayheight}{$file}{$image}{$backcolor}{$frontcolor}{$lightcolor}{$screencolor}{$logo}{$link}{$overstretch}{$smoothing}{$shownavigation}{$showdigits}{$showicons}{$showstop}{$showdownload}{$showvolume}{$autostart}{$bufferlength}{$volume}{$usefullscreen}{$callback}{$type}
       +	s{$flv_counter}.addVariable("width","{$width}"); {$displayheight}{$file}{$image}{$backcolor}{$frontcolor}{$lightcolor}{$screencolor}{$logo}{$link}{$overstretch}{$smoothing}{$shownavigation}{$showdigits}{$showicons}{$showstop}{$showdownload}{$showvolume}{$autostart}{$bufferlength}{$volume}{$usefullscreen}{$callback}{$type}{$streamer}
        	s{$flv_counter}.write("player{$flv_counter}");
        </script>
        SWF;
       @@ -1143,6 +1155,7 @@
   
        	$flv_posterpath = $options['posterpath'];			// Path to directory of poster images (trailing slash required). If only filename is given (i.e. not absolute or site relative path) when using embed tags, the filename will be appended to this path. Leave blank if not required. (this property has no effect if $flv_useposter = 0)
        	$flv_flvpath = $options['flvpath'];					// Path to directory of flv files (trailing slash required). If only filename is given (i.e. not absolute or site relative path) when using embed tags, the filename will be appended to this path. leave blank if not required.
       +	$flv_flvstreamer = $options['flvstreamer'];					// Path to RTMP stream
   
        	$flv_rssdisplay = $options['rssdisplay'];			// Specify how should FLV Embed handle embed tags for RSS feeds
   
       @@ -1182,6 +1195,9 @@
   
        	$flashvars = "width=$width&height=$height&file=$movie";
   
       +	// streamer
       +	$flashvars .= ($flv_flvstreamer) ? "" : "&streamer=$flv_flvstreamer";
       +
        	// player location
        	if (empty($flv_playerloc))
        		$player = get_settings('siteurl') . '/wp-content/plugins/flv-embed/flvplayer.swf';
       ```
   
 * [http://wordpress.org/extend/plugins/flv-embed/](http://wordpress.org/extend/plugins/flv-embed/)

Viewing 1 replies (of 1 total)

 *  [viennamex](https://wordpress.org/support/users/viennamex/)
 * (@viennamex)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/plugin-flv-embed-1/#post-1221980)
 * I used your code and installed on my existing flv-embed plugin in WordPress 2.8.4.
   I can see that, yes, the vars are added for RTMP when I drop one video RTMP string
   into the Admin settings area for the FLV-Embed plugin with your modification.
 * However, the previous settings override the RTMP setting and the video still 
   plays from the flv stored in my website server instead of from the RTMP address.
 * So how are you making this modification work for individual videos that each 
   have a different RTMP?
 * I have a new Influxis Flash CDN account where I have uploaded the same 6 flv 
   videos that I uploaded to the WP Media folder weeks ago. These already play using
   the flv-embed code.
 * To use your modfication do you leave out the flv file name in the page tag to
   get the RTMP to work? Or does this cause an error?
 * I need to show a different video on each of 6 different WP pages using RTMP, 
   yet still use the same player installed at my WP server host. Your modification
   only allows one RTMP to be entered to one video, which will show up in the embed
   code for all the different videos.
 * Thanks for telling us how you use this modification on your site!

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: FLV Embed] RTMP patch’ is closed to new replies.

## Tags

 * [RTMP](https://wordpress.org/support/topic-tag/rtmp/)

 * 1 reply
 * 2 participants
 * Last reply from: [viennamex](https://wordpress.org/support/users/viennamex/)
 * Last activity: [16 years, 8 months ago](https://wordpress.org/support/topic/plugin-flv-embed-1/#post-1221980)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
