Skip to content

Commit

Permalink
fix(TrackNotes): 修復進度條節點消失問題
Browse files Browse the repository at this point in the history
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
  • Loading branch information
amowu committed Jan 11, 2024
1 parent e2993c4 commit b07b35a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/docs/stories/TrackNotes.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b07b35a

Please sign in to comment.