Skip to content

Incorrect native TextTrack browser detection #9128

@KingMob

Description

@KingMob

Description

The Html5.supportsNativeTextTracks() fn returns false for Chrome and Firefox (browser.IS_ANY_SAFARI || (browser.IS_IOS && browser.IS_CHROME);), but this seems incorrect.

If this is meant to reflect support for TextTrack, both MDN and Caniuse suggest it's widely available, and has been for years.

The only two TextTrack properties without widespread support according to MDN, are inBandMetadataTrackDispatchType and sourceBuffer. I see references to them under dist/, but not elsewhere, which makes me think the dist code is being inserted by Browserify/Webpack/etc.

The only exception in non-dist/ code is inBandMetadataTrackDispatchType is a serialized property in trackToJson(), but it's not used by videojs.


IIUC, videojs prefers emulated tracks, but correct capability identification seems like a separate issue.

Reduced test case

https://codepen.io/KingMob/pen/GgZMOEV

Steps to reproduce

N/A

Errors

No response

What version of Video.js are you using?

main

Video.js plugins used.

none

What browser(s) including version(s) does this occur with?

Chrome 142, Firefox 146

What OS(es) and version(s) does this occur with?

Tested on macOS 26.1, but should be unrelated to OS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions