-
Notifications
You must be signed in to change notification settings - Fork 69
Open
Description
const qualities=[270 ,360, 540, 720]
<BrightcovePlayer
{...props.controlProps}
accountId={props.BrightCoveKey}
videoId={props.videoId}
play={!state.play}
playbackRate={playbackRate}
policyKey={props.policyKey}
disableDefaultControl
onChangeDuration={({ duration }) => {
setState({...state, duration})
}}
onUpdateBufferProgress={(data) => {
console.log('buffering', data)
}}
bitrate={quality || 0}
onReady={onLoad}
onProgress={(data) => {
onProgress(data)
props.controlProps.onProgress(data)
}}
onEnd={onEnd}
onUpdateBufferProgress={onBuffer}
/>
<TouchableOpacity onPress={() => updateRate(0)}>
<Text
style={{
color: rate === 0 ? 'orange' : 'white',
fontSize: 16,
padding: 5,
}}>
auto
</Text>
</TouchableOpacity>
{qualities.map((newRate, index) => (
<TouchableOpacity key={index} onPress={() => updateRate(newRate)}>
<Text
style={{
color: rate === newRate ? 'orange' : 'white',
fontSize: 16,
padding: 5,
}}>
{newRate}p
</Text>
</TouchableOpacity>
))}
The rate is not changing when I select any other bit rate
the video which I'm trying have different rates available [270 ,360, 540, 720]
Metadata
Metadata
Assignees
Labels
No labels