Featured image of post Tune In RPN Radio Update

Tune In RPN Radio Update

Basic webpage for streaming audio from RPN stations




I updated the tune-in website for RPN. This post will detail the changes, what’s new or removed, and how the update went.

MainPage and Mobile-First Design

The main page remains got a few changes, starting with the font face and size. Before the update, the font family forced to check for Proxima Nova and fallback to Arial Nova or other sans serif fonts.

Then I cleaned up my CSS file to make the whole website “mobile-first”.

Now Playing Station Pages

The tune-in or now playing page received most of the update. I’ve broken some of them below:

Back Button

The back button got a lot of love with some logic. At first, the button always takes you to the home (main) page with the <a> tag attribute href="/".

Now, it’s got a javascript code that checks for an open navigation menu, and whether the history came from the tunein.rpnradio.com domain.

1
2
3
4
5
6
7
8
9
function goBack() {
  if (isNavOpen) {
    closeNav();
  } else if (document.referrer == "") {
    window.location.href = "https://tunein.rpnradio.com/";
  } else {
    window.history.back();
  }
}

This logic was finalized when I opened a page link on my iPhone then the back button took me to the previous page - other site.

Now the back button takes you to home page when started with a station page.

The station pages got a navigation menu that resembles the home page. This is to give the listener a continuous audio stream playback whilst needing to change a station.

Note: The navigation drawer will not work on browser back button - as I learned with other sites. The browser just simply go back to the previous page.

Security

The website was also SSL-enabled - HTTPS Everywhere.

This also means that the old stream URLs will not work. Thankfully, the audio servers have secured stream URLs for secure websites.

Open Graph Metadata

Social Media sites are the places where websites get the most referrers. So having metadata for them not just makes the website Facebook- or Twitter-friendly but it is a great addition to how it would look like when shared.

Making the images took waaaaay longer than I expected. I decided to add 3 mockup devices that shows the website on these devices. You can see the share preview below:

Tune In Open Graph Image for Homepage
Facebook Open Graph Preview

Tune In Open Graph Image for Homepage
Twitter Open Graph Preview
Creating the metadata tags was made easy by using Metatags.io.

Site Icons

I went on to also update the website’s favicons, to differentiate tunein to the news website. It now has the Android app icon below:

Tune In Open Graph Image for Homepage
Website Favicon

I replaced the part suggesting other methods to tunein (Zeno app, Radio Garden and our native Android app) with a Google Auto ad.

We all hate ads but this is the only modest way to profit for most websites.

.htaccess to Remove .html

I finally made it to work, shorten the address for site navigation. Instead of showing the full file name:

tunein.rpnradio.com/batac.html
Some rules were added to the .htaccess file to make it
tunein.rpnradio.com/batac

.htaccess file:

RewriteEngine On 
RewriteCond %{HTTPS} off 
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteCond %{THE_REQUEST} /([^.]+)\.html [NC]
RewriteRule ^ /%1 [NC,L,R]
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^ %{REQUEST_URI}.html [NC,L]

I added a subtle footer to the whole website. That’s it. :)

Final Words

This website is another medium for the company’s aim for a greater reach by expanding to Digital Media. In addition to our native apps (which is available for Android - Google Play Store and Huawei App Gallery), the website also serves a means for our audiences to access our stations’ broadcast anytime and anywhere in the world.

You can visit the website here: Tune In — RPN Radio.

You may also want to check my blog post about the RPN Radio App here:
RPN Radio: Streaming App for Android.

Share this:
comments powered by Disqus