Dynamic Page Slight Modification

Hi everyone,

Sorry the title is not very explanatory. I have an archive of interviews in a Wix site. I created a dynamic page for each interview from a Wix Collection. However, the interviews are slightly different in the sense that they might have different number of recordings. It is not possible stitch the recordings together. Therefore, I need to display a variable number of recordings on a dynamic page.

I would appreciate it if anyone could let me know how this can be done.

Some workaround I was trying was creating recordings on the web page for the maximum amount necessary and collapsing audio files in the case that they were not assigned a recording in the collection. But I had some problems with this. I will explain more about it if this is the only possible method.

Can you create a repeater to display the audio recordings?

Add a Repeater to the page and put a video player in the repeater item.
Get the the recording array from the dataset.
Add an _id to each of them like - videoArr = videoArr .map((e,i) => {e._id = i.toString; return e;});
Assign the videoArr to the repeater data property.
Use repeater.forEachItem to assign each itemData.src to the $item(‘video’).src

And that’s all.

https://www.wix.com/velo/reference/wix-dataset/dynamicdataset/getcurrentitem

https://www.wix.com/velo/reference/$w/repeater/foreachitem

https://www.wix.com/velo/reference/$w/videoplayer/src