I am doing Wikitude SDK Video Sample but Instead of using given wtf file. I have taken new image and converted to wtf file using target manager tool. But this sample not working for this. Do i need to change any thing or did i miss anything.
Note: 1) I have used HD images with 2560X1440.(Attached image for reference)
2) I got two stars after uploading in to target management tool.
Thanks,
Venkatesh Gurram.
P
Philipp Nagele
said
almost 10 years ago
Hi,
have you also changed the ID in the AR.Trackable2DObject that it matches your own ID of your image target. See the Important note in the first sample called image recogntion:
C
Craig Jones
said
almost 10 years ago
Finally got the Titanium module working after it wasn't recognising the frameowrk path, however I'm experiencing the same issues with non of the sample video code not working.
Deploying to iOS 7.0.4, iPhone 5S and Titanium SDK 3.2
All other examples are working fine without me needing to change anything, just the video examples that do not display.
Any ideas?
P
Philipp Nagele
said
almost 10 years ago
Hi Craig,
are you using a recent version of the Titanium Sample App from GitHub? Around 2 month ago we fixed an issue, where the resource files for videos were entirely missing in the iOS version of the Titanium Sample App. If that is the case, please re-download the sample app. If not, can you describe in more detail how to reproduce the issue (step-by-step) and how the error looks like.
C
Craig Jones
said
almost 10 years ago
Hi Philipp,
I only downloaded the Titanium Sample App from Github last night, I've seen the posts regarding the video location but still doesn't work for me.
I'm not getting any errors, I've not altered any code, simply when you click the "Videos in Image Recognition" and scan PageOne (surfer dude) nothing happens.
Image on Target with Surfer Dude, Solar System and the 3D Car (which I love by the way!) all work fine, just seems to be the videos.
Kind regards,
Craig
C
Craig Jones
said
almost 10 years ago
Hi there,
I've still been unable to get any video example working.
I've embedded your example videos into a media player so the videos do actually work through Titanium, however I found I had to put the videos on the root of the resources folder (/videos/video.mp4) as trying to call them from within the example directory (/iphone/6_Video_1_SimpleVideo/assets/video.mp4) did not.
eg:
var vidWin = Titanium.UI.createWindow({ title : 'Video View Demo', backgroundColor : '#999' }); var videoPlayer = Titanium.Media.createVideoPlayer({ mediaControlStyle : Titanium.Media.VIDEO_CONTROL_DEFAULT, scalingMode : Titanium.Media.VIDEO_SCALING_ASPECT_FIT, fullscreen : true, autoplay : true, media: '/videos/video.mp4' //url: '/iphone/6_Video_1_SimpleVideo/assets/video.mp4' doesn't work }); vidWin.add(videoPlayer); vidWin.open();
However, when then editing the example video.js file below it still fails to work.
var video = new AR.VideoDrawable("/videos/video.mp4", 0.40, { offsetY: -0.3, });
Simply no video plays. Has anyone got a video example in Titanium working for iOS? Any other suggestions?
Many thanks
A
Andreas Schacherbauer
said
almost 10 years ago
HI Craig, Where is your video drawable attached to? A GeoObject or a Trackable2DObject?
Best regards Andreas
C
Craig Jones
said
almost 10 years ago
Hi Andreas,
I had previously not touched the example code from GitHub which is not working:
createOverlays: function createOverlaysFn() {
// Initialize Tracker
this.tracker = new AR.Tracker("assets/magazine.wtc", {
onLoaded: this.worldLoaded
});
// Create video drawable
var video = new AR.VideoDrawable("assets/video.mp4", 0.40, {
offsetY: -0.3,
});
var pageOne = new AR.Trackable2DObject(this.tracker, "pageOne", {
drawables: {
cam:
},
onEnterFieldOfVision: function onEnterFieldOfViewFn () {
video.play(-1);
}
});
},
The only thing I have been changing is the location of the video files as per previous post.
Have you installed it via Titanium to your device and got the video example working?
Many thanks
Craig
A
Andreas Schacherbauer
said
almost 10 years ago
Hi Craig, today I have updated the sample application over on github.com. Some Samples had an issue with there javascript src tags. I also build a new version of our module which ads an additional framework search path for a global module installation. The module should be visible within the next hours/day (depending on Appcelerator).
Hope these are good news, Andreas
Here is the new module.xcconfig which can be replaced within any previous donwloaded version of the iOS module:
//
// PLACE ANY BUILD DEFINITIONS IN THIS FILE AND THEY WILL BE
// PICKED UP DURING THE APP BUILD FOR YOUR MODULE
//
// see the following webpage for instructions on the settings
Great news, looking forward to the update and I will give it a test and get back to you.
Kind regards,
Craig
C
Craig Jones
said
almost 10 years ago
Hi Andreas,
I've downloaded the new Titanium Module from the Marketplace and also re-downloaded and implemented the Github code. I've not changed anything and attempted the sample videos again but they are still not working.
Everything else in the app works great, it's just the video examples that do not.
VenkatesGoud Gurram