-
I'm working on a webpage that needs to support video files in different formats. Mostly likely I will end up with a .webm and a .mp4 but I've been testing with other formats to try to figure out what's up. Within Phoenix's preview the only file that is showing in the page is the .webm. The other video files are not visible. When I view the served page in Firefox, all the files are visible. When I view the served page in any Chromium-based browser, the only visible file is the .webm. I also can open it directly with the server path and it works. The other video files 404 if I open them with the server path, but they do work when I open them directly from the file system so they are where they should be and the browsers have the right codecs to play them. I'm stumped. Any ideas? Environment: MacOS latest, M2 MacMini, Phoenix Code 4.0.3, various browsers on latest versions except Chrome which is not installed on this machine |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Is the video part of the current project? if not the live preview in Phoenix code will prevent access to files outside of project as a security measure. That may explain the 404. |
Beta Was this translation helpful? Give feedback.
Thanks for the detailed notes!
Looks like its not an issue within the editor. The live preview in Phoenix code is a safari webview in macOS and hence will behave similarly to it. Im marking this issue as a browser issue, feel free to comment here if you need any more help with this or need to add more context with the fix when done. Thanks.