Skip to content

audioplayer '.state' produces error #22

@AlkisPis

Description

@AlkisPis

I'm running the 'playerGUI.py' (at https://github.com/mjbrusso/AudioPlayer/blob/master/example/playerGUI.py).
I will not including the whole script here, but only the part in which the error is produced

`

def tooglepause():
    global player, paused
    if not player is None:
        if paused:
            player.resume()
        else:
            player.pause()
            print(player.state) # <<< I have added this check
        paused = not paused
        print(player.state) # <<< I have added this check
    paused = not paused

`

When player.state is excuted, it produces "AttributeError: 'AudioPlayerWindows' object has no attribute 'state'".
According to the documentation, it is suppoesed to show the current playing state (playing, stopped, paused, ...)
What is the problem here?
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions