Media Field in CMS that can be EITHER image or video

Question:
Is there a way to make an input field in my CMS that can be EITHER an image file or a video file? Is there a good work-around for this?

Product:
Wix Editor

What are you trying to achieve:
I want the list page of my collection to display a media gallery where each image or video links to the item page. I want to be able to display a video if I have one, but if not I will use an image. But in the CMS I can only put a single image OR a single video. There is not a dropdown for general “media.”

What have you already tried:
If I use a gallery dropdown on the CMS instead so that I can add one image or video file per item it then doesn’t work when I connect it to the gallery on my list page. It only displays an image or video from 1 item at a time, not all the items as a list page should.

Additional information:
Thank you. The only other work around I can come up with would be to make a non-dynamic page as my list page which I manually put in all the images and videos and have them each link to a specific item page. But that sort of defeats the purpose of the CMS.

Your field needs to be set to Gallery

That does not work to make a list page though. When I link my list page gallery to a media gallery in my CMS it only displays the images/videos from one item. It does not put the all the image and videos from all the different items into the one gallery allowing it to be a list page.

Sorry, you want to display an index that has a combination of images and videos—— and when one is clicked on it opens the single dynamic item page?

By logic, that will never work. A video element in a gallery will play on click, it will never lead anywhere else.