summaryrefslogtreecommitdiff
path: root/smarttv-client/Javascript/Audio.js
blob: 6046c3761e805e9c4f5fbb6561896bd1da003135 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
var Audio =
{
    plugin : null
};

Audio.init = function()
{
    var success = true;
    
    this.plugin = document.getElementById("pluginAudio");
    
    if (!this.plugin)
    {
        success = false;
    }

    return success;
};

Audio.setRelativeVolume = function(delta)
{
    this.plugin.SetVolumeWithKey(delta);
    Display.setVolume( this.getVolume() );

};

Audio.getVolume = function()
{
    alert("Volume : " +  this.plugin.GetVolume());
    return this.plugin.GetVolume();
};