WordPress.org

Ready to get started?Download WordPress

Forums

JW Player for Flash & HTML5 Video
[resolved] Trying to get captions working... (6 posts)

  1. icepin
    Member
    Posted 1 year ago #

    Hello,

    By far the best video plugin for WP but I still can't get the captions working.

    Created a new player and ticked the plugin "captions". Created the crossdomain.xml on the root of my WP install and added the embed code on my post:

    [jwplayer config="default" file="http://mydomain.com/path/video.mp4" image="http://mydomain.com/path/picture.png" plugins="captions" captions.file="http://mydomain.com/path/subtitle.vtt"]

    <?xml version="1.0"?><br />
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"><br />
    <cross-domain-policy><br />
       <allow-access-from domain="mydomain.com"/><br />
       <allow-access-from domain="www.mydomain.com"/><br />
    </cross-domain-policy>

    What am I missing? :/

    http://wordpress.org/extend/plugins/jw-player-plugin-for-wordpress/

  2. JW Player
    Member
    Plugin Author

    Posted 1 year ago #

    That should work, do you have an example link?

  3. icepin
    Member
    Posted 1 year ago #

    Yes. I do the tests on a staging site and I created a test user for you because the website is locked down.

    bogdanpredi.staging.wpengine.com
    user: test
    pw: 123456789

    This is the .vtt file: http://bogdanpredi.staging.wpengine.com/ep1.vtt
    This is the crossdomain.xml file: http://bogdanpredi.staging.wpengine.com/crossdomain.xml

    There is a post called "JW Player Test" and test user is the author if you want to take a look at the embed code.

  4. Jeroen Wijering
    Member
    Posted 1 year ago #

    Note we don't support VTT files in the JW5 player - this is likely the issue.

    We're working on an update of the plugin that supports JW6. That will also have the ability to load VTT captions.

  5. icepin
    Member
    Posted 1 year ago #

    Ahh... I see. Indeed, with .srt works like a charm.
    Thanks, Jeroen.

  6. JW Player
    Member
    Plugin Author

    Posted 1 year ago #

    Ah, that makes sense. SRT / XML timedtext only for JW5.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic