WordPress.org

Ready to get started?Download WordPress

Forums

Prevent Deletion of Track Tag (13 posts)

  1. Steve W
    Member
    Posted 8 months ago #

    How do I prevent WordPress from deleting <track></track> when adding the <video> tag?

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 8 months ago #

    Are you making this post as an administrator user, or as a lower user of the site?

  3. Steve W
    Member
    Posted 8 months ago #

    As the administrator. I need users to have the ability to use the track tag for accessibility.

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 8 months ago #

    I don't think users are even allowed to use the html5 video tag by default. Have you tested this as a non admin user? Knowing exactly what you put in and what it gets filtered down to in multiple user-levels would help better define an answer.

    Also, have you tried the video shortcode instead?

  5. Joe Dolson
    Member
    Posted 7 months ago #

    If you want to be able to add caption and subtitle tracks in the video shortcode, I suggest trying my plugin Accessible Video Library, which will give you a custom post type where you can upload caption files and associate them with video media.

    @otto The video shortcode doesn't support any attributes for captioning.

  6. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 months ago #

    The video shortcode doesn't support any attributes for captioning.

    True, however there are filters available when using that shortcode which could be used to add such things.

  7. Joe Dolson
    Member
    Posted 7 months ago #

    True, however there are filters available when using that shortcode which could be used to add such things.

    Yes, but for the most users, setting up filters to add new attributes and manipulate the video shortcode output HTML isn't a nominal amount of effort. Possible, yes.

  8. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 months ago #

    Well, I wouldn't expect a user to do it, but if I knew what kind of HTML he was using, then I could provide a code snippet to make it output the sort of thing he was expecting. A shortcode can be used by normal users, even if they don't know how the code works.

  9. Joe Dolson
    Member
    Posted 7 months ago #

    Well, that's moot, unfortunately, since the original poster seems to have dropped out of this thread...

  10. Steve W
    Member
    Posted 7 months ago #

    Still here, just side-tracked for the moment. I have tried a couple plugins, but none support track and webvtt.

  11. Joe Dolson
    Member
    Posted 7 months ago #

    WebVTT is a variation on .SRT, and should be usable with a .SRT extension. With that extension, they're supported by Accessible Video Library.

  12. Steve W
    Member
    Posted 7 months ago #

    @Joe Dolson - Testing your plugin and I like it. I am having issues with the captions, but I think it is on my end. Since WebVTT is the replacement of WebSRT, I would recommend that you add support for WebVTT. My only other recommendation would be to make it clear that you can simply add the url of the video and captions file without the need to upload.

    Thank you to everybody that posted here.

  13. Joe Dolson
    Member
    Posted 7 months ago #

    Thanks, Steve! I'll add something to make that more clear. Not sure what, but something...

Reply

You must log in to post.

About this Topic