以下に解説あり。
Styling Captions for FCC Compliance | JW Player
https://support.jwplayer.com/customer/portal/articles/1482067
JWPlayerオプション指定
captionsオブジェクトで指定できる。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
var playerInstance = jwplayer("myElement") playerInstance.setup({ playlist: [{ file: "/assets/sintel.mp4", image: "/assets/sintel.jpg", tracks: [{ file: "/assets/captions-en.vtt", label: "English", kind: "captions", "default": true },{ file: "/assets/captions-fr.vtt", kind: "captions", label: "French" }] }], captions: { color: '#FF0000', fontSize: 24, backgroundOpacity: 50 } }); |