From b07b35ad22f5fe4346c66188976519a7d9a53411 Mon Sep 17 00:00:00 2001 From: Amo Wu Date: Thu, 11 Jan 2024 11:06:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(TrackNotes):=20=E4=BF=AE=E5=BE=A9=E9=80=B2?= =?UTF-8?q?=E5=BA=A6=E6=A2=9D=E7=AF=80=E9=BB=9E=E6=B6=88=E5=A4=B1=E5=95=8F?= =?UTF-8?q?=E9=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I found that the latest version of the player v8.30.1, the `addCues` API is not work, but the Biannual version (8.18.4) works fine. If you change `cueType` from `custom` to `chapters` there should be no issue. Altenatively you can add to continue to use `custom`. You can see my example below: ``` timeSlider: { legacy: true } ``` https://s3.amazonaws.com/kevinap.success.jwplayer.com/83177_set_cues.html --- apps/docs/stories/TrackNotes.stories.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/docs/stories/TrackNotes.stories.tsx b/apps/docs/stories/TrackNotes.stories.tsx index 5256406..1a7e6e1 100644 --- a/apps/docs/stories/TrackNotes.stories.tsx +++ b/apps/docs/stories/TrackNotes.stories.tsx @@ -54,6 +54,10 @@ export const TrackNotes = createPluginStory({ config: { height: 360, width: 640, + // 新版本的播放器不支援 custom cueType 了,需要加這個設定才行 + timeSlider: { + legacy: true, + }, }, file: "https://cdn.jwplayer.com/manifests/GXbUbwm0.m3u8", library: "https://cdn.jwplayer.com/libraries/5vuW2BEP.js",