MozillaZine


opus file missing in accept audio/file supported

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

Post Posted June 12th, 2022, 7:35 am

Seamonkey can play opus file but it not show in input file accept audio/file supported.
A developper can add it?

therube

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

Post Posted June 15th, 2022, 8:25 am

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: 742
Joined: June 12th, 2008, 9:02 am

Post Posted June 15th, 2022, 9:30 am

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.

therube

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

Post Posted June 15th, 2022, 9:47 am

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: 742
Joined: June 12th, 2008, 9:02 am

Post Posted June 15th, 2022, 10:42 am

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.

therube

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

Post Posted June 15th, 2022, 12:57 pm

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: 742
Joined: June 12th, 2008, 9:02 am

Post Posted June 15th, 2022, 1:33 pm

Firefox work fine without modify OS end:
accept="video/*,audio/*" filter media .opus fine.
I thing it is a SeaMonkey problem.

Diamanti
 
Posts: 742
Joined: June 12th, 2008, 9:02 am

Post Posted June 15th, 2022, 9:46 pm

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".

therube

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

Post Posted June 21st, 2022, 9:13 am

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: 742
Joined: June 12th, 2008, 9:02 am

Post Posted June 22nd, 2022, 1:05 pm


therube

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

Post Posted June 23rd, 2022, 10:00 am

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

Return to SeaMonkey Features


Who is online

Users browsing this forum: No registered users and 1 guest