Hi Javier, Hi Hendrik, Could you please send us links to the actual videos so that we can test with them? THX!
Best regards,
Andreas
H
Hendrik Bugdoll
said
about 7 years ago
We were running into same problems using AR.context.startVideoPlayer() under Android. Sometimes video's sound was playing, but in most cases the app crashed without helpful log entry. Same problem with AR.context.openInBrowser().
J
Javier Campos
said
about 7 years ago
Hi:
I'm working on an iOS and Android app that uses a common AR world for both and when I try to play a video in full screen, works on iOS, but in Android doesn't do anything and clicking a couple of times, finishes crashing... Part of the code in JS is below. Any idea?
BR,
Javier.
// image2 - video2.mp4.
var video2 = new AR.VideoDrawable("assets/video2.mp4", 1.1, {
//offsetY: playButton.offsetY,
zOrder: 1,
onLoaded: function videoLoaded() {
//Nothing to do.
},
onPlaybackStarted: function videoPlaying() {
video2.enabled = true;
},
onFinishedPlaying: function videoFinished() {
video2.playing = false;
video2.enabled = false;
},
onClick: function videoClicked() {
AR.context.startVideoPlayer("assets/video2.mp4"); // Full screen.
Javier Campos