Hi, I have been playing around with the videoplayback demo, it works fine until I add more video to it.
I have make 6 trackables for 6 videos, on one of my phone, it can play all 6 videos successfully.
But for another android phone, it can only play 4 and for another tablet it can only play 3
I have checked the log, the error occurs when it prepare the mediaplayer at mMediaPlayer.prepareAsync(); in VideoPlayerHelper.java
related logs:
12-13 17:15:10.247: E/OMXNodeInstance(14298): OMX_UseBuffer failed with error -2147479528 (0x80001018)
12-13 17:15:10.247: E/OMXCodec(14298): [OMX.TI.DUCATI1.VIDEO.DECODER] ERROR(0x80001000, 0)
12-13 17:15:10.247: W/AwesomePlayer(14298): onPrepareAsyncEvent() initVideoDecoder error(-2147483648)
12-13 17:15:10.247: E/MediaPlayer(15561): error (1, -2147483648)
12-13 17:15:10.247: D/DOMX(14298): ERROR: failed check:(eError == OMX_ErrorNone) || (eError == OMX_ErrorNoMore) - returning error: 0x80001000 - Error returned from OMX API in ducati
12-13 17:15:10.247: D/DOMX(14298): ERROR: Error From ComponentDeInit..
12-13 17:15:10.286: E/MediaPlayer(15561): Error (1,-2147483648)
12-13 17:15:10.286: E/QCAR(15561): Error while opening the file for fullscreen. Unloading the media player (Unspecified media player error, -2147483648)
12-13 17:15:10.286: E/MediaPlayer(15561): error (-38, 0)
I tried with different video but the result is the same, it can only play the first 3 or 4 video. Any help? thanks
videoplayback demo error when adding more video
Hi,
Now I only load the video
Now I only load the video when target is detected and unload it when not detected, and now it works fine
Thanks for your help!
videoplayback demo error when adding more video
i have removed load() method calling from both
videoplayback demo error when adding more video
[quote=gn1749465]
Now I only load the video when target is detected and unload it when not detected, and now it works fine
Thanks for your help!
[/quote]
hi
Hi, As mentioned by you, i
Hi,
Hi, you also need to unload
Hi,
you also need to unload the videos that you are not using (when targets are not detected), otherwise you will incurr in memory problems and crashing;
could you check that you also do that?
unload stops video tracking
Yes, I did not unload the video, i just pause the video while not tracking. Because if i track the image again i want to play the video from where it stop/pause. If i do unload, the video start play from first. Is there anyway i can stop this?
OK, I see; basically, if your
OK, I see; basically, if your application requirement is to pause a video when not tracked and then being able to resume the paused video when the trackable is detected again, then this is a bit in conflict with the possiblity of unloading the video;
videoplayback demo error when adding more video
can i see a sample code how you remove the load and unload functions there? im new here.. and i want to know more about this vuforia :)
I hope you can help me. Thanks in advance :)
You're welcome!
You're welcome!
videoplayback demo error when adding more video
videoplayback demo error when adding more video
Hi,
not sure if there is a direct / linear relationship between the size of the videos and the memory consumption; you must also consider that the MediaPlayer might need to allocate extra resources which are not directly related to the size of the video being played.
videoplayback demo error when adding more video
Ok
I guess I will investigate more in some android sdk forum, tough the application now runs fine it's something I want to clear up.
Thanks for your time and your fast answer.
videoplayback demo error when adding more video
Good, if you find some extra tips / tricks about the Media Player, feel free to share them here.
videoplayback demo error when adding more video
I did it on the true case of the conditional if( isTracking(i) ) on the onDrawFrame method and it worked
hope it helps
videoplayback demo error when adding more video
Even I just have one video to play when texture found, this error appears at logcat. How can i can fix this error ? Please can you inform properly with codes or directions.
Error as below:
videoplayback demo error when adding more video
Hi mustafacelik,
that error message comes from the OnErrorListener which is installed in the FullscreenPlayback class (see onError() method in FullscreenPlayback.java).
videoplayback demo error when adding more video
Hi AlessandroB,
videoplayback demo error when adding more video
Ok. Have you made significant changes to the original sample App?
one thing you could test (or ask your client to test), is to try your App, but using the videos provided with the official VP sample;
videoplayback demo error when adding more video
As you told,I try to use sample videos at application and video popup and works well.I still cant understand why my video not working ?
videoplayback demo error when adding more video
Ok, so it sounds very much like a video encoding issue; also, some video formats are supported only on certain Android versions (e.g. 3.0, or 4.0 or 4.1);
you may want to check this page on Android media formats: