android - React-Native RTC view overlap -


i using video in rtcview , want show 1 small video on video. rtcview not overlapping each other. below code

<rtcview streamurl={this.state.selfviewsrc} style={styles.selfview}/> {    maphash(this.state.remotelist, function(remote, index) {    return <rtcview key={index} streamurl={remote} style=    {styles.remoteview}/>   }) } 

css are-

const styles = stylesheet.create({ selfview: {     width: width,     height: (platform.os === 'ios') ? height-80 : height/2+100,     alignself: 'center',     zindex: 0, }, remoteview: {     position: 'absolute',     zindex: 2,     margintop: (platform.os === 'ios') ? -120 : 0,     width: 120,     height: 120,     left: 0,     borderwidth: .5,     alignself: 'flex-start' }, 

i have solved problem issue order in selfview , remoteview creating, have created remote view first put them on self view.

thanks everyone!


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -