Skip to content

Commit

Permalink
chore(example/basic): add mute state button (#3809)
Browse files Browse the repository at this point in the history
  • Loading branch information
freeboub authored May 22, 2024
1 parent 94b3da3 commit dbd7d7a
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 dbd7d7a

Please sign in to comment.