Log in or register to post comments

Runtime Dataset Loading and Activation + changing imagetargets and dataset at runtime

August 3, 2015 - 9:38am #1

Hi,

Am working with the videoplay back sample where i want to load Datasets in runtime and activate it.I tried doing it using one of the snippets you have given.But i couldn't see the tick mark enabled in the Datasetloadbehavioyr script which was attached with the AR Camera.How to enable the tick mark(on/off) ? ive attached the images.

 

Also after acheiving the above i ve tried to create the clones of imagetargetstones .....some 10 instances.i want to change the imagetarget and dataset for all 10.How to access dropdown boxes which chosses dataset and image target at runtime in imagetargetbehavoiur script.ive also ttached the image for reference.?

 

Runtime Dataset Loading and Activation + changing imagetargets a

October 30, 2015 - 4:09am #6

Guys,

 

Any solution for the below problem in IOS and Android would be helpful ???? please read the thread completly

 

Android - Dynamiccally loading videos.....hitting play after pause button always plays the video from the first.But the debug clearly shows t he currentframe.But something is overriding it.plz help

IOS-Dynamiccally loading videos......The very same file published for IOS solved the play...pause problem...... but on double click the application crashes.The Log has been pasted in below thread....It should open in fullscreen as it normally does on Android.

https://developer.vuforia.com/forum/qcar-api/ios-videoplayback-fullscreen-error#comment-2058304

 

Unity 5.1.3 f1

Imac yosemite

Vufora 5.0.5

Xcode 7.1

Runtime Dataset Loading and Activation + changing imagetargets a

October 30, 2015 - 3:56am #5

IOS VIDEOPLAYBACK ERROR

 

HI,

 

am trying to load vidoes dynamically in the videplayback sample.I made changes in playvideo.cs..so that on double tap.the video on texture itgoes full screen.It works fine in android.But when i convert to IOS i get the below error in xcdoe and the app hangs.On double tapping the fullscreen video plays fine but it doesnt return to the app again.Can anyone throw some light in this issue.

 

 

Unity 5.2.0f3

Xcode 6.4

Vuforia 5.0.5

 

 

 

Xcode Debug

 

Double Tap Registered

 

