Android 端使用 WebRTC 结合 SRS 服务器进行推拉WebRTC流demo
Android端应用音视频通话完整示例移步SrsRtcAndroidClient。
此示例中使用到了,我的另外一个Android端WebRTC相关的扩展库,移步WebRTCExtension。
Android WebRTC 向 SRS 服务器推拉流
Android 端使用 WebRTC 结合 SRS 服务器进行推拉WebRTC流demo
Android端应用音视频通话完整示例移步SrsRtcAndroidClient。
此示例中使用到了,我的另外一个Android端WebRTC相关的扩展库,移步WebRTCExtension。
您好!工程编译完成后install闪退,
No static method toDouble-impl(JLjava/util/concurrent/TimeUnit;)D in class Lkotlin/time/Duration; or its super classes (declaration of 'kotlin.time.Duration' appears in base.apk!classes9.dex)
我们后端自己搭了个p2p,安卓端只需要拉流就行了,服务端用addTrack和addStream不断往安卓端推流,但是我安卓端这边onAddStream、onAddTrack却怎么都无法走这2个回调,是基于你的PULL工程基础上改的。方便的话能加QQ或者开github的讨论吗,感谢大佬。
使用几台华为手机测试,都出现了过几秒会停止推流的情况,即没有上传的网速,使用一台小米测试机就没出现停止推流情况,作者可知道哪里的问题?
请问一下有没有 java 语言实现的 android 版本
能否自己设置一个码率,进行推流。capture.startCapture()方法设置的分辨率和帧率,为什么HardwareVideoEncoder中的日志打印出来有很多种分辨率?
web端SRS 拉流很流畅,android pull工程拉取特别卡顿,几乎10几s 刷新下,视频是2880 544的分辨率
控制台一直输出 :
com.shencoder.webrtc_srs.pull D/ACodec: sendVideoFpsDataToiAware time:222000 fps:-1 msg:-1
com.shencoder.webrtc_srs.pull D/ACodec: sendVideoFpsDataToiAware time:222000 fps:-1 msg:-1
com.shencoder.webrtc_srs.pull D/ACodec: sendVideoFpsDataToiAware time:222000 fps:-1 msg:-1
com.shencoder.webrtc_srs.pull I/chatty: uid=10477(com.shencoder.webrtc_srs.pull) JNISurfaceTextu identical 6 lines
请问大佬如何排查或解决?
大神,我在自己的项目Gradle里添加依赖
implementation ("com.github.shenbengit:MVVMKit:1.0.3")
implementation ("com.github.shenbengit:WebRTCExtension:1.0.1")
想学习一波,但是并没有用,可能是什么原因呀
你好,请教一下从其他设备回调获取到h264裸流byte[]数据,有办法使用webrtc去推流到流媒体服务器么
推流如何切换前置和后置摄像头
我在代码
val videoSource = peerConnectionFactory.createVideoSource(capture.isScreencast)
videoSource.adaptOutputFormat(VideoSource.AspectRatio(640,360),360640,VideoSource.AspectRatio(360,640),360640,60)
surfaceTextureHelper =
SurfaceTextureHelper.create("surface_texture_thread", eglBaseContext)
capture.initialize(surfaceTextureHelper, context, videoSource.capturerObserver)
videoTrack =
peerConnectionFactory.createVideoTrack("local_video_track", videoSource).apply {
addSink(svr0)
}
capture.startCapture(360,640,20)
中添加了一行代码 videoSource.adaptOutputFormat(VideoSource.AspectRatio(640,360),360640,VideoSource.AspectRatio(360,640),360640,60);
就推流失败,请问怎么解决呢
你好,请教一下从其他设备获取到的h264裸流byte[]数据去有办法使用webrtc去流到srs流媒体服务器么
@Override
public void onReceive(byte[] videoBuffer, int size) {
}
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.