FAQ  •  Register  •  Login

Mediabrowser Profile Selection

<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Mon Dec 14, 2015 4:41 am

Mediabrowser Profile Selection

Zip, how does one select a different application-profile?
Currently Mediabrowser on the PC issues GET...profile=flv_player, whereas on both the IPAD and Android it issues GET...profile=ios.

I would like to have a different profile used for Android, but using detection of <User-Agent>.*Android.*</User-Agent> is being ignored.
I would expect the default profile=ios to be used by the GET only if there is no application-profile with a matching User-Agent.

If this is not possible, where in the code can I find the logic that decides to use what profile= to set so I can alter it to profile=Android for Android devices?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Dec 14, 2015 7:16 pm

Re: Mediabrowser Profile Selection

It's inside the javaScript code, based on User-Agent. You won't be able to change that easily, as the code is minified.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Tue Dec 15, 2015 2:03 pm

Re: Mediabrowser Profile Selection

zip wrote:It's inside the javaScript code, based on User-Agent. You won't be able to change that easily, as the code is minified.

Easiest mod I ever made! Unzip jar,extract js, edit, delete ||ifAndroid(), add ifAndroid()?"android":, save js, zip into jar. Voila!!
Attachments
MediaBrowser-1.5.1-4.js
Modified to add android profile
(407.22 KiB) Downloaded 376 times

Return to Transcoding

Who is online

Users browsing this forum: No registered users and 9 guests

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