Link to Media field returns no url

Media link fields only return { "link_type": "media" } for me in nuxt.js. I can’t access any url field, although I have definitely set a media item in the dashboard. This also occurs for the simple link field. How do I get the actual url for the media item (mp4 video in this case)?

Hi Visionautik,

Welcome to the Prismic community, I will try to help you with this.

For videos, we recommend that you host them through a specialized service such as YouTube or Vimeo. These services offer video compression support and both provide an excellent video player.

By doing this, you can easily add your videos to your Prismic documents by using the Embed field

Refer to this documentation for more info.

Please let us know if you need any further help,

Also apart from the solution that I gave (using an external service), I think the issue you are having is probably because you didn’t publish the document.

Can send me the name of your repository so that I check if the image exists throwout the API.

This issue has been closed due to inactivity.