Skip to content

Commit

Permalink
chore: update example
Browse files Browse the repository at this point in the history
  • Loading branch information
ambar committed Jan 29, 2022
1 parent 014b3fa commit f692e04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const NavLinks = () => {
<br />
<Link to="/mp4?hls">/mp4?hls</Link>
<br />
<Link to="/mp4?autoplay=0">/mp4?autoplay=0</Link>
<Link to="/mp4?key=0&autoplay=0">/mp4?key=0&autoplay=0</Link>
</li>
<li>
<Link to="/mp4-mse">/mp4-mse</Link>
Expand Down
2 changes: 2 additions & 0 deletions example/src/MP4Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ const App = () => {
<>
<Player
{...props}
// trigger re-mount
key={query.key}
autoplay={query.autoplay !== '0'}
sources={'hls' in query ? hlsSources : props.sources}
localeConfig={{
Expand Down

0 comments on commit f692e04

Please sign in to comment.