By realbruz
on Tue, 11/27/2012 - 15:58
Hi,
I'm trying to modify the videoplayback sample in order to load movie from url. The sample provide the way to do it only for video ontexture. It is possible to perform the same task for the full screen modality?
Thanks
load video from url in full screen
Hi, you should be able to find the same piece of code that allows you to specify a URL also in the FullscreenPlayback.java class;
This is the relavnt snippet:
private void createMediaPlayer()
{
mMediaPlayerLock.lock();
load video from url in full screen
Hi, I try to comment and uncomment the lines as suggested by you but it still doesn't work in fullscreenmode It works only with render ontexture. This is mycode:
Here I declare the movie for each markerin the videoplayback.java
load video from url in full screen
Hi, have you tried with videos taken from the sd card (like the example suggests in the commented code) ?
You could copy the videos that come with the sample into the sdcard (you can use "adb push" for that) and try that;
load video from url in full screen
I just realized that the videos in your http URL are the sames as the sample ones;
so I did a test using that HTTP URL (on an Android 2.2 device) and it works perfectly;
this is the code (in FullscreenPlayback.java), just in case you want to double-check:
load video from url in full screen
Hi,
I have the vuforia1.5.9 sdk and the internet connection is up.
I assign these values to the mMoviename into the on create function in videoplayback.java.
load video from url in full screen
hi,
I reproduced your setup, and instead of hardcoding the "http://..." url directly in the FullscreenPlayback code, I have put the URLs in the mMovieNames array;
load video from url in full screen
Hi,
I folllowed your steps to give url's in array but i found that setDataSource do not support string arrays values so i converted it to string using toString() but it throws error in PlaybackRender.java.
load video from url in full screen
Thank you very much,
load video from url in full screen
Hi, happy to hear that it works.