Skip to content

bitrate is not working  #84

@ParthChugh

Description

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions