Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio files with incorrect MIME type? #6

Open
triplingual opened this issue May 22, 2020 · 2 comments
Open

Audio files with incorrect MIME type? #6

triplingual opened this issue May 22, 2020 · 2 comments
Assignees

Comments

@triplingual
Copy link

All of the audio files in the fixtures repository seem to be getting read by my browser as video mime types. The screencap here is from my Firefox/Mac info window for the Calon_Lan_-_Various_artists.ogg file, but the discrepancy of audio files getting declared as video/--- is the same for the Mahler Symphony No. 3 files as well, e.g. the CD1 at medium bitrate. They play just fine in my browser, but when I try to use them in a manifest, Universal Viewer throws a JS error of "unable to determine media type".

Screenshot 2020-05-22 16 11 24

@glenrobson
Copy link
Member

I think the video mime type is OK. The format of Calon Lan is OGG which can be a video format but in this case only has an audio stream. The CD1 also looks OK as the is a mp4 format which can be both a video and or audio. We could convert them to a straight audio format like wav or mp3 but they should work with the UV.

Ill leave this open until we find out why it isn't working in the UV as it still may be an issue with fixtures.

Running curl on the Calon Lan recording it has:

content-type: video/ogg

and for the CD1 is:

video/mp4

I was worried that s3 wasn't reporting the content type but it looks like it is.

@glenrobson glenrobson self-assigned this May 22, 2020
@triplingual
Copy link
Author

New findings: If I note https://fixtures.iiif.io/audio/indiana/mahler-symphony-3/CD1/high/320Kbps.mp4 in the manifest as video/mp4, UV will render it. But then I have —I believe— a layout and proportions for a video when what I'd like (but also J. Random User might like) to have in order to demo placeholderCanvas is a layout and proportions for an audio player.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants