androidthings / sample-videortc Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
I want to record this stream in my local storage as well as my backend server.
I've done a lot of experiments and here is what I found so far.
First, there are two sets of variables that I tweaked a lot during these experiments:
(1) Rendering Size. Namely the size of SurfaceViewRenderer. This is defined in activity_call.xml and default to "wrap_content", which is the size of the display device. In my case, this is a 27 inch monitor.
(2) Capturing Size. Pass to PeerConnectionClient.PeerConnectionParameters. Default to 1280 x 720.
When starting the call, the stream will be captured and flown into a sink view which at this point is the main view, being rendered in Rendering Size.
The frame rate at this moment is about
_Capturing Size_ _Rendering Size_ FPS
1280 x 720 1280 x 720 9
640 x 360 Full Screen 9
1280 x 720 Full Screen 3
1920 x 1080 Full Screen 1
Note this is purely local. No call has been even made. What is shown is what is captured and sent out directly from the local camera. The whole scenario has nothing to do with the network.
NOTES:
(1) I am using the Raspberry PI camera V1.2. I also tried a USB web cam and the result is about the same.
(2) I even increased GPU memory from 256 MB to 512 MB (config.txt). No effect.
(3) The same device, when running Raspbian, has no problem running a simple Python application using picamera module. The app simply opens preview mode and renders local camera in high resolution at full screen. I don't have an exact FPS number. But it is so smooth that by my estimate is it's easily 24 FPS.
Hi, Guys
I downloaded this and gave it a try on Android studio . using pixel 2 phone simulator.
E/RoomRTCClient: Room connection error: HTTP POST to https://appr.tc/join/FJWNRJM error: Chain validation failed
E/WSRTCClient: HTTP POST to https://appr.tc/join/FJWNRJM error: Chain validation failed
It seems that the issue is related to the SSL certificate, but not sure how to fix it.
Thanks
Jeff
Please update the code, because the RTC library hasn't the VideoTrack class.
I used your demo,But the following two lines are reported incorrectly.
remoteProxyRenderer.setTarget(isSwappedFeeds ? pipRenderer : fullscreenRenderer);
Error: Incompatible type: type error in conditional expression
SurfaceViewRenderer cannot be converted to Callbacks
This issue was automatically created by Allstar.
Security Policy Violation
Project is out of compliance with Binary Artifacts policy: binaries present in source code
Rule Description
Binary Artifacts are an increased security risk in your repository. Binary artifacts cannot be reviewed, allowing the introduction of possibly obsolete or maliciously subverted executables. For more information see the Security Scorecards Documentation for Binary Artifacts.
Remediation Steps
To remediate, remove the generated executable artifacts from the repository.
Artifacts Found
Additional Information
This policy is drawn from Security Scorecards, which is a tool that scores a project's adherence to security best practices. You may wish to run a Scorecards scan directly on this repository for more details.
Allstar has been installed on all Google managed GitHub orgs. Policies are gradually being rolled out and enforced by the GOSST and OSPO teams. Learn more at http://go/allstar
This issue will auto resolve when the policy is in compliance.
Issue created by Allstar. See https://github.com/ossf/allstar/ for more information. For questions specific to the repository, please contact the owner or maintainer.
Hello,
is it possible to screencast the desktop screen instead of video.
In other words, instead of biderectionnal video call, I need to make a screen mirroring from windows/linux laptop to android thing or raspberry pi?
Running this code in Ubuntu/Android Studio 4.0.
Starting the video call resulted in a room being created with an ID, however it is quickly followed by an error message that video call using WebRTC has stopped.
After several tries, I get a connection error:
Room IO error: java.io.IOException: non-200 response when requesting TURN server from https://networktraversal.googleapis.com/v1alpha/iceconfig?key=AlzaSyArJnQRd2kEen3RoVrsQOLxP1TnJJ-y8d8:HTTP/1.1 429 Too many requests.
After a few more tries I get a connection to a room (which I can also join from a web browser), however there is an additional connection error "failed to create a new AudioRecord instance".
The Android emulator is not able to display my connecting webcam (Webcam0) even though it is working fine in the web browser.
factory = new PeerConnectionFactory(options, encoderFactory, decoderFactory);
error: 对于PeerConnectionFactory(Options,VideoEncoderFactory,VideoDecoderFactory), Can't find a suitable constructor
constructor
PeerConnectionFactory.PeerConnectionFactory(Options,AudioDeviceModule,VideoEncoderFactory,VideoDecoderFactory,AudioProcessingFactory,FecControllerFactoryFactoryInterface)
Not applicable (actual parameter list and formal parameter list are different in length)
constructor
PeerConnectionFactory.PeerConnectionFactory(long)Not applicable (actual parameter list and formal parameter list are different in length)
Raspberry Pi 3 Model B V1.2
Android version: 8.1.0
Android Things version: 1.0.5
Raspberry Pi Camera Rev 1.3
CameraStatistics: CameraStatistics: Camera fps: 1.
If I gone SurfaceViewRenderer view in layout. I got log:
CameraStatistics: CameraStatistics: Camera fps: 30.
I assume the cost to render view too much.
After another client connect to room:
libjingle: (rtp_video_stream_receiver.cc:287): Packet received on SSRC: 1778618134 with payload type: 100, timestamp: 2951056785, sequence number: 21127, arrival time: 1540374348420
libjingle: (webrtcvideoengine.cc:2056): VideoSendStream stats: 1339369, {input_fps: 1, encode_fps: 1, encode_ms: 1792, encode_usage_perc: 64, target_bps: 1700000, media_bps: 820184, preferred_media_bitrate_bps: 1700000, suspended: false, bw_adapted: false} {ssrc: 2090405752, width: 1280, height: 720, key: 2, delta: 6, total_bps: 838312, retransmit_bps: 0, avg_delay_ms: 1835, max_delay_ms: 1905, cum_loss: 0, max_ext_seq: 12970, nack: 0, fir: 0, pli: 1}
libjingle: (webrtcvideoengine.cc:2521): VideoReceiveStream stats: 1339369, {ssrc: 1778618134, total_bps: 62016, width: 1280, height: 720, key: 4, delta: 601, network_fps: 30, decode_fps: 20, render_fps: 20, decode_ms: 61, max_decode_ms: 72, cur_delay_ms: 118, targ_delay_ms: 118, jb_delay_ms: 36, min_playout_delay_ms: 34, discarded: 0, sync_offset_ms: 5047, cum_loss: 0, max_ext_seq: 21105, nack: 0, fir: 0, pli: 0}
libjingle: (webrtcvideoengine.cc:1382): Call stats: 1339369, {send_bw_bps: 2126724, recv_bw_bps: 0, max_pad_bps: 0, pacer_delay_ms: 0, rtt_ms: 2}
libjingle: (remote_ntp_time_estimator.cc:74): RTP timestamp: 1812570972 in NTP clock: 3749363148643 estimated time in receiver clock: 1339542 converted to NTP clock: 3749363148654
CameraStatistics: CameraStatistics: Camera fps: 1.
Should I upgrade hardware that stronger than Raspberry Pi 3 to make a streaming device?
I am unable to run the app because i am not getting this pacckage.
de.tavendo.autobahn
please help me to resolve my issue.
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.