Questions tagged [webrtc-android]

151 questions
12
votes
1 answer

Custom video source for WebRTC on Android

Overview I would like to use a custom video source to live stream video via WebRTC Android implementation. If I understand correctly, existing implementation only supports front and back facing cameras on Android phones. The following classes are…
Jernej Jerin
  • 3,179
  • 9
  • 37
  • 53
10
votes
3 answers

WebRTC Android: sound from phone speaker is going into conference through phone mic and causing echo

In some mobile devices(like Motorola One Power - Android 10, Redmi Note 5 Pro - Android 7.1.2), sound from the phone speaker is going into the conference through the phone mic and causes an echo. This echo issue is coming only when the Phone Speaker…
abhishek kumar gupta
  • 2,189
  • 6
  • 35
  • 56
8
votes
0 answers

Android WebRTC: what is the standard way of consuming data from new getStats() API

I have used getStats(RTCStatsCollectorCallback callback) API to get 'Bitrate Sent' and 'Bitrate Received' values. I am facing 2 issues: 1). When only 1 user is present in conference, sometimes 'Bitrate Sent' value is coming very big(in mbps). 2).…
abhishek kumar gupta
  • 2,189
  • 6
  • 35
  • 56
8
votes
0 answers

Android Bitmap to WebRtc I420 Frame corrupted

Trying to stream bitmaps over WebRtc. My Capturer class looks approximately like this: public class BitmapCapturer implements VideoCapturer, VideoSink { private Capturer capturer; private int width; private int height; private SurfaceTextureHelper…
8
votes
0 answers

Is there a correct way to dispose/release the MediaStream object after displaying it in a RecyclerView?

I am attempting to display a list of MediaStream objects in a RecyclerView. Currently, my peer is giving me all of the MediaStream objects upon our initial handshake, and I am able to display them in a list view item that has a custom TextureView.…
Tyler Bennett
  • 313
  • 2
  • 7
6
votes
1 answer

SessionDescription is Null. in web rtc after updating Chrome to latest v 89. Working on previous Chrome Versions

"Answer" of SDP offer is not sent to Web App(running on Windows/Mac/Linux) from Android/iOS application after updation of Chrome to latest v89 (released on 9 March 2021). It is working fine on Chrome v88 and below. Offer SDP: o=- 3986944572502207628…
Nadeem Iqbal
  • 2,357
  • 1
  • 28
  • 43
5
votes
0 answers

Android webrtc SurfaceViewRenderer preview goes blank when I start the Activity in landscape/reverse landscape

I'm facing this weird issue where SurfaceViewRenderer preview goes blank whenever I run activity in landscape/reverse landscape/sensor landscape. The weird problem is, in some phones video preview works in reverse landscape mode and in some phones…
Vijay E
  • 829
  • 10
  • 14
5
votes
1 answer

WebRTC: How to enable hardware acceleration for the video encoder

I'm trying to send video of screen capture to mediasoup with the help of WebRTC. There is a class for it in the WebRTC library: ScreenCapturerAndroid. It works, but the performance on the some devices is really bad. Especially if I use HD or better…
Valelik
  • 1,743
  • 2
  • 18
  • 22
5
votes
2 answers

how to set unified plan in semantics webrtc android

how to set a unified plan in semantics Webrtc android. I need to add it to SDP. I have tried below code but it's not working rtcConfig.sdpSemantics = PeerConnection.SdpSemantics.UNIFIED_PLAN
Richa Shah
  • 930
  • 3
  • 12
  • 27
4
votes
1 answer

System audio streaming on Android over Webrtc

I am trying to build a screensharing application on Android using Webrtc. I am able to share the screen using mediaprojection+webrtc but not able to share the system audio. Mediaprojection added support to capturing system audio from API 29 (Android…
4
votes
1 answer

Android Webrtc change stream to STREAM_MUSIC

I have created a WebRTC session from one device to another, the device should be able to control the volume for music stream, but WebRTC is originally designed to stream voice_call so is using the voice_call channel and using the call volume control…
nima moradi
  • 2,300
  • 21
  • 34
4
votes
0 answers

Not getting relay candidates or not connected by turn server in WebRTC Android

I am building a video conferencing application based on webRTC in android. For using webRTC in android, I am using the following webRTC dependency in android implementation 'org.webrtc:google-webrtc:1.0.28513' Everything is working fine. One to…
Shashank Gupta
  • 165
  • 2
  • 16
4
votes
1 answer

WebRTC VideoView incorrect view for local peer

I am writing a WebRTC solution and having an issue in Local View while using back camera (Wrong Rotation / Incorrect View)
Android
  • 1,529
  • 1
  • 12
  • 27
4
votes
1 answer

Can I register Web RTC app as Calling app

I have web rtc implemented in a webview. Everything working fine as long as app in foreground. Now if the app is in background/dose mode. I want to show a ringing screen like what's app. I am having a push notification when some one calls. I know…
Zar E Ahmer
  • 33,936
  • 20
  • 234
  • 300
4
votes
1 answer

Use WebRTC camera in AR-session Android

I'm trying to replace the frames from the device camera (which is normaly used in an AR session) with frames from a streamed camera via webrtc. To render the webrtc stream I'm using webrtc.SurfaceViewRenderer and to render the AR session I'm using…
eriol726
  • 41
  • 1
  • 3
1
2 3
10 11