Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video preview lag #72

Open
Egorkansk opened this issue Mar 29, 2018 · 3 comments
Open

Video preview lag #72

Egorkansk opened this issue Mar 29, 2018 · 3 comments

Comments

@Egorkansk
Copy link

Egorkansk commented Mar 29, 2018

hello, tell me please why video preview is laging (video delay 5 seconds), in your sample app, but oficial yi action app is not laging(about 600 ms)? How i can set low preview resolution or bitrate to fix this problem?

@entalent
Copy link

entalent commented Mar 30, 2018

I decompiled the official app, and found that the official app used a totally different way to play the RTSP stream of camera preview. The sample app simply uses VideoView, while the official app uses a 3rd party library (I searched for that package name on google and the library used in official app seem to be in https://github.com/fenghxfriend/Android-RTSP-Player). The preview lag of VideoView seems to depend on device model... my MI 5 has a huge lag of 11 seconds, but a MI MIX 2 has a lag of about 1s, both using the sample app. I decided to use other RTSP library to play preview.

@Egorkansk
Copy link
Author

Thank you, for answer

@x4080
Copy link

x4080 commented May 30, 2018

Is it possible to zoom using video preview ? I'm thinking using cctv zoom lens, and video preview zoom for adjusting focus on the fly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants