Comments (8)
NO. Something you missed here.
onRestartStreamingHandled
is invoked after the connection terminated. You do no need do like this:
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
mCameraStreamingManager.startStreaming();
}
}, 10000);
just remove the 10s' delay and simply do return mCameraStreamingManager.startStreaming();
If you only return false;
in onRestartStreamingHandled
, STATE.SHUTDOWN
message will be called.
from pldroidmediastreaming.
This is just a test and hence I wanted to retry .startStreaming() after 10s. The problem is 30s delay after the startStreaming is called.
11-29 17:38:52.997 E/pldroid_core_packet: rtmp_logcallback not ready.
11-29 17:39:23.007 E/pldroid_core_packet: rtmp_logcallback not ready. ===> 30s differerence
Regarding the connection termination. I understand the callback is called after connection in Pili is terminated. But the connection to the RTMp server is not terminated. The RTMP continues to listen for more data for atleast 120s after the disconnect. But when the startStreaming is called again the connection on the RTMP server is closed.
I am referring to this setting in NGinx rtmp
https://github.com/arut/nginx-rtmp-module/wiki/Directives#drop_idle_publisher
from pldroidmediastreaming.
Please ignore the rtmp_logcallback not ready.
.
More details about onRestartStreamingHandled
:
You will receive the STATE.DISCONNECTED
message first, and then onRestartStreamingHandled
will be invoked.
PLDroidCameraStreaming wouldn't care about the RTMP server logical and only care the connection if broken.
from pldroidmediastreaming.
I might agree of the RTMP server part of the argument, but not about the delay. The problem is simple...the actual streaming is starting after 30secs of calling startStreaming. This is what I see in logs
11-29 17:38:52.147 D/pldroid_core_packet: initialize
....
....
11-29 17:39:23.008 D/pldroid_core_packet: stream_state_callback state=1
at time 17:38:52.147 (5:38:52 pm) the startStreaming is called, but the actual streaming is starting at 17:39:23 (5:29:23 pm). A 30 sec delay
from pldroidmediastreaming.
Which handset?
from pldroidmediastreaming.
Motorola MotoG 2nd Gen and Micromax Yureka
from pldroidmediastreaming.
Please verify on v1.4.5. Thanks.
from pldroidmediastreaming.
Close since have no feedback.
from pldroidmediastreaming.
Related Issues (20)
- Youtube rtmp link not working HOT 1
- 录屏推流需要使用CameraPreviewFrameView吗?
- 视频进度条 HOT 1
- Access denied finding property "camera.aux.packagelist"
- 推流端预览左右两边有黑色 HOT 1
- 如何推流前预览? HOT 1
- 开始推流后 返回状态码 streamingState = UNAUTHORIZED_STREAMING_URL extra = -3 HOT 1
- 快速开始是不是已经不能快速开始了? HOT 1
- targetSdkVersion 29录屏会闪退 HOT 1
- 编译报错,与我的项目中使用的库有冲突? HOT 2
- 通过captureFrame截帧,图像变形。
- 引用happy-dns,还报NoSuchMethodError错误 HOT 4
- No static method defaultResolver() HOT 3
- Issue with the support of 64 bit libraries.
- Unauthorized Package while starting the Streaming
- Pili Streaming not working with Pili Android Version 2.4.0
- activity添加两个fragment,使用懒加载,第二个fragment,无法调起相机 HOT 1
- 最新Demo运行不起来 HOT 3
- 急急急,请问为啥下载的apk demo是牛直播,github上下载的代码跑起来又不像同一个app
- 播放器拉流问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pldroidmediastreaming.