HTML Video Tags

Asked 2 years ago, Updated 2 years ago, 126 views

<video controlsList="nodownload" width="1000" poster ="videoName.jpg" controls >
    <source src="videoName.mp4" type="video/mp4">
    <track src="videoName.vtt" kind="subtitles" srclang="ko" label="Korea" default>
    <track src="videoName.vtt" kind="subtitles" srclang="en" label="English" default>
</video>

I wrote down the video tag as above. Everything works well, but the subtitles don't work on the full screen on the mobile. Is there a way to show subtitles on mobile?

html video

2022-09-22 20:04

2 Answers

If you want to unify your video experience on mobile and PC, you should think about introducing the player framework. VideoJS There is a good open source, so try it.


2022-09-22 20:04

http://www.iandevlin.com/html5test/webvtt/html5-video-webvtt-sample.html

I think I can see this example well. I tested it on my iPhone. Haha


2022-09-22 20:04

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.