FAQ  •  Register  •  Login

How to specify Application Profile

<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sun May 10, 2015 3:04 am

How to specify Application Profile

When using Mediabrowser on my Android, Serviio defaults to using the ios profile.
  Code:
2015-05-10 14:56:37,375 DEBUG [CDSRetrieveMediaServerResource] GET http://192.168.1.10:23424/cds/resource/12870/COVER_IMAGE?profile%3Dios%26authToken%3D5772239e6c4640e0b5148f6814d45356%26ext%3D.jpg HTTP/1.1, headers = [host: 192.168.1.10:23424,connection: keep-alive,accept: image/webp,*/*;q=0.8,user-agent: Mozilla/5.0 (Linux; Android 4.1.1; M7 Build/JRO03H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.111 Safari/537.36,referer: http://192.168.1.10:23424/mediabrowser/,accept-encoding: gzip, deflate, sdch,accept-language: en-US,en;q=0.8]
2015-05-10 14:56:37,376 DEBUG [CDSRetrieveMediaServerResource] Creating client with id '192.168.1.22'
2015-05-10 14:56:37,376 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.22, Profile=iOS'

I need a custom profile for android 4.1.1 on my Device (Android 4.1.1; M7) since applehttp fails when using ios.

I added Detect to the application profile but it was ignored.
  Code:
   <Profile id="android" name="Android" extendsProfileId="1" alwaysEnableTranscoding="true" selectable="false">
      <Detection>
         <HttpHeaders>
            <!-- any Android eg: user-agent: Mozilla/5.0 (Linux; Android 4.1.1; M7 Build/JRO03H) -->
            <User-Agent>(.*Android.*)</User-Agent>
         </HttpHeaders>
      </Detection>


How do I specify a custom profile to be used with my 4.1.1 device just like I can specify the profile to be used with my TV?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon May 11, 2015 10:33 pm

Re: How to specify Application Profile

It's hardcoded in the JavaScript application. So no way to change that.
<<

jart352015yup

Streaming enthusiast

Posts: 35

Joined: Fri Apr 03, 2015 12:49 am

Post Tue Jun 02, 2015 8:46 am

Re: How to specify Application Profile (Android)

seen your code... wonder if it was ignored because of syntax. no parenthesis in the user agent area

I got my profile to be seen and recognized. here ill post of on here for you to look at.

<Profile id="Android" name="ServiioAndroid" extendsProfileId="1" >
<Detection>
<HttpHeaders>
<User-Agent>.*ANDROID.*</User-Agent>
</HttpHeaders>
</Detection>

<Transcoding>
<Video targetContainer="mpegts" targetVCodec="h264" maxHeight="720" maxVBitrate="2500" targetACodec="mp3" forceStereo="true" aSamplerate="44100" >
<Matches container="*" />
</Video>
<Audio targetContainer="mp3">
<Matches container="flac" />
<Matches container="ogg" />
<Matches container="lpcm" />
<Matches container="adts" />
<Matches container="asf" />
</Audio>
</Transcoding>

<OnlineTranscoding>
<!-- NOTE: Other rules are inherited from profile 1 -->
<Video targetContainer="mpegts" targetVCodec="h264" maxHeight="720" maxVBitrate="2500" targetACodec="mp3" forceStereo="true" aSamplerate="44100" >
<Matches container="*" />
</Video>
</OnlineTranscoding>
</Profile>


let me know if that helps

Return to Transcoding

Who is online

Users browsing this forum: Google [Bot] and 21 guests

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