"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

load video from url in full screen

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

AlessandroB

Tue, 11/27/2012 - 17:41

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();

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

AlessandroB

Fri, 11/30/2012 - 08:52

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;

AlessandroB

Fri, 11/30/2012 - 10:02

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:

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.

AlessandroB

Mon, 12/03/2012 - 14:49

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;