chore(example/basic): add mute state button (#3809)

This commit is contained in:
Olivier Bouillet 2024-05-22 13:58:47 +02:00 committed by GitHub
parent 94b3da3477
commit dbd7d7aa2c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}