mirror of
https://github.com/DigitalDevices/octonet.git
synced 2023-10-10 13:36:52 +02:00
BrowserTV, audio track select adapted to newer VLC
This commit is contained in:
parent
f5c2d12e28
commit
d672e8c4c3
@ -16,6 +16,7 @@
|
|||||||
var VLCPluginValid = false;
|
var VLCPluginValid = false;
|
||||||
var VLCPlugin;
|
var VLCPlugin;
|
||||||
var RTSPLink = false;
|
var RTSPLink = false;
|
||||||
|
var UseAudioPids = true;
|
||||||
|
|
||||||
if( browserType == "Netscape" )
|
if( browserType == "Netscape" )
|
||||||
{
|
{
|
||||||
@ -35,6 +36,7 @@ if( browserType == "Netscape" )
|
|||||||
if( browserPlatform == "win" )
|
if( browserPlatform == "win" )
|
||||||
{
|
{
|
||||||
if( navigator.plugins[i].version >= "2.0.6.0" ) VLCPluginValid = true;
|
if( navigator.plugins[i].version >= "2.0.6.0" ) VLCPluginValid = true;
|
||||||
|
if( navigator.plugins[i].version >= "2.2.0.0" ) UseAudioPids = false;
|
||||||
}
|
}
|
||||||
else if( browserPlatform == "linux" )
|
else if( browserPlatform == "linux" )
|
||||||
{
|
{
|
||||||
@ -76,7 +78,7 @@ function PlayEvent()
|
|||||||
function SetAudioChannel(ac)
|
function SetAudioChannel(ac)
|
||||||
{
|
{
|
||||||
var vlc = vlcplayer;
|
var vlc = vlcplayer;
|
||||||
if( ac < CurTracks.length ) vlc.audio.track = CurTracks[ac];
|
if( ac < CurTracks.length ) vlc.audio.track = UseAudioPids ? CurTracks[ac] : ac + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
function MuteAudio()
|
function MuteAudio()
|
||||||
|
Loading…
Reference in New Issue
Block a user