-
Notifications
You must be signed in to change notification settings - Fork 43
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
In multiple person video call we are getting black space in video frame & Live streaming issues #160
Comments
Thanks for raising these issues @hyperbeans. For the first issue with the Black bars, that is a scaling issue. The default is to For the second issue it sounds like the audience is joining as a host not an audience. Please take a look at the Customising functionality with RtcProps to ensure you are setting the roles correctly.
|
Hi @hyperbeans,
|
Hello, import React, { useEffect, useState } from "react"; // RenderModeType, VideoRenderMode , {RenderModeType } const { width, height } = Dimensions.get("window"); const Videocall = ({ navigation }) => { // const styleProps = { const styleProps = {
{ const props = {
}; useEffect(() => { const filteredRemoteUsers = isHost return videoCall ? (
); const styles = StyleSheet.create({ fullView: { export default Videocall;host ==1 we have also try this videoMode:{ |
The code you send above, which user is that for?
this line sets the user to host which means they can broadcast into the channel.
Could you please elaborate on
Where did you try this? |
Hello , import React, { useEffect, useState } from "react"; // RenderModeType, VideoRenderMode , {RenderModeType } const { width, height } = Dimensions.get("window"); const Videocall = ({ navigation }) => { // const styleProps = { const styleProps = {
{ const props = {
}; useEffect(() => { const filteredRemoteUsers = isHost return videoCall ? (
); const styles = StyleSheet.create({ fullView: { export default Videocall; |
The code you send above, which user is that for? const [isHost, setIsHost] = useState(true); answer:- User is broadcaster, We are trying in our team only, I am hosting & my frined is receiving it. RE: exported video call : Could you please elaborate on use kiya h tor ho raha h ? Re: videoMode:{ max:RenderModeType.RenderModeHidden, min:RenderModeType.RenderModeHidden, } answer :- It is used in RTC localview & RTC remote view. Where did you try this? answer:- It is used in the style props but nothing changes, still black spaces are coming. |
If you tried my suggestions and are still not getting the desired result then I will need to have a look at more of the code (in context). Are you able to add me to the repo? |
Hi, you can access the code from below repo https://github.com/hyperbeans/agora_demo.git thank you |
Hello @digitallysavvy |
Hello,
Target device: (Note: simulators are not supported for running the UIKit)
App Info
Describe the issue 1
Ticket ID 1: CUS-42775
when we call started and other person came and join the call our video call started but black space around our video call .
i want to remove that black space becuase half of my screen show in black protion that not good for my app .
so.please give appropriate answer and remove that balck space in that call
To Reproduce
Steps to reproduce the behavior:
Screenshots
i am sharing also screenshot so you get it my issue
Describe the issue 2
Ticket ID 2: CUS-42767
when we call started than i want that my video see my friends and join my friend in that video
example we are coming in insta live than our friend show us but we not see them
In my case i achieve 50% functionality like audience only show host screen(video) but in host screen audience screen(video) also add
and other audience also see other audience video
so.please give appropriate answer and remove how to stop see audience video to other audience and host also not see audience video
only host video video see audience
To Reproduce
Steps to reproduce the behavior:
a. start call
b. second person go to live stream and press stream than you watch i told that scenario and third person also connect with stream than you catch what i told you
Screenshots
i am sharing also screenshot so you get it my issue
Here is code
For videocall*******
import React, { useEffect, useState } from "react";
import AgoraUIKit, { ClientRoleType } from "agora-rn-uikit";
// RenderModeType, VideoRenderMode , {RenderModeType }
// import {RenderModeType} from 'react-native-agora';
import {
Text,
PermissionsAndroid,
Alert,
SafeAreaView,
View,
StyleSheet,
Dimensions,
} from "react-native";
const { width, height } = Dimensions.get("window");
const Videocall = ({ navigation }) => {
const [videoCall, setVideoCall] = useState(false);
const [buttonsState, setButtonState] = useState("flex");
const [remoteUsers, setRemoteUsers] = useState([]);
const [userCount, setUserCount] = useState(1);
const [isHost, setIsHost] = useState(true);
const styleProps = {
usernameText: { padding: 10, right: 0 },
localBtnContainer: { display: buttonsState },
// videoMode:"fullscreen"
};
const props = {
connectionData: {
appId: "a233f454a3f64ce19d6b480aaa018a93",
channel: "agoratest",
layout: 0,
displayUsername: true,
username: "vikash",
role: isHost ? 1 : 2,
},
rtcCallbacks: {
EndCall: () => {
setVideoCall(false);
setRemoteUsers([]);
},
};
const filteredRemoteUsers = isHost
? remoteUsers.filter((user) => user.role !== 2).map((user) => user.uid)
: remoteUsers.map((user) => user.uid);
return videoCall ? (
<AgoraUIKit
connectionData={props.connectionData}
rtcCallbacks={props.rtcCallbacks}
styleProps={styleProps}
videoPlaceholderProps={{ showButtons: false }}
remoteUsers={filteredRemoteUsers}
/>
Connected Users: {userCount}
) : (
<>
<Text
style={styles.startCallText}
onPress={() => {
setVideoCall(true);
setUserCount(1);
}}
>
Start Call
);
};
const styles = StyleSheet.create({
max: {
flex: 1,
},
fullView: {
width: width,
height: height,
},
fullView1: {
width: width,
height: height,
},
userCountText: {
position: "absolute",
top: 10,
left: 10,
color: "white",
fontSize: 16,
},
startCallText: {
marginTop: "10%",
textAlign: "center",
},
LiveStreamText: {
marginTop: "10%",
textAlign: "center",
},
});
export default Videocall;
***For livestream
import React, { useEffect, useState } from "react";
import AgoraUIKit, { ClientRoleType } from "agora-rn-uikit";
// RenderModeType, VideoRenderMode , {RenderModeType }
// import {RenderModeType} from 'react-native-agora';
import { Text, PermissionsAndroid, Alert, SafeAreaView, View ,StyleSheet,Dimensions} from "react-native";
const { width, height } = Dimensions.get('window');
const Livestream = ({navigation}) => {
const [videoCall, setVideoCall] = useState(false);
const [buttonsState, setButtonState] = useState("flex");
const [userCount, setUserCount] = useState(1);
const styleProps = {
usernameText: { padding: 10, right: 0 },
localBtnContainer: { display: buttonsState },
};
const props = {
connectionData: {
appId: "a233f454a3f64ce19d6b480aaa018a93",
channel: "agoratest",
layout: 0,
displayUsername: true,
username : "vikash",
role:2,
};
return videoCall ? (
) : (<>
<Text style={styles.startCallText} onPress={() => {setVideoCall(true); setUserCount(1)}}>
Stream
<Text style={styles.LiveStreamText} onPress={() => navigation.navigate("Videocall") } > Host call</>
);
};
const styles = StyleSheet.create({
max: {
flex: 1,
// justifyContent: 'center',
// alignItems: 'center',
// backgroundColor: '#fff',
},
fullView: {
width: width,
height: height ,
},
fullView1: {
width: width,
height: height,
},
userCountText: {
position: 'absolute',
top: 10,
left: 10,
color: 'white',
fontSize: 16,
},
startCallText: {
marginTop: "10%",
textAlign: 'center',
},
LiveStreamText: {
marginTop: "10%",
textAlign: 'center',
},
});
export default Livestream;
The text was updated successfully, but these errors were encountered: