Page 1 of 1
Need Help: MediaBrowser.htm page

Posted:
Thu Sep 06, 2012 8:43 pm
by Angelnero
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!
Re: Need Help: MediaBrowser.htm page

Posted:
Thu Sep 06, 2012 8:47 pm
by will
installdir/libs/serviio-media-browser.jar
Re: Need Help: MediaBrowser.htm page

Posted:
Thu Sep 06, 2012 8:55 pm
by Angelnero
You're a god. Thanks so much. I must've wasted hours looking for this.
Re: Need Help: MediaBrowser.htm page

Posted:
Thu Sep 06, 2012 10:02 pm
by Angelnero
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!
Re: Need Help: MediaBrowser.htm page

Posted:
Fri Sep 07, 2012 6:55 am
by will
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.
Re: Need Help: MediaBrowser.htm page

Posted:
Fri Sep 07, 2012 5:05 pm
by Angelnero
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.
Re: Need Help: MediaBrowser.htm page

Posted:
Sun Sep 09, 2012 10:49 pm
by zip
Cool, I'd add - make sure to clean your browser's cache to see your changes, just to be sure.