Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
i am new to Thnigworx studio, i want to create an AR, where in i will scan the Thingmark, after that 3 (say 1,2 & 3) buttons will appear, after clicking on the button respective video should start playing. if i click on button 1, video 1 should start playing and so on. I have the video file in .mp4 format.
How do i create an AR for the above case. Please help
Hi @tdhote,
This can be implemented in many ways and one of the ways is shown below:
$scope.video1 = function() {
$scope.app.params.visible = true;
$scope.app.params.visible2 = false;
$scope.app.params.visible3 = false;
}
$scope.video2 = function() {
$scope.app.params.visible = false;
$scope.app.params.visible2 = true;
$scope.app.params.visible3 = false;
}
$scope.video3 = function() {
$scope.app.params.visible = false;
$scope.app.params.visible2 = false;
$scope.app.params.visible3 = true;
}
Save and test the experience.
Hi @tdhote,
This was just what I was looking for! Playing multiple videos (mp4) inside a downloaded experience w/o Wi-Fi.
I was using the loadDeeplinkedExperience1(); way but that wouldn't work in my case.
I followed each of these steps closely and the videos will play, but only audio.
Any thoughts on what I might be missing?
Should I expect each mp4 load to full screen like the Deep Linked, being able to x out back to the experience?
Thanks,
Make sure you have the video Widget visibility set to true. If it is false the video will still play even though you can't see it but you will still hear the audio.
In my experience on Android videos will play in a window by default but on Apple they will force to full screen using the native video player.
Hope you are doing good. Could you please confirm if the issue has been resolved.
If yes, please mark the answer as accept as solution for the future reference. Thank you in advance.
Regards-Mohit Goel