Log in or register to post comments

Videoplayback sample is not working on LAVA tablet

August 4, 2013 - 11:36pm #1

i am using Lava tablet which has android 4.2, and used Videoplayback original sample. the problem is when i tap on icon which is redered after image detection video is not showing only audio is coming. what are the reasong, does this device not supporting Video rendering.

 

Videoplayback sample is not working on LAVA tablet

October 9, 2015 - 12:14pm #23

I cannot tell where to put every single line in your app code, as this is just about programming after all, but here are some tips:

- in order to load the videos "on demand", instead of loading them in the onSurfaceCreated method, you'll want to load them when a target is detected

- you can determine "when" a target gets detected, by looking at the code that iterates over the list of TrackableResults returned by the Vuforia State at every frame (this is all in a "for" loop in the code); the relevant code is in the VideoPlaybackRenderer class

- in the same code, you can also detect when a target is no longer tracked (i.e. target has been lost), by comparing the list of currently active TrackableResults at the current frame, with the ones of the previous frame.

-based on the conditions above (target detected / target lost), you can establish when to load and when to unload the video associated to each Target; by the way, a convenient way of creating a mapping between each target and the associated video is to use a HashMap or HashTable, by which you can map the name of the target to the name of the video that is associated to that target.

Hope this helps.

 

Videoplayback sample is not working on LAVA tablet

October 8, 2015 - 11:30pm #22

Firstly Thanks for reply and helping me to get out of this problem but i have some confusion Where should  I have to put unload() function in onsurfacechanged() or onsurfacecreated() and what parameters pass with this function.

And How to define to load only that video which is used at a time.

 

Can you please mark the point where should i put your solution in my app and please provide all function which can help me to out of these problem.

Videoplayback sample is not working on LAVA tablet

October 8, 2015 - 1:45am #21

If you look at the VideoPlayback native Java sample code, you will find a class called "VideoPlayerHelper", which includes a "load()" and an "unload()" method. The unload method can be called to unload any of your videos.  

