AppRTCDemo | Android AppRTC Demo of WebRTC project | SDK library
kandi X-RAY | AppRTCDemo Summary
kandi X-RAY | AppRTCDemo Summary
Android Studio project for AppRTCDemo of WebRTC project. This project now uses the official prebuilt library at jCenter.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Initializes the window
- Toggles the visibility of the call control fragment
- Creates and returns a Java audio device that can be used to open the device
- Create peer connection factory
- Close internal connection
- Stops the transaction log
- Stop the stream
- Initializes the instance
- Requests the missing permissions
- Called when a sensor has changed
- Sends a local ICE candidate
- Called when a progress bar has been changed
- Changes the default audio device
- Initializes the view
- Create the view
- Reset the summary
- Sends remote ICE candidates to the local participant
- Called when an uncaught exception occurs
- Resume the room
- From interface RemoteCandidate
- This method is called when the SCO channel is connected
- Initialize the preferences
- Sends a message
- Called when a WebSocket message is received
- Create the fragment view
- Send ICE candidate to other participant
AppRTCDemo Key Features
AppRTCDemo Examples and Code Snippets
Community Discussions
Trending Discussions on AppRTCDemo
QUESTION
I am working on video call app using Apprtc.Follow below mention libraries.
When I change url to my custom server instead of apprtc server then video call is disconnected after 1 minute. I have lost connection with server.
To avoid the connection lost with server, we need to ping server in regular interval approx 30 sec.
But above mention AppRTC project are using jar file(autobanh.jar) to websocket connection, but in library sendPing mentod is private so not accessible.
Question 1 - There is nay way to ping websocket server.
Try after replace websocet library I had changed websocket library with below mention libraries
- https://github.com/Koredotcom/android-kore-sdk/tree/master/BotsSDK/korebotsdklib/src/main/java/kore/botssdk/autobahn
- https://github.com/martindale/soundtrack.io-android/tree/master/src/de/tavendo/autobahn
After recplacing websocket library, Now I am able to access sendPing method. But still I have connection lost after 60 seconds during video call.
Ping Method-
...ANSWER
Answered 2018-Aug-21 at 10:04I had changed the websocket library to https://github.com/crossbario/autobahn-java
This library has functionality of auto ping to server on regular time interval. After adding it, i have modified only one class of ApprtcDemo- WebSocketChannelClient
QUESTION
I need to use WebRTC for android to send specific cropped(face) video to the videoChannel. I was able manipulate Camera1Session class of WebRTC to get the face cropped. Right now I am setting it to an ImageView.
listenForBytebufferFrames()
of Camera1Session.java
ANSWER
Answered 2017-Jul-25 at 08:56WebRTC in particular and video streaming in general presumes that the video has fixed dimensions. If you want to crop the detected face, your options are either to have pad the cropped image with e.g. black pixels (WebRTC does not use transparency), and crop the video on the receiver side, or, if you don't have control over the receiver, resize the cropped region to fill the expected width * height
frame (you should also keep the expected aspect ratio).
Note that JPEG compress/decompress that you use to crop the original is far from efficient. Some other options can be found in Image crop and resize in Android.
QUESTION
Consider I logged in as "Alice" In List View I'm showing list of users,If i click on any user I'm initiating video call,user which i selected(eg I selected "BOB") has to get Push notification,Once BOB Clicks on that notification Call has to connect between both.
My Question is : From which Class I have to write code for push notification
** I'm using this github code https://github.com/njovy/AppRTCDemo/
...ANSWER
Answered 2017-May-04 at 12:01I think there is thread related issue. You should connect the aprtc video call when you are getting response of push notification api or call api to send the push is in background thread.
QUESTION
i am working on android application that use webrtc and i am using appRtcDemo on github AppRTCDemo
but this project use appr.tc server and i think it belong to google. so my question is it free to use or not and if it is not free is there a way to make my own server and how ?
...ANSWER
Answered 2017-Mar-22 at 19:21appr.tc is hosted by google on google cloud, just for the WebRTC sample demo.
AppRTC demo server code is also open source, so you can setup your own.
QUESTION
I have compiled the WebRTC source from the google repo and have used the jar in a Android Binding Library project along with the native libraries (.so files) in respective architecture folders. The library compiles without errors.
I have the main Android App and have referenced the binding library's output (.dll). The app also compiles without errors.
- I am able to add the audio track and the video track and the camera comes up.
- This is my ISDPObserver implementation
ANSWER
Answered 2017-Feb-15 at 10:15OK. I got it worked out.
Two things:
1. The session description was not formatted properly and the TURN server will reject any improperly formatted information.
2. All communications to the TURN server are supposed to be in a single thread and not parallel threads. The method NewSingleThreadScheduledExecutor()
of the IScheduledExecutorService interface does exactly that. An object of the Interface instantiated in the constructor should be reused to execute IRunnable handlers. This will ensure the app is thread safe and events are handled as they get triggered.
QUESTION
Hi I am using AppRTCDemo and its working on their server. How ever the current mechanism is for exchanging chat-rooms name and entering the same room connects the peers.
But I want to dial a call from one device to receive a call from other device and then peers should enter a room for video session ,
I have searched a lot , I have come up with for that I need signalling-server which I don't have and don't want to put hands on it ,
Now in this situation how can the other device know that device one is dialing and sharing particular room name to accept and enter the same room for video call at client side in Android .
...ANSWER
Answered 2017-Jan-16 at 06:40There are two android apk available for WebRTC, appRtcDemo
and webRtcDemo
. appRtcDemo
apk can be used for android device to browser connectivity. You need to provide room id to connect to one room. If you are the room initiator then you have to enter -1.
If you want to connect two android device then you have to compile and install webRtcDemo
apk. This apk interface provide place to enter ip address of another device and vice versa then both device will be connected.
Please go through -> http://www.webrtc.org/reference/getting-started
For more information. Both the apks i've compiled and installed and checked how it works.
I was able to make calls successfully between two android device using webrtcdemo. But I tested using WLAN of my office network. I did not use it further because I was using apprtcdemo for app reference. My suggestion is when you enter remote ip in webrtcdemo,just check if loop-back is unchecked. I guess for you loop-back is enabled, so you are receiving your own video packet, though you have entered remote ip. Make sure loop-back is disabled while making call.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install AppRTCDemo
You can use AppRTCDemo like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the AppRTCDemo component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page