Title: [Plugin: JW Player Plugin for WordPress] Support RTMP and HTML5 urls &#8211; patch
Last modified: August 19, 2016

---

# [Plugin: JW Player Plugin for WordPress] Support RTMP and HTML5 urls – patch

 *  [ljg3](https://wordpress.org/support/users/ljg3/)
 * (@ljg3)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-jw-player-plugin-for-wordpress-support-rtmp-and-html5-urls-patch/)
 * I wanted to be able to specify both an rtmp stream as well as a different url
   for HTML5 fallback (for the iPad/iPhone/etc). The plugin doesn’t support this
   natively so I added as alt_file field, which, if specified, the plugin will use
   as the HTML5 player source. If you need to accomplish the same thing, the patch
   is attached. Additionally, I think the logic in generate_embed_code() when deciding
   if the User-Agent was an iPad was backwards, so I corrected that as well.
 * Finally, I think a feature like this (if not this exact implementation) would
   be nice for the plugin to have.
 * [Here is the patch.](http://dl.dropbox.com/u/4474406/jw-patch-1.3.3.patch)

Viewing 1 replies (of 1 total)

 *  Plugin Author [JW Player](https://wordpress.org/support/users/longtail-video/)
 * (@longtail-video)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-jw-player-plugin-for-wordpress-support-rtmp-and-html5-urls-patch/#post-2026667)
 * [@ljg3](https://wordpress.org/support/users/ljg3/),
 * Thanks for posting a patch. We’re currently working on adding mode support to
   the plugin now that it’s officially supported by JW Player 5.5. Expect an update
   soon.
 * The logic regarding iPad detection was correct. This code should only run if 
   the embedder is not present as the embedder handles iPad detection on it’s own.
 * Thanks.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: JW Player Plugin for WordPress] Support RTMP and HTML5 urls –
patch’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jw-player-plugin-for-wordpress_ffffff.
   svg)
 * [JW Player for Flash & HTML5 Video](https://wordpress.org/plugins/jw-player-plugin-for-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jw-player-plugin-for-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jw-player-plugin-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/jw-player-plugin-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jw-player-plugin-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jw-player-plugin-for-wordpress/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [JW Player](https://wordpress.org/support/users/longtail-video/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-jw-player-plugin-for-wordpress-support-rtmp-and-html5-urls-patch/#post-2026667)
 * Status: not a support question