Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 398  / 2 Years ago, fri, march 4, 2022, 5:31:42

I'm running Kubuntu21.10. I've downloaded a music-playing file named 128.m3u. I can get it to play music from a browser, e.g., Firefox, by accessing it via "Open File'. How can I turn it into a URL? I've tried things like file://paul/Downloads/128.m3u, but I haven't found the right combination. Another way of describing what I need is a URL that provides the equivalent of the "Open File" command in a browser.


I want to turn it into a URL and not just play it directly because I want to install it as an entry in my music player. For that I need a URL.


More From » files

 Answers
3

Drag and Drop


You can open a file in Firefox by simply dragging and dropping the file in an open Firefox new tab. Depending on the type of the file, it may or may not open in Firefox. For example, dragging and dropping an m3u file in Firefox shows me this window:


enter image description here


The file type m3u is a playlist. The songs in the playlist may be stored locally or in a remote server. You can open the m3u file using the default mp3 player app installed in your computer.


File Open Dialogue


You can use the keyboard shortcut Ctrl+O to get the file open dialogue in Firefox. From there you can navigate to the Downloads folder and select the the file 128.m3u. Once again Firefox can't open this file and shows me the dialogue window pictured above.


Type out the URL


File URLs are prefixed with file://. However you need to specify the full path of the file. Since the full path starts with /, the prefix is file:///. In your case the file URL is:


file:///home/paul/Downloads/128.m3u

Note, file and folder names are case sensitive in Ubuntu. Once again Firefox prompts me to open the file in a media player.


Hope this helps


[#687] Sunday, March 6, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
saucdisr

Total Points: 4
Total Questions: 102
Total Answers: 117

Location: Ecuador
Member since Thu, Jun 4, 2020
4 Years ago
saucdisr questions
Tue, May 10, 22, 00:19, 2 Years ago
Mon, Jul 4, 22, 13:04, 2 Years ago
Sat, May 28, 22, 08:41, 2 Years ago
Wed, Mar 22, 23, 13:40, 1 Year ago
;