(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

 

VideoPlayerHelper.MediaState = PLAYING_FULLSCREEN

 

(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

 

StopVuforia

 

(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

 

markerTrackerStop

objectTrackerStop

cameraDeviceStopCamera

cameraDeviceDeinitCamera

2015-09-14 23:40:08.753 MBSET1[1197:345378] Unable to simultaneously satisfy constraints.

Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 

(

    "<NSLayoutConstraint:0x1b32cd20 H:|-(34)-[MPKnockoutButton:0x1b23d8f0](LTR)   (Names: '|':_UIBackdropContentView:0x1b3194e0 )>",

    "<NSLayoutConstraint:0x1b32cd50 H:[MPKnockoutButton:0x1b23d8f0]-(34)-[MPDetailSlider:0x1b103b90](LTR)>",

    "<NSLayoutConstraint:0x1b32cd80 H:[MPDetailSlider:0x1b103b90]-(34)-[UIView:0x1b31aae0](LTR)>",

    "<NSLayoutConstraint:0x1b32cdb0 UIView:0x1b31aae0.right == _UIBackdropView:0x1b236fd0.right>",

    "<NSLayoutConstraint:0x1b31ae30 H:|-(0)-[_UIBackdropView:0x1b236fd0]   (Names: '|':MPVideoPlaybackOverlayView:0x1b1f92b0 )>",

    "<NSLayoutConstraint:0x1b31b790 H:[_UIBackdropView:0x1b236fd0]-(0)-|   (Names: '|':MPVideoPlaybackOverlayView:0x1b1f92b0 )>",

    "<NSLayoutConstraint:0x1b330140 '_UITemporaryLayoutWidth' H:[MPVideoPlaybackOverlayView:0x1b1f92b0(0)]>",

    "<NSAutoresizingMaskLayoutConstraint:0x1b32fb70 h=-&- v=-&- _UIBackdropContentView:0x1b3194e0.midX == _UIBackdropView:0x1b236fd0.midX>",

    "<NSAutoresizingMaskLayoutConstraint:0x1b32fba0 h=-&- v=-&- _UIBackdropContentView:0x1b3194e0.width == _UIBackdropView:0x1b236fd0.width>"

)

 

Will attempt to recover by breaking constraint 

<NSLayoutConstraint:0x1b32cd50 H:[MPKnockoutButton:0x1b23d8f0]-(34)-[MPDetailSlider:0x1b103b90](LTR)>

 

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.

The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.

2015-09-14 23:40:08.843 MBSET1[1197:345378] Unable to simultaneously satisfy constraints.

Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 

(

    "<NSLayoutConstraint:0x1b32cd20 H:|-(34)-[MPKnockoutButton:0x1b23d8f0](LTR)   (Names: '|':_UIBackdropContentView:0x1b3194e0 )>",

    "<NSLayoutConstraint:0x1b32cd50 H:[MPKnockoutButton:0x1b23d8f0]-(34)-[MPDetailSlider:0x1b103b90](LTR)>",

    "<NSLayoutConstraint:0x1b32cd80 H:[MPDetailSlider:0x1b103b90]-(34)-[UIView:0x1b31aae0](LTR)>",

    "<NSLayoutConstraint:0x1b32cdb0 UIView:0x1b31aae0.right == _UIBackdropView:0x1b236fd0.right - 34>",

    "<NSLayoutConstraint:0x1b31ae30 H:|-(0)-[_UIBackdropView:0x1b236fd0]   (Names: '|':MPVideoPlaybackOverlayView:0x1b1f92b0 )>",

    "<NSLayoutConstraint:0x1b31b790 H:[_UIBackdropView:0x1b236fd0]-(0)-|   (Names: '|':MPVideoPlaybackOverlayView:0x1b1f92b0 )>",

    "<NSAutoresizingMaskLayoutConstraint:0x1b32fb70 h=-&- v=-&- _UIBackdropContentView:0x1b3194e0.midX == _UIBackdropView:0x1b236fd0.midX>",

    "<NSAutoresizingMaskLayoutConstraint:0x1b32fba0 h=-&- v=-&- _UIBackdropContentView:0x1b3194e0.width == _UIBackdropView:0x1b236fd0.width>",

    "<NSAutoresizingMaskLayoutConstraint:0x1b0046a0 h=-&- v=-&- MPVideoContainerView:0x1b234140.width == MPSwipableView:0x1b2345e0.width>",

    "<NSAutoresizingMaskLayoutConstraint:0x1b0ed880 h=-&- v=-&- MPSwipableView:0x1b2345e0.width == MPMovieView:0x1b323360.width>",

    "<NSAutoresizingMaskLayoutConstraint:0x1b22ee50 h=--& v=--& H:[MPMovieView:0x1b323360(0)]>",

    "<NSAutoresizingMaskLayoutConstraint:0x1b31c860 h=-&- v=-&- MPVideoPlaybackOverlayView:0x1b1f92b0.width == MPVideoContainerView:0x1b234140.width>"

 

)

 

Will attempt to recover by breaking constraint 

<NSLayoutConstraint:0x1b32cd50 H:[MPKnockoutButton:0x1b23d8f0]-(34)-[MPDetailSlider:0x1b103b90](LTR)>

 

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.

The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.

 

Runtime Dataset Loading and Activation + changing imagetargets a

August 27, 2015 - 1:00pm #4

hi,

 

i have been using the videoplayback sample for a while.When i try to load the videos on runtime.The seekposition is not working.If i play and pause.The videoplayer .currentposition returns the correct value of the video when paused. but when i try to play it again using singleTap it always plays from 0 even though the script says currentVideo.Videopayer.Play(false,currentVideo.VideoPlayer.GetCurrentPosition()).This happend in my nexus android device.any help ?

Runtime Dataset Loading and Activation + changing imagetargets a

August 11, 2015 - 6:37am #3

HI,

 

I have already tried this before posting the question.Its tracking fine but why the API is not allowing us to access the dropdown boxes and selection boxes like we do manually ?

 

After tracking the objects am stuck here

https://developer.vuforia.com/forum/qcar-api/runtmie-videoplayback-shows-pink-mesh

 

Videoplayback is happening...i could hear the sound but its not getting rendered over the Videomaterial.If i enable the imagetarget manually it renders fine.Can you please try and lemme know which causes the pink mesh.

 

Steps to try :

1.Open videoplayback sample

2.Loading and activating stones&chips or other dataset dynamically

3.After loading any one of the dataset through script , am attaching the Turnoffbehaviour,Meshfilter,mesh renderer and Trackablevent handler to the Dynamc Instance

4.Then am adding the VideoPrefab from VufroiaVIdeoplayback/prefabs/Video as child object to the instance.

 

Now when i show the imagetarget and it tracks the correct image target and it loads the video.The only issue is i couldnt see the video.The video has the audio and i could hear it fine.The videomaterial shows a pink image.Please help.

 

If you want to see the unity file...i can share it with you thorugh emal.Please lemme know.How to share it privately,.

Runtime Dataset Loading and Activation + changing imagetargets a

August 5, 2015 - 3:30pm #2
Log in or register to post comments