hobbyquaker / lgtv2

Control LG WebOS TV using node.js :tv:
MIT License
332 stars 45 forks source link

eArc Connected Sound Bar Volume #46

Open Luke240 opened 1 year ago

Luke240 commented 1 year ago

It seem as though when an eArc sound bar is connected to the tv I'm unable to control its volume, aside from mute. When the sound bar is not connected though I'm able to control as expected.

crissmil commented 1 year ago

same here. @Luke240 did u find anything about this issue?

asturel commented 1 year ago

Just run into the same issue, used ls-monitor to debug which luna call happen when I increase/decrease the volume via MR:

17454.780 TX call 97 com.webos.platformstarfish (l2iPJwg6) com.webos.service.audio (JGZ7eyNQ) (null) /master/volumeUp «{}»

so we can use ssap://audio/volumeUp ssap://audio/volumeDown ssap://audio/getVolume also get called when volume adjusted.

{
        "virtualService": "audio",
        "version": 1,
        "methods": [
                {
                        "path": "/getVolume",
                        "provider": "com.webos.service.audio/master/getVolume"
                },
                {
                        "path": "/setVolume",
                        "provider": "com.webos.service.audio/master/setVolume"
                },
                {
                        "path": "/volumeUp",
                        "provider": "com.webos.service.audio/master/volumeUp"
                },
                {
                        "path": "/volumeDown",
                        "provider": "com.webos.service.audio/master/volumeDown"
                },
                {
                        "path": "/getMute",
                        "provider": "com.webos.service.apiadapter/audio/getMute"
                },
                {
                        "path": "/setMute",
                        "provider": "com.webos.service.apiadapter/audio/setMute"
                },
                {
                        "path": "/getStatus",
                        "provider": "com.webos.service.apiadapter/audio/getStatus"
                },
                {
                        "path": "/changeSoundOutput",
                        "provider": "com.webos.service.apiadapter/audio/changeSoundOutput"
                },
                {
                        "path": "/getSoundOutput",
                        "provider": "com.webos.service.apiadapter/audio/getSoundOutput"
                }
        ]
}
{
        "service": "com.webos.service.audio",
        "methods": [
                {
                        "path": "/tv/setOffsetDelay",
                        "description": "Set av sync delay",
                        "requiredPermissions": [
                                "CONTROL_AUDIO"
                        ]
                },
                {
                        "path": "/master/getVolume",
                        "description": "Get the volume.",
                        "requiredPermissions": [
                                "CONTROL_AUDIO"
                        ]
                },
                {
                        "path": "/master/setVolume",
                        "description": "Set the volume.",
                        "requiredPermissions": [
                                "CONTROL_AUDIO"
                        ]
                },
                {
                        "path": "/master/volumeUp",
                        "description": "Increase the volume.",
                        "requiredPermissions": [
                                "CONTROL_AUDIO"
                        ]
                },
                {
                        "path": "/master/volumeDown",
                        "description": "Decrease the volume.",
                        "requiredPermissions": [
                                "CONTROL_AUDIO"
                        ]
                }
        ]
}
{
        "service": "com.webos.service.btaudiosnk",
        "methods": [
                {
                        "path": "/open",
                        "description": "Enable BT Sound Share feature",
                        "requiredPermissions": [
                                "CONTROL_BLUETOOTH"
                        ]
                },
                {
                        "path": "/close",
                        "description": "Disable BT Sound Share feature",
                        "requiredPermissions": [
                                "CONTROL_BLUETOOTH"
                        ]
                },
                {
                        "path": "/getState",
                        "description": "Get status of BT devices",
                        "requiredPermissions": [
                                "CONTROL_BLUETOOTH"
                        ]
                },
                {
                        "path": "/disconnect",
                        "description": "To disconnect the bluetooth device connected to TV",
                        "requiredPermissions": [
                                "CONTROL_BLUETOOTH"
                        ]
                }
        ]
}