Web Player Stream Connection Issue - websocket

Hi Milestone Support Team,

I’m trying to retrieve a video stream, but the WebSocket fails to connect.

I’m using the samples from mipsdkmobile-web (specifically

XPMobileSDK.js

), however I’m still encountering many errors and I’m unable to see the video stream or load the web player successfully.

I would appreciate your guidance on how to resolve this issue.

Thank you,

Ben

Hi Ben,

I can see that the new platform is not showing the feedback that I sent to you earlier in the week - I hope you were able to do some research already. Please run through the following and get back to us if you need more guidance.

1 Check for specific errors in your browser console:

  • WebSocket is closed before the connection is established

  • Connection refused on ws://192.168.35.116:8081//…

  • Missing Mobile-Connection-Id header errors

  • CORS rejections

2 Check XPMobileSDK Configuration

  • Mobile-Connection-Id is obtained and passed to SDK

You can also use the following resources to find example on how to stream video: