chore(example/basic): add mute state button (#3809)
This commit is contained in:
parent
94b3da3477
commit
dbd7d7aa2c
@ -783,6 +783,13 @@ class VideoPlayer extends Component {
|
|||||||
onPress={this.onResizeModeSelected}
|
onPress={this.onResizeModeSelected}
|
||||||
selected={this.state.resizeMode}
|
selected={this.state.resizeMode}
|
||||||
/>
|
/>
|
||||||
|
<ToggleControl
|
||||||
|
isSelected={this.state.muted}
|
||||||
|
onPress={() => {
|
||||||
|
this.setState({muted: !this.state.muted});
|
||||||
|
}}
|
||||||
|
text="muted"
|
||||||
|
/>
|
||||||
{Platform.OS === 'ios' ? (
|
{Platform.OS === 'ios' ? (
|
||||||
<ToggleControl
|
<ToggleControl
|
||||||
isSelected={this.state.paused}
|
isSelected={this.state.paused}
|
||||||
|
Loading…
Reference in New Issue
Block a user