Log in or register to post comments

Vuforia-Unity-Videoplayback Android 2.x 3.x Bug

November 13, 2012 - 5:42am #1

Vuforia SDK Version: 1.5.9

- Description with steps to reproduce: I'm trying the video playback example of vuforia on unity 3.5.6f4 and when i touch the plane an hour glass clock appears, but then nothing happen the video was never played.

The hourglass issue exists on my Samsung Galaxy S with Android 2.3.3, but not on Android 4.0.4. The error occurs on my Xoom with Android 3.2 and not in Android 4.0.4. So it seems to be on Android 2.x and 3.x.

I use directly the video playback sample with the example videos.

- Development OS (Mac OS X, Windows, Linux): Mac OSX 10.8.2

- Mobile OS and Version: Android 2.3.3, Android 3.2

- Mobile Device Manufacturer and Model name: Samsung Galaxy S (I9000), Motorola Xoom (MZ601)

- Do the Vuforia Sample Applications show the same behavior?: vuforia-unity-videoplayback-android-ios-1-0-1.unitypackage

Hi,For the videoplayback

January 11, 2013 - 11:07am #25

Hi,

For the videoplayback sample you can double-click directly on "Vuforia-VideoPlayback.unity" (as that's the only scene in the sample, so there is no "scenes" folder in that sample project, sorry for the confusing wording in my previous post).

 

And about your question on selecting a different dataset; the video playback sample just uses the ChipsAndStones dataset (same as the one used in ImageTargets sample)

IHTH.

 

hi

January 11, 2013 - 9:11am #24

der is no scenes folder....?

hi,

January 11, 2013 - 9:06am #23

i will try wat u told n if der is any prob den ll inform n thanks a lot for ur help i really appreciate it ........and one more thing while creating an ar app in unity like we select datasetload  as imagetarget script...so my question is wether we have to select a different datasetload for video playback or wat.....?

Hi nav, as your problem is

January 3, 2013 - 1:27am #22

Hi nav, as your problem is Unity related you should post it in the Unity section of the Forum (for the future);

however, the easiest way of setting up the videoplayback sample is to create a new project and import the "videoplayback-2-0-6.unitypackage" that is included in the set of downloaded samples;

to do that, you simply need to go to the Assets menu, then select Import Custom package... and then browse to the location where your videoplayback-2-0-6.unitypackage is located; then Import all assets in the list (in the popoup dialog that appears).

Once imported, you can open the "scenes" folder in the project view and double-click on the videoplayback scene.

This should then work;

once the sample is open in Unity, you can also explore the sample scene-graph and project structure so to check the different objects and prefabs to see what scrips are used, what properties are set and how everything is connected to the various game objects (ARCamera, etc.)...

One last note about building the APK:

when selecting "Android" as target platform, you can click on "Player Settings" (in the build dialog); this will show the build settings in the inspector view; one thing to pay attention to is the target Android version (which might be by default 2.0.x); ideally, if you want to get the videos on texture in Android, you should set the Android version to 4.0.x or 4.1.x or higher (depending on what is available in your system).

IHTH.

yes...exactly and AR camera

January 2, 2013 - 10:22pm #21

yes...exactly and AR camera properties which data setload have to be selected......

steps

1.first i add an ar camera

2.image target prefab n apply stone and chips to it.

3.add video prefab....and give the path of my streaming assets folder created in the project folder.

4.make the video prefab a child of the image target prefab and den compile it and run it.....but the busy icon keep on displaying......

Hi nav, I'm happy to help if

January 2, 2013 - 1:49am #20

Hi nav,

I'm happy to help if I can, but could you just be a bit more detailed in your problem description ?

I seem to understand that you're trying to build and run the VideoPlayback sample but cannot play the video on the image target ?

hey u der....

January 2, 2013 - 1:23am #19

can u help me out m in need of it......

alessandroB

January 2, 2013 - 1:21am #18

HI alessandroB

Can u pls help e with the videoplayback thing

video playback problem with unity

December 24, 2012 - 10:47pm #17

Can u pls instruct me how to build the apk because wen i bult my own the icon on the image target is displayed of error icon and is der any tutorial for this .......pls help me i m stuck up in my college project pls ....

Hi Russel, the link you point

December 17, 2012 - 8:09am #16

Hi Russel,

the link you point to below (syreinrage's comment) is probably related to a slightly different problem (perhaps device-specific or video-format specific, to be assessed on that thread...);

in your case (this thread) the story is a bit different because the APK you sent to me was indeed failing also on my device, however building the same VP sample app from Unity over here (with Unity 3.5 "Pro" license) was producing an APK practically identical to your APK, but a few bytes of difference that made it perfectly working;

so, there was certainly something "wrong" in the APK you sent me for testing (as opposed to the APK generated here with Unity Pro);

it turned out that the license of Unity was the only difference between the two APKs (mine and yours).

 

 

It does not seem to work even

December 17, 2012 - 7:12am #15

It does not seem to work even with the Pro version.

Here is the comment from a user (syreinragewith Unity-Pro.

https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/problem-video-playback-hour-glass-stays-forever

Vuforia-Unity-Videoplayback Android 2.x 3.x Bug

November 22, 2012 - 7:02am #14

This is a good idea. 

Vuforia-Unity-Videoplayback Android 2.x 3.x Bug

November 22, 2012 - 6:41am #13

Yes, it's really unfortunate that Unity restricts this feature to Pro.

We also plan to document this issue in the Vuforia VP sample documentation.

Vuforia-Unity-Videoplayback Android 2.x 3.x Bug

November 22, 2012 - 6:35am #12

Vuforia-Unity-Videoplayback Android 2.x 3.x Bug

November 22, 2012 - 5:36am #11

Hi Russel, the AndroidManifest looks OK and identical to the reference one built over here.

The issue might be with the different Unity version or license, as the following function seems to be not working in your case:

    Handheld.PlayFullScreenMovie

 

On the following platform, it works:

- Unity 3.5.6f4  (maybe check if you have a version prior to "f4" and update if the case)

- License: Unity Pro

If the version is already up-to-date, then it is probably the license (if you have Unity Android Basic);

you can check for the license issue in the Unity3D forum maybe.

 

 

Vuforia-Unity-Videoplayback Android 2.x 3.x Bug

November 22, 2012 - 4:49am #10

Hi Russel, I tested your APK and indeed it shows the problem you report on my Samsung Galaxy S as well;

on the other hand, the same VP sample built here in Unity does not show the problem.

I also extracted the APK content, and it looks pretty much the same.

However, could you PM me your AndroidManifest.xml that you find under the Temp/Staging Area folder in your project directory ? I will compare it with mine.

(Note: the "/Temp/Staging Area" folder is created when you Build the project for Android from Unity, and it is removed automatically by Unity if you close the editor...)

 

 

Vuforia-Unity-Videoplayback Android 2.x 3.x Bug

November 22, 2012 - 2:23am #9

I have sent you a PM. 

Vuforia-Unity-Videoplayback Android 2.x 3.x Bug

November 21, 2012 - 6:19am #8

Hi Russel, 

could you meanwhile PM me your APK, as built by Unity ?

I would then be able to test directly your APK against our devices here. That would be helpful. Thanks.

 

Vuforia-Unity-Videoplayback Android 2.x 3.x Bug

November 20, 2012 - 2:31am #7

Hi russel,

as far as the Samsung Galaxy S (I9000) is concerned, I don't have a lot more to suggest, as this has been tested already (and I also re-tested it) and we cannot reproduce the issue on that same model.

For the Motorola Xoom, I will try to get some test run and then will get back to you.

Vuforia-Unity-Videoplayback Android 2.x 3.x Bug

November 20, 2012 - 2:14am #6

I have followed all your tips. Nevertheless, I get it not to run. :( 

Do you still have an Android 2.3 or 3.2 device?

The same setting in Unity 3.5.6f4 works with my Nexus 4 with Android 4.2. So it can not be in the settings.

Do you have any other tips?

 

Vuforia-Unity-Videoplayback Android 2.x 3.x Bug

November 20, 2012 - 2:14am #5

I have followed all your tips. Nevertheless, I get it not to run. :( 

Do you still have an Android 2.3 or 3.2 device?

The same setting in Unity 3.5.6f4 works with my Nexus 4 with Android 4.2. So it can not be in the settings.

Do you have any other tips?

 

Vuforia-Unity-Videoplayback Android 2.x 3.x Bug

November 19, 2012 - 4:40am #4

Hi, I had the chance to test the sample on the Samsung (exact same model as yours, except that it runs on Android 2.2 instead of 2.3, but that should not make any difference, as you simply have a more up-to-date version than I do);

the results are OK, in the beginning the hourglass appears on the texture but after 1 or 2 seconds the fullscreen video starts playing;

For info:

- I built the sample with Unity 3.5.6; I'm wondering if you're using an older version that might have some issues with the fullscreen video player (if so, I would suggest updating your Unity version)

- I build the sample by specifying the API level to 2.2 (see "Player Settings" page), in your case I would suggest to set it to the same Android version of your device (2.3.x)

Maybe you could also try to switch off and restart your phone once, to see if it makes any difference.

 

 

Vuforia-Unity-Videoplayback Android 2.x 3.x Bug

November 19, 2012 - 1:20am #3

Yes, I don't even get the fullscreen video. There is only the hourglass.

Vuforia-Unity-Videoplayback Android 2.x 3.x Bug

November 15, 2012 - 4:38am #2

Hi Russel,

normally the video on texture is only supported on Android 4.0 (ICS) or above;

this is somehow consistent with the fact that it works on your device running Android 4.0.4.

However, in case of devices running Android 2.x or 3.x, the video should start in fullscreen mode (i.e. not in the 3D augmentation view,   but just like a standard video player, which should obscure your 3d view completely until when you exit it via back-button);

so, if I understand, you don't even get the fullscreen video, right?

Log in or register to post comments