Save your radio station to custom VLC app.


Ok, a bit of a nerdy one today but if you’ve ever listened to a radio stream from a local radio station’s website, you may have encountered that the stream is a little dodgy and cuts in and out. So I decided to see if I could extract the actual audio stream link and feed it into a customised VLC application as a shortcut on my taskbar directly to the radio station feed.

If you’ve ever accidentally bumped F12 while browsing in Chrome and had the developer tools pop up, here’s an example of something all that scary-looking code can actually achieve.

Step 1: Find the Stream URL

1. Visit your local radio station's website.

2. Right-click the page and select "Inspect" or press `F12` to open Developer Tools.

3. Click the "Network" tab and filter by “Media”.

4. Play the radio stream and look for a `.m3u8` file.

5. Right-click the file and copy the link address.

You may need to strip out some extra guff at the end like the session IDs. In this example, my link went from:
https://ais-sa1.streamon.fm/7657_128k.aac/playlist.m3u8?listeningSessionID=651168f00072bb5b_4443055_9nbNF6YY_MjE2LjIzNS44OS4xNzg6ODA!_000000j5TIY&downloadSessionID=0&listenerId=esTrackblock0373497&aw_0_1st.playerid=esPlayer&aw_0_1st.skey=1700082847

To:
https://ais-sa1.streamon.fm/7657_128k.aac/playlist.m3u8

Step 2: Create a VLC Shortcut

1. Find where VLC Media Player is installed on your PC, usually under "C:\Program Files\VideoLAN\VLC".

2. Right-click `vlc.exe` and choose "Send to > Desktop (create shortcut)".

Step 3: Modify the Shortcut

1. Right-click the new desktop shortcut and select "Properties".

2. In the "Target" field, add a space after the quotation mark and paste the `.m3u8` URL.

3. It should look like this:

"C:\Program Files\VideoLAN\VLC\vlc.exe" "your_stream_url.m3u8"

4. Click "Apply" and then "OK".

Step 4: Pin to Taskbar

1. Right-click the VLC shortcut on your desktop.

2. Select "Pin to taskbar".

Step 5: Enjoy Your Local Tunes!

And here it is running, I changed the shortcut icon to the radio station’s logo and it even shows the current track name in the playlist! Awwwww yeah!