Build random video movie player using an array from resource folder

video

#1

I am just starting with tumult hype with light experience in obj C for IOS. I am trying to build a random video player pulling videos from resource folder and with custom control play pause and stop buttons. Anyone have working example or starting place to figure this out? i have everything sorted out except for the most important part, the ARRAY. It’s pretty different in obj c.

Thanks in advance.


(Mark Hunte) #2

JS arrays and ObjC arrays are not that different.

var videos = ["video1","video2"];

video.setAttribute('src', '${resourcesFolderName}/' + videos[0]);