The following error 24 occurs when trying to playback a recorded video (using the XPMobileSDK library) using XPMobileSDK.interfaces.VideoPushConnection
ERROR returned:
XMLHttpRequest {readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, onreadystatechange: ƒ, …}
XPMobileSDK.library.js:2580 Response error FeatureIsDisabled 24 Complete response: <?xml version="1.0" encoding="utf-8"?>189f970c-dea0-4e1f-843e-b8e98a420b2eResponseRequestStreamError24
XPMobileSDK.library.js:1772 stream— ./src/ducks/library/XPMobileSDK.library.js.XPMobileSDK.library.ConnectionRequest {options: {…}, response: ./…K.l…y.js.X…K.l…y.ConnectionResponse, params: {…}, cancel: ƒ}
XPMobileSDK.library.js:2282 Error starting stream for camera undefined
XPMobileSDK.library.js:3115 requestPushStreamFailed
CODE:
/**
* @class VideoPushConnection
* @type {Object}
* @property {Function} open - Opens the video push connection
* @property {Function} close - Closes the video push connection
* @property {Function} send - Sends video frame to server
* @property {Function} destroy - Class destructor
* @property {Function} isOpen - Checks if the connection is open
* @property {Function} getMediaStream - Retrieves a media stream
*/
XPMobileSDK.interfaces.VideoPushConnection = {
/**
* Opens the video push connection
*
* @method open
*/
open: function (successCallback, errorCallback) { },
/**
* Closes the video push connection
*
* @method close
*/
close: function () { },
/**
* Sends video frame to server
*
* @method send
*/
send: function (base64EncodedImage) { },
/**
* Class destructor
*
* @method destroy
*/
destroy: function () { },
/**
* Checks if the connection is open
*
* @method isOpen
*
* @return Boolean - Returns the stream object if the connection is opened
*/
isOpen: function () { return Boolean(); },
/**
* Retrieves a media stream
*
* @method getMediaStream
*/
getMediaStream: function () { return new MediaStream(); }
};