Hello,
I’m using JS XPMobileSDK and I’m trying to resize playback videos.
I’m getting this error on request.
ConnectionResponse.js:140 Response error UnknownItemID 21
Connection.js:2586 Error changing stream.
Best regards
Marcello
Hello,
I’m using JS XPMobileSDK and I’m trying to resize playback videos.
I’m getting this error on request.
ConnectionResponse.js:140 Response error UnknownItemID 21
Connection.js:2586 Error changing stream.
Best regards
Marcello
Hi Marcello,
Could you provide some sample or similar in order to understand what you call and in what order?
Thanks !
Hello Petar,
After connection, login and start some transcoded playback video i’m trying to do this.
var cropping = {};
var size = { width : 200, height: 100 };
XPMobileSDK.changeStream(XPMobileSDK.library.VideoConnection.instances[0], cropping, size);
Thank you very much
Hi Marcello,
In general what you describe should work.
The only problem could be something in the
XPMobileSDK.library.VideoConnection.instances[0]
I would advice you to save the video connection object instance, received in the RequstStreamCalback and use it for the Change stream command.
Like:
function requestStreamCallback(videoConnection) {
videoController = videoConnection;
...
}
...
XPMobileSDK.changeStream(videoController, cropping, size);
It works.
Thank you very much.
I see that canvas will be updated only when I use some kind operation like change speed or moving the time of playback. Is there any way to see the change stream without this kind operations?
Best regards
I suppose you are talking about situation when you fire “resize” command when playback stream has been paused, right ?
I believe this was handled in the Mobile Server long, time ago.
But of course it is possible that something has changed since then.
Let me check what happens and I’ll get back to you.
Yes, I’m talking about resize during pause.
Thank you very much
Your observations are correct.
I experience the same behavior - during pause the image is not updated when resize command is sent.
Unfortunately, even if we fix that in the Mobile server, it will be available no earlier than next release.
You will have to overcome it in the client-side code .
Meanwhile I’ll create a bug for the server in our backlog.