- Sort Posts
- 44 replies
- Last post
Re: adding a video over a marker
You could do a sort of cheat if the video is relatively small and you don't need sound.
Add all the video frames to a single image, use this is a texture and just move the texture over the surface of a flat plane so you will see 1 of the frames in the texture per render.
adding a video over a marker
adding a video over a marker
Its great to see the unity sample of android is released. But I got a problem with it.
After build and run in my android device (galaxy s2, 2.3.5). It can track the target but it does nothing after I pressed the play button.
I noticeed that "Devices that support video on texture can play the video directly on the image target". Is "video on texture" only support in android ver. 4.0 or above?
Is it the problems on android ver.?
adding a video over a marker
adding a video over a marker
Also please confirm that your Graphics Level in Build Settings is set for OpenGL ES 2.0.
And to your question about the OS version, Video on Texture works on all ICS devices. Anything prior to ICS will play video full screen. iOS devices will play video on texture for local video files. Network streamed video files will play full screen on iOS.
Have either of you tried the native sample yet?
adding a video over a marker
adding a video over a marker
Arik and Russel,
Can you tell me the device model name you are seeing the issue with. You can find this in Settings -> About Phone -> Model number . Have you tried restarting your device before running the sample? Can you play other videos on the device with the built in video player?
Thank you,
-Peter
adding a video over a marker
Can you post a log of your build and run session, in which you attempt to play a video? You can obtain this from the Eclipse LogCat console or via ADB using adb logcat -d > logcat.txt from a command line.
I/Unity ( 5411): Trackable chips found
I/Unity ( 5411):
I/Unity ( 5411): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 43)
I/Unity ( 5411):
I/InputReader( 128): dispatchTouch::touch event's action is 0
I/InputDispatcher( 128): Delivering touch to current input target: action: 0, channel '40b5f060 com.test.test/com.qualcomm.QCARUnityPlayer.QCARPlayerNativeActivity (server)'
I/InputReader( 128): dispatchTouch::touch event's action is 1
I/InputDispatcher( 128): Delivering touch to current input target: action: 1, channel '40b5f060 com.test.test/com.qualcomm.QCARUnityPlayer.QCARPlayerNativeActivity (server)'
D/BatteryService( 128): update start
D/BatteryService( 128): updateBattery level:82 scale:100 status:2 health:2 present:true voltage: 3992 temperature: 410 technology: Li-ion AC powered:false USB powered:true icon:17302213
I/StatusBarPolicy( 217): BAT. S:2 H:2
W/PowerManagerService( 128): Timer 0x3->0x3|0x3
I/StatusBarPolicy( 217): onSignalStrengthsChanged
D/BatteryService( 128): update start
adding a video over a marker
adding a video over a marker
adding a video over a marker
adding a video over a marker
adding a video over a marker
I'm having problems playing remote URL. Any tips on how to play remote video?
I've tried videos from YouTube, Vimeo, and for the latest one is this URL:
http://www.metacafe.com/watch/8765288/qualcomm_snapdragon_s4_preview/
Console log:
2012-07-17 13:52:26.430 VideoPlayback[12805:707] Playing video with native player
2012-07-17 13:52:31.694 VideoPlayback[12805:707] moviePlayerPlaybackDidFinish
2012-07-17 13:52:31.695 VideoPlayback[12805:707] moviePlayerPlaybackDidFinish -> MPMovieFinishReasonPlaybackError
2012-07-17 13:52:31.700 VideoPlayback[12805:707] moviePlayerExitAtPosition: 0.000000
2012-07-17 13:52:31.708 VideoPlayback[12805:707] An instance 0x523470 of class AVPlayerItem was deallocated while key value observers were still registered with it. Observation info was leaked, and may even become mistakenly attached to some other object. Set a breakpoint on NSKVODeallocateBreak to stop here in the debugger. Here's the current observation info:
)
adding a video over a marker
You'll need to use the full path to the video.
e.g.
http://www.metacafe.com/watch/8765288/qualcomm_snapdragon_s4_preview/[name].[ext]
adding a video over a marker
adding a video over a marker
adding a video over a marker
adding a video over a marker
You can launch a browser instance to a webpage using Unity's OpenURL method - http://docs.unity3d.com/Documentation/ScriptReference/Application.OpenURL.html
But is this what you intend? - or do you want to lay the page onto the target?
adding a video over a marker
Laying the page onto the target will require the use of a webview. I haven't experimented with this approach, and so can't offer much advice, but here is a GitHub project that you may want to investigate - https://github.com/gree/unity-webview
Has anyone else used iOS a/o Android WebViews w/ Unity?
adding a video over a marker
|
I have implemented vuforia videoplayback for iOS. I customized it for 4 trackables detection. But when i tried for more than 4 trackables it had failed. After 4th trackable, all trackables are being detected but videos are not playing with showing "X" button instead of "play" button. I just couldn't understand the problem. By the way, i have fixed all trackables(2D) width to 360. |
QCAR does not provide an API for rendering video on a trackable. If you can find a 3rd party solution that can render video using OpenGL ES you should be able to make this work with QCAR.
- Kim