How to implement PushToTalk Audio Out in Web page using XPMobileSDK

I am developing a web application using XPMobileSDK and Mobile Server( 2019 R2) Sample source (“pushToTalkSample.html”).

However, there is an error when implementing Audio out (IP Camera Speaker).

Error Log Screen Shot 1​

error1

As shown in the screenshot, an error occurs when connecting to XProtect Mobile Server to handle “audio out”.

Of course, the “access-control-allow-origin” is already set on the Mobile Server.

Error Log Screen Shot 2​

​However, in “Xprotect Web Client 2019 R2” provided by the same mobile server, “PushToTalk” is completed and Audio Out is processed normally.

Xprotect Web Client Network Log Screen Shot

We ask how to implement “pushToTalkSample.html” provided by the mobile server.

Hi Daeil,

As far as I understood you are trying to make video push from third party hosted web application.

I’ve tried to simulate this situation as I started “pushToTalkSample.html” hosted on remote machine/server.

And unfortunately I’ve reproduced the same behavior.

To be honest I think we haven’t tested this sample in that situation before.

We usually test provided samples when they are hosted on the Mobile server, to which they connect (and it works in this case).

I found a bug in the code which filters OPTIONS requests exactly for Video/Audio push channels/request.

It will be fixed for 2020 R2 release.

If you need a hot-fix you should contact the support team and such could be generated.

Thanks for the good catch and please excuse us for the inconvenience this will cause to you!