Select Moodle version:

Filters: Streaming media filter (RTMP)

filter_rtmp
Filters URLs beginning with rtmp:// and creates a Flowplayer player using their streaming plugin.
Maintained by: Fred Fred Woolard, Picture of Lacey Vickery Lacey Vickery
for Moodle
2.3, 2.4, 2.5, 2.6

Sets

This plugin is part of set RTMP. Plugins from the set work the best when installed together.

The RTMP streaming media filter is used to replace links containing URLs beginning with rtmp:// with a Flowplayer media player using their rtmp plugin. It is contributed by Lacey Vickery and Fred Woolard.

Page output is examined for anchor href values beginning with rtmp:// and ending with a supported extension (currently .mp3, .mp4, .flv, and .f4v). Qualifying links are replaced with a div tag containing 'data-' prefixed attributes that are subsequently used by the plugin's JavaScript module to apply a Flowplayer player to the div. The Adobe Flash Player browser plugin is required.

The plugin was developed to work with Adobe's Flash Media Server, but according to Flowplayer, their RTMP plugin should work with Wowza, and Red5 as well. The plugin has been tested successfully with Amazon's Cloudfront streaming service.

Playlists are supported (v1.3). See the Playlist resource plugin for more information.

Closed captions are supported (v1.4). See additional documentation.

Screenshots

screenshot
screenshot

Contributors

Fred
Fred Woolard (Lead maintainer): Author
Picture of Lacey Vickery
Lacey Vickery: Author
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Dogbert rules!
    Tue, Apr 2, 2013, 3:17 AM
    Fred/Lacey:

    This is an awesome filter, thank you. While I do like the Flowplayer, I have discovered the JW Player which allows me to add more features such as closed captioning.

    If I wanted to modify this filter to use the JW Player, where do you recommend I make the changes? Thank you.
  • Fred
    Tue, Apr 2, 2013, 3:58 AM
    Frank, it should be fairly straightforward to change it to use JW Player, but I have had no previous experience with that library.

    The renderer is where you'd determine which data- attributes you want the PHP to parse and emit, and that would be determined by how JW Player wants which parts of the URL and where.

    The filter.php just identifies when there is something needing attention, and after having the renderer do its thing the filter sets up the necessary page requirement so the JavaScript is loaded. Which JavaScript library (Flowplayer vs. JW Player) gets loaded is handled by the modules.js file.

    Hope that's enough to get you started.
  • the feather in Illusions
    Mon, Apr 8, 2013, 9:10 PM
    Ok, I tried it and discover two problem:
    1. the parser still not getting %3D, %3F %26 as mentioned previous post.
    2. After change 1. to ? = &, I get the flowplayer display, but get the error 201 about can't load the clip which I use the same url played ok by jwplayer (using poodle).
  • the feather in Illusions
    Mon, Apr 15, 2013, 11:25 AM
    Ok, after further investigation, I discovered that my URL need to have &provider=acf to append at the back. After that the link work but I still have to change all the (%3D, %3F %26) to be "(, ?, &) to make it work, I guess that I can try to add the str_replace to test it.
  • the feather in Illusions
    Wed, Apr 17, 2013, 8:36 PM
    I also encountered in ipad the rtmp can't play, anyone has it plays on ipad?
  • Picture of Lacey Vickery
    Fri, Apr 19, 2013, 3:49 AM
    Chiu, the RTMP protocol is Adobe Flash dependent and will not work with ipads/phones as Flash is not available on those devices.
  • the feather in Illusions
    Sat, Apr 20, 2013, 11:06 AM
    Can we modified the module.js and make it auto fall back to http://.../...mp4 with flowplayer?
  • Picture of Kyle Belcher
    Wed, Jun 5, 2013, 11:13 PM
    Hello,
    First, thanks for developing this filter. I am having trouble getting it to work. I am on Moodle 2.4.4 and have the filter installed and activated. I am using the following rtmp link in the URL resource: rtmp://broadcast.mt.gov/opd/mp4:OPD_Immigration_Training_II.f4v

    The player opens and then throws a 300 error 'Player initialization failed...Error #1023' and then when I try to click play again on the player it throws 202: The provider specified in this clip is not loaded.

    Any ideas on what I may be doing wrong?
  • Picture of Kyle Belcher
    Thu, Jun 6, 2013, 1:42 AM
    Actually...I found a really slick way to embed the JWPlayer with the new version 6. They offer a cloud hosted version of the player and you just embed the html code from the 'quick publish wizard' longtailvideo provides on their site.
  • Fred
    Thu, Jun 6, 2013, 3:29 AM
    Kyle, Have responded with direct message.
  • Fred
    Sat, Jun 15, 2013, 3:10 AM
    Updated 06/14/2013: Corrected way additional query str params are handled. Added support for .f4v extension. Auto-detects the Flowplayer files version.
  • Picture of Alexandre Naves
    Wed, Jul 31, 2013, 10:01 AM
    This filter is perfect and run correctly in my site. Now, I buy Flowplayer Commercial. Can someone help me to make changes, so that I can use the commercial version?
  • Fred
    Fri, Aug 2, 2013, 9:34 PM
    Alexandre, apologies for the delay in responding. I have little experience with Flowplayer Commercial. I will guess that they have supplied to you a customized .swf file. If that is so, then you should be able to swap out the generic .swf file in your Moodle's /lib/flowplayer directory for your customized .swf file. Hope this is helpful.
  • Fred
    Fri, Aug 2, 2013, 9:37 PM
    Alexandre, as for the combination of streams, I need to research a little. I know Flowplayer provides for this. I will be working on implementing playlists next, and this may address your needs.
1 2
Please login to post comments