[Plugin: FLV Embed] RTMP patch
-
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';
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: FLV Embed] RTMP patch’ is closed to new replies.