tecladistaprod / rn-antmedia Goto Github PK
View Code? Open in Web Editor NEWPort of webrtc-adaptor (AntMedia) to react-native using react-native-webrtc
License: Other
Port of webrtc-adaptor (AntMedia) to react-native using react-native-webrtc
License: Other
React Native WebRtc just released a new version and I think it will fix lots of limitations we had earlier like to know who is speaking and all of that.
https://github.com/react-native-webrtc/react-native-webrtc
Can we rework on hooks to utilize newly added APIs from rnwebrtc?
I ran the code from the readme.md
newStreamAvailable
command gets fired on Device AnewStreamAvailable
command gets firedSeems, onTrack
method is not getting called which is responsible for adding new remoteStreams
I have used the code from the readme.md and as soon as I hit the button join room it just gives me this error.
However, if I just return Promise.resolve()
instead throwing an error it works. But that's not right thing to do. Can you help me please?
When we click on start Button we get error url == null
Hi
Is there any plan to add screen sharing api's to this library ?
Hi good job, does it also support Community Edition server?
Happens when I tried to join a streamId using adaptor.join(), then disconnect using adaptor.leave() then join again.
What should I do when I receive this error from error callback? I tried running adaptor.leave() when on errorCallback but still the same.
I tried implementing a livestream code following the Peer view sample code on example folder. On android it works perfectly, both broadcasting and playing livestream but on iOS only broadcasting works, Playing functionality causes App to crash immediately after running adaptor.play.
The first thing I noticed is that remoteMedia is not picking up anything causing "No video stream for react tag" error at the start of the screen but it only happens on iOS.
My adaptor on Play screen looks like this:
And my RTCView looks like this:
I turned off video and audio since its just playing a stream and not sending the stream then I turned onlyDataChannel true because it won't let me start the adaptor without video and audio. Again everything works perfectly on android. It only crashes on iOS once I run PlayerAdaptor.play(streamId);
Hi @TecladistaProd ,
I'm working on conference and I offer user control to start conference with audio only and later they can turn on the video. However if I pass video: false
in the mediaconstraint
so that user won't get unnecessary prompt for camera permission,
later we don't have any way to add the video stream into existing stream.
i.e.
I start with
const adaptor = useAntMedia({
url: webSocketUrl,
mediaConstraints: {
video:false,
audio: true,
},
sdp_constraints: {
offerToReceiveAudio: true,
offerToReceiveVideo: true,
},
})
Now, how can I add the video stream to remote peer connections or which antmedia websocket command can help us do that?
Any solution would be much appreciated.
Hi There
First of all thanks for building this library.
For some reason I'm unable to connect with wss
on default port 5080, however it works with ws
.
Is there any param that must be passed to connect via SSL?
We want to do like education App.
First Teacher start Live Broadcasting each user start watching on it. If user has doubt on it. student press a button they will join over call.Each user Licensing conversation of it .When teacher disconnect call call user disconnect . and now he became listneing.
For play live stream we use this
const play = useCallback(
(room, streamId) => {
const data = {
command: 'play',
room,
streamId,
};
setRoomName(room);
if (socket.ws) socket.ws.sendJson(data);
},
[socket.ws],
);
for joining room
we ue this
const joinRoomw = useCallback(
(room, streamId) => {
const data = {
command: 'joinRoom',
room,
streamId,
};
setRoomName(room);
if (socket.ws) socket.ws.sendJson(data);
},
[socket.ws],
);
But there iss sproblem sometime is coneected sometime not connected
TypeError: undefined is not an object (evaluating 'remotePeerConnection[streamId].dataChannel')
I am getting this error while running chat example on both iOS and Android.
this error throws at var dataChannel = remotePeerConnection(...)
rn-antmedia.cjs.development.js (807:23)
Any function to toggle sound of remote stream like handleturnVolume?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.