Skip to content

Commit 5baae49

Browse files
committed
fix: upgrade Mux player
1 parent ddb2eb2 commit 5baae49

File tree

4 files changed

+33
-33
lines changed

4 files changed

+33
-33
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Prop | Description
8282
`onPlay` | Called when media starts or resumes playing after pausing or buffering
8383
`onProgress` | Called when media data is loaded
8484
`onTimeUpdate` | Called when the media's current time changes
85-
`onDuration` | Callback containing duration of the media, in seconds
85+
`onDurationChange` | Callback containing duration of the media, in seconds
8686
`onPause` | Called when media is paused
8787
`onSeeking` | Called when media is seeking
8888
`onSeeked` | Called when media has finished seeking

examples/react/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class App extends Component {
144144
handleDurationChange = () => {
145145
if (!this.player) return;
146146

147-
console.log('onDuration', this.player.duration);
147+
console.log('onDurationChange', this.player.duration);
148148
this.setState({ duration: this.player.duration });
149149
};
150150

package-lock.json

Lines changed: 30 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"react-dom": "^17.0.2 || ^18"
5151
},
5252
"dependencies": {
53-
"@mux/mux-player-react": "^3.3.1",
53+
"@mux/mux-player-react": "^3.3.3",
5454
"cloudflare-video-element": "^1.3.1",
5555
"dash-video-element": "^0.1.1",
5656
"deepmerge": "^4.0.0",

0 commit comments

Comments
 (0)