Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bitrate is not working #84

Open
ParthChugh opened this issue Sep 9, 2021 · 0 comments
Open

bitrate is not working #84

ParthChugh opened this issue Sep 9, 2021 · 0 comments

Comments

@ParthChugh
Copy link

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant