Start a new topic

Video Playback with Phonegap Crashes App

Video Playback with Phonegap Crashes App


Thank you, that worked perfect :)

kind regards,

Alexander

Hi Alexander,

Please have a look at the Android PhoneGap documentation.
You have to add the "MediaPlayerActivity" in your AndroidManifest to enable this.

Kind regards,
Andreas Hauser

Hi,

I imported the new Wikitude (3.1) demo files for Phonegap (basic -> HelloWorld). I didnt change anything but the 2 lines in the following Method :


Marker.prototype.getOnClickTrigger = function(marker) {

    return function() {

        if (!Marker.prototype.isAnyAnimationRunning(marker)) {
            if (marker.isSelected) {

                Marker.prototype.setDeselected(marker);

            } else {

                Marker.prototype.setSelected(marker);
                var url = "http://www.wikitude.com/doc/tutorial/Serie3.m4v";       
                AR.context.startVideoPlayer(url);
            }
        } else {
            AR.logger.debug('a animation is already running');
        }

        return true;
    };
};

 

When I start the App it works fine. When I click a POI to initiate the Video Playback the App Crashes. Do you have a hint what I'm doing wrong ?

(I use a Galaxy S3)

kind regards,

Alex
Login or Signup to post a comment