Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pause on playbar with line in #106

Open
kvanisterdael opened this issue Sep 25, 2019 · 4 comments
Open

Pause on playbar with line in #106

kvanisterdael opened this issue Sep 25, 2019 · 4 comments
Labels

Comments

@kvanisterdael
Copy link

How can you stop a playbar playing from his Line In? $controller->pause() returns an error:

Uncaught duncan3dc\Sonos\Exceptions\SoapException: UPnPError: 701 in /usr/html/phalcon/vendor/duncan3dc/sonos/src/Devices/Device.php:157 Stack trace: #0 /usr/html/phalcon/vendor/duncan3dc/sonos/src/Speaker.php

@duncan3dc duncan3dc added the bug label Nov 3, 2019
@duncan3dc duncan3dc added question and removed bug labels Nov 17, 2019
@duncan3dc
Copy link
Owner

Hi @kvanisterdael, pause is the correct command to stop line in from playing. I've just tried it on my system now and it worked without issue, are you sure the device is still playing when you pause it? Are you sure you are working with the correct device that is currently streaming from line in?

@christianschneider89
Copy link

christianschneider89 commented Aug 2, 2020

Same here. If input is TV this error occurs (I'm using PHP 7.3.15):

PHP Fatal error: Uncaught duncan3dc\Sonos\Exceptions\SoapException: UPnPError: 701 in /var/www/html/vendor/duncan3dc/sonos/src/Devices/Device.php:157\nStack trace:\n#0 /var/www/html/vendor/duncan3dc/sonos/src/Speaker.php(92): duncan3dc\Sonos\Devices\Device->soap('AVTransport', 'Pause', Array)\n#1 /var/www/html/vendor/duncan3dc/sonos/src/Controller.php(723): duncan3dc\Sonos\Speaker->soap('AVTransport', 'Pause', Array)\n#2 /var/www/html/vendor/duncan3dc/sonos/src/Controller.php(189): duncan3dc\Sonos\Controller->soap('AVTransport', 'Pause')\n#3 /var/www/html/api.php(31): duncan3dc\Sonos\Controller->pause()\n#4 /var/www/html/api.php(171): sonos_stop_all()\n#5 {main}\n thrown in /var/www/html/vendor/duncan3dc/sonos/src/Devices/Device.php on line 157

The playbar has:
Sonos OS: S2
Version: 12.0.1 (Build 58178090)
Hardwareversion: 1.9.1.10-2.2
Serien-ID: A100

When TV is selected, there is no stop button anymore... (but the playbar is playing the TV sound...):
image

Chris

@duncan3dc
Copy link
Owner

Hmm, I wonder if the playbar works with line-in differently to other speakers, I don't have one so it's going to be tricky to solve for me.
But let me poke around my system now I'm on S2 and see if I can find any line-in issues

@christianschneider89
Copy link

I don't have one so it's going to be tricky to solve for me.

If it helps I can set up a linux host in my network for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants