Hello everyone,
I was trying to populate a video gallery content that I have. But for some reason I cannot get to reach the video url, I noticed that there is no id, inside the video object generated by graphQL, not sure if that should be the reason:
So this is my graphQL structure, so I want to reach the mp4URL
So this is my component, and this was just a test to get the object array video from my graph that I can reach, however it’s printed in a very weird way.
<div class="s-p-b-5" v-if="videos">
<div class="s-p-1"><div class="flex-horizontal-align-bottom"><div class="paragraph-xxl relative">Videos</div></div></div>
<div v-for="gallery in videos" :key="gallery.id" role="list" >
<div v-for="svideo in gallery.submitVideos" :key="svideo.id" class="grid _3-3-2-1 w-dyn-items">
<div v-for="mux in svideo.video" :key="mux.id" >
<div v-for="link in mux" :key="link.id">
{{link}}
</div>
</div>
</div>
</div>
</div>
however, if instead of the last nested div:
<div v-for="link in mux" :key="link.id">
{{link}}
</div>
I replace it for the real component:
<Video
v-for="link in mux"
:key="link.id"
:videoURL="link.mp4Url"
></Video>
I got an error “cannot get id from undefined”. I also tried to use the id from mux that brings the graph, just in case. It’s called “muxAssetId”, but I got the same error. Any idea? I was wondering if is because of the missing id. If that’s the case, can I use the url from dato, that one I can reach, but I am not sure if it does have the same perfomance as the one from mux?
Thank you in advance for the help