Start a new topic
Solved

Vimeo and start

Hello,


I have some question and problems with video and videoDrawable..


I have make Two application on ein Android with api javascript and another one in IOS APPLE with api javascript.


In android :  i call video in assets with startVideoPlayer and it's work fine like that.

// 

var imgOne2 = new AR.ImageResource("assets/picto2.png");

 var overlayOne2 = new AR.ImageDrawable(imgOne2, 0.5, {

 offsetX: 0.26,

 offsetY: 0,

 onClick : function(){

 var vidonetopay = new AR.context.startVideoPlayer("assets/cpc1.mp4");

 }

 });

//


but my apk is too big. I would like call a vimeo link. I have test with your video link find in the part video of wikitude. But it's don't work if i try


 var imgOne2 = new AR.ImageResource("assets/picto2.png");

 var overlayOne2 = new AR.ImageDrawable(imgOne2, 0.5, {

 offsetX: 0.26,

 offsetY: 0,

 onClick : function(){

 var vidonetopay = new AR.context.startVideoPlayer("https://vimeo.com/51396462");

 }

 });


i have an alert : sorryCould not load video file or stream....

if someone can help me...



Mys secodn problem is in the same app.

In Apple i didnot call startVideoPlayer, i call AR.videoDrawable. lo load local files. Its Work very well but i need load external video...

Is it possible to replace my link by https://player.vimeo.com/external/169964972.sd.mp4?s=2f98e299ef9fcf8d114d1e04b49cb83472484a2e&profile_id=164&download=1



Thanks...



Yes , before ask my question i have read this link... but i have found another solution with vimeo pro account...

thanks


Hello Ced,


Keep in mind that URLs from video hosting services need to point directly to the H.264 encoded video file. Standard YouTube and Vimeo URLs (like http://www.youtube.com/watch?v=bX98XNv8VL4) will not work for this purpose. Please refer to the documentation below for further information.


http://www.wikitude.com/external/doc/documentation/latest/android/video.html#video-drawables


Thanks

Eva



Login or Signup to post a comment