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

check playback_status() #195

Open
zablah opened this issue Oct 29, 2019 · 0 comments
Open

check playback_status() #195

zablah opened this issue Oct 29, 2019 · 0 comments

Comments

@zablah
Copy link

zablah commented Oct 29, 2019

Issue Report

error when trying to check music playback_status()

Description

I'm trying to check the playing status using playback_status() method but I got the following error:
org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
### I need to know when my music is done immediately

Environment details

  • OS (lsb_release -a):
No LSB modules are available.
Distributor ID:	Raspbian
Description:	Raspbian GNU/Linux 8.0 (jessie)
Release:	8.0
Codename:	jessie
Software Version
python-omxplayer-wrapper 0.3.2
python-dbus (dpkg -s python-dbus) 1.2.0
python (python --version) 3.4.2
omxplayer (omxplayer --version) dfea8c9 [master]

Example use case

try:
     if  self.player.playback_status() == "Playing":
          print("playing...")
      else:
         print("not plying")           
except Exception as e:
    print (e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant