FAQ  •  Register  •  Login

Need Help: MediaBrowser.htm page

<<

Angelnero

Serviio newbie

Posts: 5

Joined: Thu Sep 06, 2012 8:38 pm

Post Thu Sep 06, 2012 8:43 pm

Need Help: MediaBrowser.htm page

I am attempting to locate the source for web page offered when visiting the mediabrowser via web browser; I've given access to some family members and want to drop in some analytic and adsense code (might as well make some money off them enjoying my media). But for the life of me I cannot find any source page (be it htm, asp, php whatever) for the entire mediabrowser site. I've searched my entire server for files that the site calls (such as images and css files) but I come up empty handed.

How is this page built and where o where can I access the source to modify it?

I am a paid pro customer.

Thanks in advance for any and all help!
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Thu Sep 06, 2012 8:47 pm

Re: Need Help: MediaBrowser.htm page

installdir/libs/serviio-media-browser.jar
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

Angelnero

Serviio newbie

Posts: 5

Joined: Thu Sep 06, 2012 8:38 pm

Post Thu Sep 06, 2012 8:55 pm

Re: Need Help: MediaBrowser.htm page

You're a god. Thanks so much. I must've wasted hours looking for this.
<<

Angelnero

Serviio newbie

Posts: 5

Joined: Thu Sep 06, 2012 8:38 pm

Post Thu Sep 06, 2012 10:02 pm

Re: Need Help: MediaBrowser.htm page

Raise your hand if you knew this next question was coming...

... how?

I thought I would be able to edit the .jar file by unzipping it, mod the files, zip it back up and rename .zip to .jar but that causes the Serviio server to bomb out during launch. All I'm trying to do is add g-analytic and g-adsense code snippets to the index.html page so I can monetize my family accessing my media. Simple. But I'm failing on best process to modify the .jar without setting up an entire eclipse or java IDE.

Any help would as always, be awesome.

Thanks!
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Fri Sep 07, 2012 6:55 am

Re: Need Help: MediaBrowser.htm page

Post a detailed log, see my signature, of startup.

I would use something like 7zip and drop the files directly into the jar at the correct location, rather than zipping up a folder structure as there are more ways than one to represent a folder so you might have to be careful your archive utility isn't using the wrong one when you create a zip from a folder structure.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

Angelnero

Serviio newbie

Posts: 5

Joined: Thu Sep 06, 2012 8:38 pm

Post Fri Sep 07, 2012 5:05 pm

Re: Need Help: MediaBrowser.htm page

Will - again thank you for the help.

For anyone looking to modify the MediaBrowser mini-site on a Windows8 PC:

Before you start make sure Serviio is completely shut down.

1) Browse to C:\Program Files\Serviio\lib\
2) Locate the file serviio-media-browser.jar
3) Right-click and open archive (I use 7Zip, so I choose the option 7Zip > Open Archive)
4) Navigate to the Index.html file (\org\serviio\mediabrowser\)
5) Copy the index.html file to your desktop
6) Open index.html with your favorite editor (notepad, notepad++, Dreamweaver) (I prefer notepad++)
7) Modify as needed (in my case I added code for Google Analytics and Google Adsense) saving the file with it's original file name
8) Copy index.html from desktop back into the archive (you should still have the explorer/zip utility window open from Step 3 allowing you to copy the modified file straight into the .jar archive). If you are prompted to overwrite the file, choose yes.
9) Start up Serviio

If all went well you should be able to load up the mediabrowser using your favorite browser (I tested on Chrome and IE10) and you should see your changes active.

Sidenote... if you try to implement G-Adsense like I did, you will need content on the site to drive the ads; I inserted content relevant to the type of ads I wanted to show up and made the text invisible so it wouldn't throw off the design/layout of the page. Seems to be working.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Sep 09, 2012 10:49 pm

Re: Need Help: MediaBrowser.htm page

Cool, I'd add - make sure to clean your browser's cache to see your changes, just to be sure.

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 47 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.