Skip to content
This repository was archived by the owner on Nov 19, 2020. It is now read-only.
This repository was archived by the owner on Nov 19, 2020. It is now read-only.

Subscriber gets on top of the Publisher when the call starts #127

@albericloop

Description

@albericloop

Hello,

I am trying to have a large subscriber component (full screen), with a small publisher component (height/3, width/3) on top of it, so I can see the video of the other phone (publisher), but also the video I am sending (publisher).

When I try to call another device, before the connexion is done, everything is OK.

But when the call is starting the subscriber component goes on the top of the publisher one so I can no longer see the video I send.

I tried many things, like "position=absolute", or modifying the dimensions of the Publisher during a call, but as soon as the subscriber starts to receive video stream it goes on top of every other component.

Capture d’écran 2019-06-08 à 19 27 15

Here is the code inside my render:

      <View style={{flex:1}}>
        <View>
          <Subscriber
              sessionId={this.state.sessionId}
              onSubscribeStop={() => { this.cancelAndBack()}}
              onSubscribeError={() => { this.cancelAndBack()}}
              onSubscribeStart={() => { this.callstarted()}}
              style={{backgroundColor: 'black',
                      height: height,
                      width: width
                      }}
          />
        </View>

        <View style={{position: 'absolute'}}>
          <Publisher
            sessionId = {this.state.sessionId}
            onPublishStop = {() => { this.cancelAndBack()}}
            onPublishError = {() => { this.cancelAndBack()}}
            onPublishStart = {() => {}}
            mute = {this.state.mute}
            style={{backgroundColor: 'black',
                    height:t height/3,
                    width: width/3
                    }}
          />
        </View>
      </View>

Thanks for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions