Getting Videos from Thingworx into Vuforia Studio
Hello Community,
I can say that it seems possible to get the videos saved which are saved in thingworx repository and show in vuforia studio on the video widget. There are 10 videos which i change with the click of a button. What do you think is a best solution that should i get the video on click everytime or first fetch all the videos together and then show it one by one with the button click. i mean store them as an array. Any suggestions in this regard...
Problem
let videos = [
{ id: 'video-2', src: 'app/resources/Uploaded/Illustration-1.mp4' },//1
{ id: 'video-2', src: 'app/resources/Uploaded/Illustration-2.mp4' },//2
{ id: 'video-2', src: 'app/resources/Uploaded/Illustration-3.mp4' },//3
{ id: 'video-2', src: 'app/resources/Uploaded/Illustration-5.mp4' },//4
{ id: 'video-2', src: 'app/resources/Uploaded/Illustration-6.mp4' },//5
{ id: 'video-2', src: 'app/resources/Uploaded/Illustration-7.mp4' },//6
{ id: 'video-2', src: 'app/resources/Uploaded/Illustration-8.mp4' },//7
{ id: 'video-2', src: 'app/resources/Uploaded/Illustration-9.mp4' },//8
{ id: 'video-2', src: 'app/resources/Uploaded/Illustration-10.mp4' },//9
{ id: 'video-2', src: 'app/resources/Uploaded/Illustration-11.mp4' },//10
{ id: 'video-2', src: 'app/resources/Uploaded/Illustration-13.mp4' },//11
{ id: 'video-2', src: 'app/resources/Uploaded/Illustration-14.mp4' },//12
];
I have many experiences with different videos with different business logics and thats why i want to fetch videos dynamically from the back end. I have found the service below as you can see to get the binary data of the video but now even one clip which is of 35MB is taking 15 seconds to fetch from filerepository. any idea to make it fast or any other approach should i have to consider here?


