Skip to content

Commit

Permalink
docs(TrackNotes): 更新文件
Browse files Browse the repository at this point in the history
  • Loading branch information
amowu committed Jan 11, 2024
1 parent be7889e commit 5cf2ad5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions apps/docs/stories/TrackNotes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ IIFE 格式,JW Player 預設使用 plugin 的方式:

<script type="text/JavaScript">
jwplayer("myElement").setup({
"timeSlider": {
"legacy": true,
},
"playlist": "{your_playlist_url}",
"plugins": {
"//unpkg.com/@hahow/jwplayer-plugin-watermark@latest/dist/iife/trackNotes.js": {
Expand Down Expand Up @@ -76,6 +79,10 @@ const App = () => (
library='{your_cloud_hosted_player_library_url}'
playlist='{your_playlist_url}'
config={{
// 新版本的播放器不支援 custom cueType 了,需要加這個設定才行
timeSlider: {
legacy: true,
},
plugins: {
"//unpkg.com/@hahow/jwplayer-plugin-track-notes@latest/dist/iife/trackNotes.js": {
trackNotes: [
Expand Down Expand Up @@ -122,6 +129,9 @@ const App = () => (
library='{your_cloud_hosted_player_library_url}'
playlist='{your_playlist_url}'
config={{
timeSlider: {
legacy: true,
},
plugins: {
"/trackNotes.js": {
trackNotes: [
Expand Down

0 comments on commit 5cf2ad5

Please sign in to comment.