Android LiveVideo: Detecting stream disconnect

I am using MIP SDK Mobile for Android with the 2020R2 “LiveVideoSample” and I have the same error raised in the link below.

https://developer.milestonesys.com/s/question/0D53X00006JyF8nSAF/android-detecting-stream-disconnect-from-livevideo?t=1598452886838

I would need to know if there is any implementation to check if the livevideo stopped

EDIT: Logfile

2020-09-02 13:33:01.985 8585-8623/com.milestonesys.mobilesdk.livevideosample D/VideoChannelThread: Thread for VideoStream '12cc3913-11d6-4766-92f9-3688591bdaea' will be closed.
2020-09-02 13:33:01.985 8585-8623/com.milestonesys.mobilesdk.livevideosample D/VideoChannelThread: Thread for VideoStream '12cc3913-11d6-4766-92f9-3688591bdaea' has been closed!
2020-09-02 13:33:01.985 8585-8622/com.milestonesys.mobilesdk.livevideosample W/System.err: java.util.concurrent.CancellationException
2020-09-02 13:33:01.985 8585-8622/com.milestonesys.mobilesdk.livevideosample W/System.err:     at java.util.concurrent.FutureTask.report(FutureTask.java:93)
2020-09-02 13:33:01.985 8585-8622/com.milestonesys.mobilesdk.livevideosample W/System.err:     at java.util.concurrent.FutureTask.get(FutureTask.java:164)
2020-09-02 13:33:01.985 8585-8622/com.milestonesys.mobilesdk.livevideosample W/System.err:     at com.milestonesys.xpmobilesdk.communication.VideoChannelThread.run(VideoChannelThread.java:278)

Thank you!

One possible solution I found is to change the value of the setIsPull property to false.

This avoids the error mentioned in the log, but it greatly reduces the quality of the video.

If someone has another suggestion it would help me a lot.

Regards!

Hello,

The next Mobile SDK release (2020R3) will make it possible to detect camera connection lost by checking for specific flag in the receiveVideo function.

It should be released this fall.

Best regards,

Plamen Parvanov

Plamen, thanks for the reply.

For the VideoPush example on android, will you also receive any improvements in the code? Just curious because I was also working on that example

Regards!

Hello,

Unfortunately, there are no updates planned for the video push at this moment.

Best regards,
Plamen Parvanov

From: Milestone Developer Forum <noreply@milestonesys.com>
Reply to: Reply to Developer Forum <0-ebkd6yrt5veb41.7ldsqm6rylyjlyb4.u6ju2csdxx97ct89@pmegyonk6btnjg27.p2fhfcf2hi74i42.2-8uideae.eu29.chatter.salesforce.com>