WordPress.org

Ready to get started?Download WordPress

Forums

JW Player for Flash & HTML5 Video
[Plugin: JW Player Plugin for WordPress] Support RTMP and HTML5 urls - patch (2 posts)

  1. ljg3
    Member
    Posted 3 years ago #

    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.

  2. JW Player
    Member
    Plugin Author

    Posted 3 years ago #

    @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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic