Wikitude
play_for_work
Forum
FAQ
Documentation
Download
wikitude.com
How can we help you today?
Enter your search term here...
Search
Start a new topic
Discussions
Cordova, Titanium, Unity, Xamarin
Cordova Questions or Problems
Video Playback with Phonegap Crashes App
A
Alexander Ohlei
started a topic
almost 10 years ago
Video Playback with Phonegap Crashes App
3 Comments
Oldest First
Popular
Newest First
Sorted by
Oldest First
A
Alexander Ohlei
said
almost 10 years ago
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
A
Andreas Fötschl
said
almost 10 years ago
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
A
Alexander Ohlei
said
over 9 years ago
Thank you, that worked perfect :)
kind regards,
Alexander
Login
or
Signup
to post a comment
More topics in
Cordova Questions or Problems
Show POI only on Radar, not on camera
Capture Screen
Phonegap + SenchaTouch or other frameworks
PhoneGap App Issues
iOS App Compilation Error
JSon data WikitudeSDK + PhoneGap
onExit() , Avoid to close the AR on "BackButton" - Wikitude - PhoneGap
HTMLDrawable in Phonegap Plugin
Video not playing (wikitude sdk 1.1.1 + phonegap)
Bug when using PhoneGap and opening AR view multiple times
See all 577 topics
© 2021 Wikitude, a Qualcomm company
Alexander Ohlei