Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't detect track in video elements #8

Open
goatandsheep opened this issue Nov 6, 2018 · 3 comments
Open

can't detect track in video elements #8

goatandsheep opened this issue Nov 6, 2018 · 3 comments

Comments

@goatandsheep
Copy link

I have a track in my video element and the captions work well, but it is not being detected by the linter

@maranran
Copy link
Owner

your code ? @goatandsheep

@goatandsheep
Copy link
Author

<video
    :ref="id"
    class="video-js vjs-default-skin"
  >
    <track
      :src="track"
    >
</video>

eslint(vue-a11y/media-has-caption): Media elements such as <audio> and <video> must have a <track> for captions.

@maranran
Copy link
Owner

The track element must be present for each HTML5 audio element, with kind="captions" set as a property. detail @goatandsheep you should add kind="captions" for track element

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants