Hi all.
I was so bold to actually rewrite the algo. that is used when automatically choosing an audio track on channel change.
This algo is now used in both rec. TV and on live TV.
We have 2 settings in tvplugin.
"prefer ac3" default = false
"prefer AudioType Over Language" default = true
+ a list of languages.
This list of lang. is a prioritized list, meaning that the one on the top is the one that is being prioritized.
So u can actually decide which lang's to have a bigger prio. U just drag the language up or down in the list.
U can always edit mediaportal.xml if u dont know how to do this in the GUI.
also liveTV and rec. TV both obey these above settings.
ex. on some scenarios.
disney channel.
mpeg1:swe
mpeg1:dan
mpeg1:nor
ac3:eng
preferac3=yes
languages "dan;eng"
preferAudioTypeOverLang=yes
selected audio is: ac3:eng
-----------
disney channel.
mpeg1:swe
mpeg1:dan
mpeg1:nor
ac3:eng
preferac3=yes
languages "dan;eng"
preferAudioTypeOverLang=no
selected audio is: mpeg1:dan
-------------
disney channel.
mpeg1:swe
mpeg1:dan
mpeg1:nor
ac3:eng
preferac3=yes
languages "eng;dan"
preferAudioTypeOverLang=yes
selected audio is: mpeg1:dan
-------------
disney channel.
mpeg1:swe
mpeg1:fin
mpeg1:nor
ac3:dan
preferac3=no
languages "dan;eng"
preferAudioTypeOverLang=yes
selected audio is: ac3:dan
-------------
disney channel.
ac3:swe
ac3:fin
ac3:nor
ac3:dan
preferac3=yes
languages "nor;swe"
preferAudioTypeOverLang=yes
selected audio is: ac3:nor
-------------
disney channel.
ac3:swe
ac3:fin
ac3:nor
ac3:dan
preferac3=yes
languages "ger;tur"
preferAudioTypeOverLang=yes
selected audio is: ac3:swe (no matching lang. found - choose 1st audio track then)
I hope this gives an idea on the algo.
U need 2 both update tvserver, tv client and MP itself. (them all).
If I forgot some scenarios plz post them and I will try and answer them.
/gibman
I was so bold to actually rewrite the algo. that is used when automatically choosing an audio track on channel change.
This algo is now used in both rec. TV and on live TV.
We have 2 settings in tvplugin.
"prefer ac3" default = false
"prefer AudioType Over Language" default = true
+ a list of languages.
This list of lang. is a prioritized list, meaning that the one on the top is the one that is being prioritized.
So u can actually decide which lang's to have a bigger prio. U just drag the language up or down in the list.
U can always edit mediaportal.xml if u dont know how to do this in the GUI.
also liveTV and rec. TV both obey these above settings.
ex. on some scenarios.
disney channel.
mpeg1:swe
mpeg1:dan
mpeg1:nor
ac3:eng
preferac3=yes
languages "dan;eng"
preferAudioTypeOverLang=yes
selected audio is: ac3:eng
-----------
disney channel.
mpeg1:swe
mpeg1:dan
mpeg1:nor
ac3:eng
preferac3=yes
languages "dan;eng"
preferAudioTypeOverLang=no
selected audio is: mpeg1:dan
-------------
disney channel.
mpeg1:swe
mpeg1:dan
mpeg1:nor
ac3:eng
preferac3=yes
languages "eng;dan"
preferAudioTypeOverLang=yes
selected audio is: mpeg1:dan
-------------
disney channel.
mpeg1:swe
mpeg1:fin
mpeg1:nor
ac3:dan
preferac3=no
languages "dan;eng"
preferAudioTypeOverLang=yes
selected audio is: ac3:dan
-------------
disney channel.
ac3:swe
ac3:fin
ac3:nor
ac3:dan
preferac3=yes
languages "nor;swe"
preferAudioTypeOverLang=yes
selected audio is: ac3:nor
-------------
disney channel.
ac3:swe
ac3:fin
ac3:nor
ac3:dan
preferac3=yes
languages "ger;tur"
preferAudioTypeOverLang=yes
selected audio is: ac3:swe (no matching lang. found - choose 1st audio track then)
I hope this gives an idea on the algo.
U need 2 both update tvserver, tv client and MP itself. (them all).
If I forgot some scenarios plz post them and I will try and answer them.
/gibman