XPMobileSDK Detect Direct Streaming Camera not connected

Hello,

i’m using JS XPMobileSDK.

I’m trying to detect if Direct Streaming Live camera doesn’t work.

Actually I only get an empty videos-stream element.

Is possibile to detect camera loss or camera not connected to warn the user?

Thank you very much

Marcello

Hello, Marcello,

Could you share with us more information on how you detect direct streaming, like request/response which method you using?

Best regards,

Asen Bozhilov

Hello,

i build a videos-stream element and later to start the streaming i dispatch a “start” event to link the videos-stream element and the direct streaming flow.

Here an example of the request.

<?xml version="1.0" encoding="utf-8"?><Communication xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ConnectionId>8a8cdb11-9ec6-4ffd-8c76-fba8f0ffcfd1</ConnectionId ><Command SequenceId="221"><Type>Request</Type><Name>RequestStream</Name><InputParams><Param Name="CameraId" Value="2ce06739-9573-4e3a-81e5-4ff4761d3438" /><Param Name="DestWidth" Value="670" /><Param Name="DestHeight" Value="380" /><Param Name="SignalType" Value="Live" /><Param Name="MethodType" Value="Push" /><Param Name="Fps" Value="15" /><Param Name="ComprLevel" Value="70" /><Param Name="KeyFramesOnly" Value="No" /><Param Name="RequestSize" Value="Yes" /><Param Name="StreamType" Value="FragmentedMP4" /><Param Name="FragmentDurationMs" Value="350" /><Param Name="ResizeAvailable" Value="Yes" /></InputParams></Command></Communication>

Thank you very much

Hello, Marcelo,

So you want to understand if the camera connection is lost, after the request stream. We have a method by which you can extend it and show the message. You could check it here: https://github.com/milestonesys/mipsdkmobile-web/blob/627f6119cce30c4495727feda84fc4802b832b5e/Lib/modules/VideoStream/js/stream.js#L221

Best regards,

Asen Bozhilov