Skip to content

Commit 02f6cf1

Browse files
committed
fix playlist examples
1 parent 2d55468 commit 02f6cf1

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"lint": "eslint src --fix --ext .ts,.tsx",
1717
"test": "jest --env=jsdom",
1818
"cov": "jest --env=jsdom --coverage",
19-
"storybook": "start-storybook -p 9000",
19+
"storybook": "NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 9000",
2020
"build:storybook": "build-storybook -c .storybook -o docs",
2121
"prepare": "husky install"
2222
},

stories/playlist.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ import React, { Component } from 'react'
22
import AudioPlayer from '../src/index'
33

44
const playlist = [
5-
{ name: '枝芽', src: 'https://hanzluo.s3-us-west-1.amazonaws.com/music/zhiya.mp3' },
6-
{ name: '自由女神', src: 'https://hanzluo.s3-us-west-1.amazonaws.com/music/ziyounvshen.mp3' },
7-
{ name: '无雨无晴', src: 'https://hanzluo.s3-us-west-1.amazonaws.com/music/wuyuwuqing.mp3' },
8-
{ name: '碎片', src: 'https://hanzluo.s3-us-west-1.amazonaws.com/music/suipian.mp3' },
9-
{ name: '永恒的港湾', src: 'https://hanzluo.s3-us-west-1.amazonaws.com/music/yonghengdegangwan.mp3' },
5+
{ name: 'SoundHelix-Song-9', src: 'https://www.soundhelix.com/examples/mp3/SoundHelix-Song-9.mp3' },
6+
{ name: 'SoundHelix-Song-4', src: 'https://www.soundhelix.com/examples/mp3/SoundHelix-Song-4.mp3' },
7+
{ name: 'SoundHelix-Song-8', src: 'https://www.soundhelix.com/examples/mp3/SoundHelix-Song-8.mp3' },
108
]
119

1210
interface PlayListState {

stories/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const SAMPLE_MP3_URL = 'https://hanzluo.s3-us-west-1.amazonaws.com/music/wuyuwuqing.mp3'
1+
export const SAMPLE_MP3_URL = 'https://www.soundhelix.com/examples/mp3/SoundHelix-Song-9.mp3'

0 commit comments

Comments
 (0)