Start a new topic

unknown error loading AR.VideoDrawable via https

unknown error loading AR.VideoDrawable via https


Hi Pascal,
For iOS: Did you try to set `NSAllowsArbitraryLoads` to YES in you application .plist?

I'm not a http/url request expert, but is it ok if you provide the auth token as url param?

Best regards,

Andreas

Hi there,

I am trying to create an AR.VideoDrawable for an video loaded via https using wikitude-cordova-plugin-5.1.4-3.2.1

var videoUri = 'https://secure-server.com/some/path/video.mp4?token=some.auth.token'
var videoHeight = 1;
var videoOptions = {};
...
videoOptions.onError = function(msg) {
console.error(msg);
}
videoDrawable = new AR.VideoDrawable(videoUri, videoHeight, videoOptions);

 

When trying to load the video I get the following error message on android

Error while loading the video. (Media player - unknown error  )

on iOS nothing happens!?

Loading the same video via http works perfectly!!!

But it has to be done via https unfortunately.

Is there a known issue or any solution?

Am I missing something?

Thank you in advance!

 

Bests,

Pascal
Login or Signup to post a comment