WordPress.org

Support

Support » Plugins and Hacks » Captions (.srt) in Playlists?

Captions (.srt) in Playlists?

  • How to put Captions (.srt) Tracks into the Playlists please?

    Simply:
    – A Playlist contains Multiple Video Files
    – Captions Tracks for each Video File

    I only know how to set the Captions in Single Files. I can put Caption Track like:

    [jwplayer mediaid=”1234″ plugins=captions-1 captions.file=”http://www.example.com/captions/1234.srt”]

    But how about Playlists, please? Here is how a naked playlist (no captions) works:

    [jwplayer playlistid=”9999″]

    Please kindly help. Thank you so much.

    https://wordpress.org/plugins/jw-player-plugin-for-wordpress/

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author JW Player

    @longtail-video

    Are you using JW5 or JW6?

    JW (SWF) is 6, and the WordPress Plugin is 5 i suppose.

    Plugin Author JW Player

    @longtail-video

    Can I see where you are running this?

    Hi, i’ve just now emailed to Ethan, by following his suggestion here:

    StackOverFlow Topic

    So Ethan should have received my mail already, with the Website Link inside 🙂

    Thank you!

    I’m so sorry.

    The WordPress Plugin Version is:
    2.1.1

    JWPlayer it used is:
    5.8.2011

    Thank you so much.

    Plugin Author JW Player

    @longtail-video

    Ok, it is not possible to add captions into playlists using the built in media manager. However, if you make an external playlist that is an XML file, you can add the captions in there.

    Hi so has it even been able to do before with previous plugin versions? Because i’m quite puzzled since some others are saying it was able to do before.

    Plugin Author JW Player

    @longtail-video

    Not that I know of. Not int he plugin itself. You need to make an external XML playlist file to do this.

    In this case (by already using the WP Plugin with Playlists), is there a way (by using Javascripts) to inject Caption Tracks (.srt) when after the JWPlayer is initiated?

    Cos’ the pure JWPlayer itself can play with Captions in Playlists, like:

    jwplayer(“myElement”).setup({
    playlist: [{
    file: “/assets/sintel.mp4”,
    title: “Sintel Movie Trailer”
    tracks: [{
    file: “/assets/sintel.srt”
    }]
    },{
    file: “/assets/bunny.mp4”,
    title: “Big Buck Bunny Movie Trailer”
    tracks: [{
    file: “/assets/bunny.srt”
    }]
    }]
    });

    So if there’s a way we can inject this:

    tracks: [{
    file: “/assets/bunny.srt”
    }]

    .. in some way, before or after the JWPlayer is initiated?

    Plugin Author JW Player

    @longtail-video

    It can’t be injected, it has to be added on initial setup.

    Ok since the Player is automatically initiated by the WordPress Plugin, then there’s no way to hack from outside already (by using JS).

    Plugin Author JW Player

    @longtail-video

    That is correct.

    Can anyone tell me the way to use .srt file with any uploaded video file?
    I want to use each .srt file with each video. Not with a video list.
    I installed JW Player plugin but it seems it’s not supporting the MP4 video files and can’t play those. I want to use the .srt file with that video.

    Plugin Author JW Player

    @longtail-video

    The JW Player supports MP4. Do you have a link to where it is not working? Please keep in mind, the MP4 files need to be encoded as H264.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Captions (.srt) in Playlists?’ is closed to new replies.