Skip to content

Commit

Permalink
chore: add muted button in sample
Browse files Browse the repository at this point in the history
  • Loading branch information
freeboub committed May 21, 2024
1 parent f5afaa8 commit 695ae45
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/basic/src/VideoPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,13 @@ class VideoPlayer extends Component {
onPress={this.onResizeModeSelected}
selected={this.state.resizeMode}
/>
<ToggleControl
isSelected={this.state.muted}
onPress={() => {
this.setState({muted: !this.state.muted});
}}
text="muted"
/>
{Platform.OS === 'ios' ? (
<ToggleControl
isSelected={this.state.paused}
Expand Down

0 comments on commit 695ae45

Please sign in to comment.