SInce the VP sample is only using 2 videos (one for the 'chips' and one for the 'stones' target), it loads the 2 videos upfront at app start (see the code in VideoPlaybackRenderer in onSurfaceCreated and onSurfaceChanged; however, you could for example load the videos on demand, for example when a spercific target is detected, and at the same time unload all other (previously loaded) videos as they are not currently associated to a tracked target.  A slightly more sophisticated approach might be to allow loading up to 2 or 3 videos, and unload unused videos when a new target is detected that would require loading a new video (i.e. exceeding the 3 videos limit), so that the overall number of videos loaded in memory at any given time never exceeds the 3 units.

 

 

Videoplayback sample is not working on LAVA tablet

October 7, 2015 - 6:08am #20

If i wanna to unload that video assets than how to unload it from main thread.

and whats code or any hint for me to unload that  videos which are not using at that time.

Videoplayback sample is not working on LAVA tablet

October 7, 2015 - 3:31am #19

@mittal2810

so, if your app loads 20-25 videos and tries to play them, most likely you need to take care of unloading those videos that are currently not being used (i.e. not tracked by any target), otherwise you may run out of resources (memory and GPU).

This issue may then appear more easily on some devices as the underlying hardware resources are different.

Note that the "sample app" is designed to simply show how you can play a video on a Vuforia Image Target,  but the video playback streaming and rendering code are not based on a Vuforia-specific feature,  they are based on standard API calls in OpenGL and in the Android Media Player SDK, so that you can customize the code to fit your app needs.

The only Vuforia feature involved is the tracking of Image Targets, but that's only to provide the Target Pose on top of which you can render your video textures, and the target positioning in 3D space does not play any role in this specific issue.

 

 

 

Videoplayback sample is not working on LAVA tablet

October 5, 2015 - 8:19am #18

I've asked about the platform just for confirmation.

Videoplayback sample is not working on LAVA tablet

October 5, 2015 - 4:41am #17

M App is totally bease on Android and developed on eclipse IDE

I have no idea about unity.Is unity is working well ?

 

Videoplayback sample is not working on LAVA tablet

October 4, 2015 - 11:40pm #16

@ mittal2810,

can you also tell if your project is developed in Unity or Android native ?

Videoplayback sample is not working on LAVA tablet

October 4, 2015 - 10:51pm #15

Yes I am using Video Playback as it is with adding more video approxmately 20-25.

Its is working fine in Moto G and Samsung Galaxy Y Duos, MI , Sony Xperia One ,MI 4 but not working in Samsung S5,S6, Note 2, Dell Tablet Venue and strange think is this if the dataset have 4 images and play video on that is working very well but more than 4 videos camera hang out and if camera open than video play marker is not showing on that images only cross marker comes out and its work very well for above devices like Moto, Mi etc.

 

Videoplayback sample is not working on LAVA tablet

October 2, 2015 - 12:35am #14

Also, both arathina and mittal2810, could you clarify if you see the issue on:

- the Video Playback sample "as is"

- the Video Playback sample with custom Videos (i.e. using your own video files)

- a modified version of the Video Playback sample

Plus, all additional details as requested by dm3d, following these guidelines:

https://developer.vuforia.com/forum/device-support/how-report-device-issue

 

Videoplayback sample is not working on LAVA tablet

October 1, 2015 - 1:35pm #13

For device issues, please also include the additional details as described in this post:

https://developer.vuforia.com/forum/device-support/how-report-device-issue

 

Videoplayback sample is not working on LAVA tablet

October 1, 2015 - 1:32pm #12

arathina wrote:

I too have the same problem, Video is not Playing in texture, I could see only empty plane, but i can hear audio.

Please help me asap, I m using Samsung note 4, Unity 5. Is this problem with shader?  

Could you attach some screenshots? I am able to successfully run VideoPlayback 5.0.5 on a Galaxy Note 4 (4.4.4) device using Unity 5.2.1f1.

 

Videoplayback sample is not working on LAVA tablet

October 1, 2015 - 5:16am #11

I too have the same problem, Video is not Playing in texture, I could see only empty plane, but i can hear audio.

 

Please help me asap, I m using Samsung note 4, Unity 5. Is this problem with shader?  

Videoplayback sample is not working on LAVA tablet

September 12, 2015 - 2:21am #10

Yes , I am also facing this problem when i am run my app on Samsung s6 and Dell table 'Venue'. There is open a full screen playback java file which is black not an video or audio appear.

And Device also hang after this black screen in almost all samsung tab Samsuing Galaxy note 2 ,Edge,S etc and not also in asus.

This app is smoothly working in small phone like samsung duos and other 4.7 inches screen.

Please make some solution on it.

Videoplayback sample is not working on LAVA tablet

August 11, 2013 - 9:20pm #9

hii,,

yes sample app is not working on any Lava tablet. i tested on LAVA Xtron tablett at least 100 times. It was not working.

 

Videoplayback sample is not working on LAVA tablet

August 9, 2013 - 9:43am #8

Will do. Can you tell me which make / model you've seen this on - or is it all of them?

Videoplayback sample is not working on LAVA tablet

August 6, 2013 - 9:26pm #7

Thanks, Once you find the solution for thi LAVA tablet issue. please post it.

Videoplayback sample is not working on LAVA tablet

August 6, 2013 - 11:34am #6

Thanks, I'm checking w/ our engineering team on this issue. Can you tell me the specific make and model of Lava tablet that you've observing this problem on?

Videoplayback sample is not working on LAVA tablet

August 5, 2013 - 9:05pm #5

yes When i double tap in the icon video plays in the full screen, But in case of video at texture it is showing only black texture intead of video.

Videoplayback sample is not working on LAVA tablet

August 5, 2013 - 11:41am #4

To confirm..

 

This is occurring w/ the videos in the sample project?

Can you see the video when you double tap the icon? - this launches a full screen player.

Do you see any errors in the device log when you build and run the project?

Videoplayback sample is not working on LAVA tablet

August 5, 2013 - 2:52am #3

NO its not a Video Format issue. it is working when i put this video in memory and played the video.

But vuforia sample is not working with LAVA tablet

 

Videoplayback sample is not working on LAVA tablet

August 5, 2013 - 1:12am #2

Can you please check that the video plays natively i.e. on the device itself without any AR?

It could be a format issue.

N

Log in or register to post comments