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

UI of Viewer View #12

Open
zc-razanaqvi opened this issue Jul 6, 2023 · 0 comments
Open

UI of Viewer View #12

zc-razanaqvi opened this issue Jul 6, 2023 · 0 comments

Comments

@zc-razanaqvi
Copy link

zc-razanaqvi commented Jul 6, 2023

Screenshot_1688646950

I'm getting this view when a user is joining with "VIEWER" mode

Here's the code snippet I've used

`<SafeAreaView style={{ flex: 1, backgroundColor: 'black' }}>
{hlsState == 'HLS_PLAYABLE' ? (
<>
{/* Render Header for copy meetingId and leave meeting*/}

      {/* Render VideoPlayer that will play `downstreamUrl`*/}
      <Video
        // controls={true}
        source={{ uri: hlsUrls.downstreamUrl}}
        resizeMode={'stretch'}
        style={{
          flex: 1,
          backgroundColor: 'black',
        }}
        onError={e => console.log('error', e)}
      />
    </>
  ) : (
    <SafeAreaView
      style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
      <Text style={{ fontSize: 20, color: 'white' }}>
        HLS is not started yet or is stopped
      </Text>
    </SafeAreaView>
  )}
</SafeAreaView>`

thanks in advanced for helping
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