opus file missing in accept audio/file supported

Discussion of features in Seamonkey
Post Reply
Diamanti
Posts: 778
Joined: June 12th, 2008, 9:02 am

opus file missing in accept audio/file supported

Post by Diamanti »

Seamonkey can play opus file but it not show in input file accept audio/file supported.
A developper can add it?
User avatar
therube
Posts: 21685
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: opus file missing in accept audio/file supported

Post by therube »

but it not show in input file accept audio/file supported
I'm not understanding? Explain further?

https://opus-codec.org/examples/
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
Diamanti
Posts: 778
Joined: June 12th, 2008, 9:02 am

Re: opus file missing in accept audio/file supported

Post by Diamanti »

I save "/static/examples/ehren-paper_lights-96.opus" locally.
I set
<input type="file" accept=""video/*,audio/*,video">
the opus file not show locally, but it is playlable by audio tag.
User avatar
therube
Posts: 21685
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: opus file missing in accept audio/file supported

Post by therube »

Are you speaking of Composer (& having a "player" display on a web page)?

Code from "examples":

Code: Select all

<div class="example">
	<p>Paper Lights by <a href="http://magnatune.com/artists/ehren">Ehren Starks</a>, encoded at 96 kb/s</p>
	<audio src="/static/examples/ehren-paper_lights-96.opus" controls="controls" class=" __noscriptObjectPatchMe__" style="" autoplay="">
		Your browser does not support the audio element
	</audio>
	<a href="https://creativecommons.org/licenses/by-nc-sa/1.0/">
		<img src="https://i.creativecommons.org/l/by-nc-sa/1.0/80x15.png" alt="CC-BY-NC-SA">
	</a>
	<p>Playback should work in Firefox or Chrome.</p>
</div>
the opus file not show locally, but it is playlable by audio tag
I'm still not understanding what you mean by that?


If I save that (.opus) file locally, take that code & minimize it, saving it as opus.html:

Code: Select all

	<audio src="ehren-paper_lights-96.opus" controls="controls" class=" __noscriptObjectPatchMe__" style="" autoplay="">
	</audio>
Then I load the ("web page") opus.html... I get a player & (opus) music.
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
Diamanti
Posts: 778
Joined: June 12th, 2008, 9:02 am

Re: opus file missing in accept audio/file supported

Post by Diamanti »

Code: Select all

<div class="example">
   <p>Paper Lights by <a href="http://magnatune.com/artists/ehren">Ehren Starks</a>, encoded at 96 kb/s</p>
	Load a opus file from local<input type="file" accept="video/*,audio/*" onchange="var a=document.querySelector('audio');a.src=this.files[0].name;a.play();">
	<br>
   <audio src="" controls="controls" class=" __noscriptObjectPatchMe__" style="" autoplay="">
      Your browser does not support the audio element
   </audio>
   <a href="https://creativecommons.org/licenses/by-nc-sa/1.0/">
      <img src="https://i.creativecommons.org/l/by-nc-sa/1.0/80x15.png" alt="CC-BY-NC-SA">
   </a>
   <p>Playback should work in Firefox or Chrome.</p>
</div>
When browse file, "Video Files", "Audio Files" and "All Supported Files" not have opus visible. You have to select "All Files" but opus is actually supported.
User avatar
therube
Posts: 21685
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: opus file missing in accept audio/file supported

Post by therube »

Oh, you mean File | Open.
Isn't that dialog going to be presented (along with the "types"; video, audio, ...) by the OS itself?

In my case (Win7), I have; All, HTML, Text, Image, XML.

So if you have "Audio", I'd think, on the OS end, you could modify the definition of "Audio" to include .opus ?
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
Diamanti
Posts: 778
Joined: June 12th, 2008, 9:02 am

Re: opus file missing in accept audio/file supported

Post by Diamanti »

Firefox work fine without modify OS end:
accept="video/*,audio/*" filter media .opus fine.
I thing it is a SeaMonkey problem.
Diamanti
Posts: 778
Joined: June 12th, 2008, 9:02 am

Re: opus file missing in accept audio/file supported

Post by Diamanti »

confirming the file "filepicker.properties" in "omni.ja" have:
audioFilter=*.aac; *.aif; *.flac; *.iff; *.m4a; *.m4b; *.mid; *.midi; *.mp3; *.mpa; *.mpc; *.oga; *.ogg; *.ra; *.ram; *.snd; *.wav; *.wma
where ".opus" is missing.
It should be added ".opus" in "filepicker.properties" "audioFilter".
User avatar
therube
Posts: 21685
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: opus file missing in accept audio/file supported

Post by therube »

OK.
FF (101) added .webp & .opus compared to SeaMonkey.

imageFilter=*.jpe; *.jpg; *.jpeg; *.gif; *.png; *.bmp; *.ico; *.svg; *.svgz; *.tif; *.tiff; *.ai; *.drw; *.pct; *.psp; *.xcf; *.psd; *.raw; *.webp
audioFilter=*.aac; *.aif; *.flac; *.iff; *.m4a; *.m4b; *.mid; *.midi; *.mp3; *.mpa; *.mpc; *.oga; *.ogg; *.opus; *.ra; *.ram; *.snd; *.wav; *.wma


And I'll take it that it would be the web page itself that specifies what, if any, "filter" is loaded?
(Which must be why I only saw the filter options I mentioned above.)


File a bug [against SeaMonkey] (bugzilla.mozilla.org) & see if it gets picked up.

Bug 1619197 Show .opus files with audio/* filter in file upload
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
Diamanti
Posts: 778
Joined: June 12th, 2008, 9:02 am

Re: opus file missing in accept audio/file supported

Post by Diamanti »

User avatar
therube
Posts: 21685
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: opus file missing in accept audio/file supported

Post by therube »

Sample site, https://vocaroo.com/upload (click, Upload Audio File)

SeaMonkey 2.53.14 beta 1 pre, 20220621210003

shows... ... opus ... :-).
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
Post Reply