WordPress.org

Forums

JW Player for Flash & HTML5 Video
Captions (.srt) in Playlists? (15 posts)

  1. 4lvin
    Member
    Posted 1 year ago #

    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/

  2. JW Player
    Member
    Plugin Author

    Posted 1 year ago #

    Are you using JW5 or JW6?

  3. 4lvin
    Member
    Posted 1 year ago #

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

  4. JW Player
    Member
    Plugin Author

    Posted 1 year ago #

    Can I see where you are running this?

  5. 4lvin
    Member
    Posted 1 year ago #

    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!

  6. 4lvin
    Member
    Posted 1 year ago #

    I'm so sorry.

    The WordPress Plugin Version is:
    2.1.1

    JWPlayer it used is:
    5.8.2011

    Thank you so much.

  7. JW Player
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  8. 4lvin
    Member
    Posted 1 year ago #

    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.

  9. JW Player
    Member
    Plugin Author

    Posted 1 year ago #

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

  10. 4lvin
    Member
    Posted 1 year ago #

    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?

  11. JW Player
    Member
    Plugin Author

    Posted 1 year ago #

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

  12. 4lvin
    Member
    Posted 1 year ago #

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

  13. JW Player
    Member
    Plugin Author

    Posted 1 year ago #

    That is correct.

  14. neo.rbk
    Member
    Posted 8 months ago #

    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.

  15. JW Player
    Member
    Plugin Author

    Posted 8 months ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • JW Player for Flash & HTML5 Video
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic