{"action":"created","issue":{"url":"https://api.github.com/repos/ultrabug/py3status/issues/1312","repository_url":"https://api.github.com/repos/ultrabug/py3status","labels_url":"https://api.github.com/repos/ultrabug/py3status/issues/1312/labels{/name}","comments_url":"https://api.github.com/repos/ultrabug/py3status/issues/1312/comments","events_url":"https://api.github.com/repos/ultrabug/py3status/issues/1312/events","html_url":"https://github.com/ultrabug/py3status/pull/1312","id":305106542,"number":1312,"title":"py3: play sounds with ffplay","user":{"login":"lasers","id":852504,"avatar_url":"https://avatars2.githubusercontent.com/u/852504?v=4","gravatar_id":"","url":"https://api.github.com/users/lasers","html_url":"https://github.com/lasers","followers_url":"https://api.github.com/users/lasers/followers","following_url":"https://api.github.com/users/lasers/following{/other_user}","gists_url":"https://api.github.com/users/lasers/gists{/gist_id}","starred_url":"https://api.github.com/users/lasers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasers/subscriptions","organizations_url":"https://api.github.com/users/lasers/orgs","repos_url":"https://api.github.com/users/lasers/repos","events_url":"https://api.github.com/users/lasers/events{/privacy}","received_events_url":"https://api.github.com/users/lasers/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"ultrabug","id":474389,"avatar_url":"https://avatars3.githubusercontent.com/u/474389?v=4","gravatar_id":"","url":"https://api.github.com/users/ultrabug","html_url":"https://github.com/ultrabug","followers_url":"https://api.github.com/users/ultrabug/followers","following_url":"https://api.github.com/users/ultrabug/following{/other_user}","gists_url":"https://api.github.com/users/ultrabug/gists{/gist_id}","starred_url":"https://api.github.com/users/ultrabug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ultrabug/subscriptions","organizations_url":"https://api.github.com/users/ultrabug/orgs","repos_url":"https://api.github.com/users/ultrabug/repos","events_url":"https://api.github.com/users/ultrabug/events{/privacy}","received_events_url":"https://api.github.com/users/ultrabug/received_events","type":"User","site_admin":false},"assignees":[{"login":"ultrabug","id":474389,"avatar_url":"https://avatars3.githubusercontent.com/u/474389?v=4","gravatar_id":"","url":"https://api.github.com/users/ultrabug","html_url":"https://github.com/ultrabug","followers_url":"https://api.github.com/users/ultrabug/followers","following_url":"https://api.github.com/users/ultrabug/following{/other_user}","gists_url":"https://api.github.com/users/ultrabug/gists{/gist_id}","starred_url":"https://api.github.com/users/ultrabug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ultrabug/subscriptions","organizations_url":"https://api.github.com/users/ultrabug/orgs","repos_url":"https://api.github.com/users/ultrabug/repos","events_url":"https://api.github.com/users/ultrabug/events{/privacy}","received_events_url":"https://api.github.com/users/ultrabug/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-03-14T10:44:51Z","updated_at":"2018-05-01T12:38:56Z","closed_at":"2018-05-01T12:38:52Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/ultrabug/py3status/pulls/1312","html_url":"https://github.com/ultrabug/py3status/pull/1312","diff_url":"https://github.com/ultrabug/py3status/pull/1312.diff","patch_url":"https://github.com/ultrabug/py3status/pull/1312.patch"},"body":"This is similar to `backlight: better xbacklight detection` pull request.\r\n\r\nI was testing sounds in `pomodoro` with `mp3` file.\r\n\r\n* I have `paplay` installed automatically due to `pulseaudio`, `pulseaudio-utils`. This does not play the audio for me. I get this in the terminal:\r\n\r\n    ~~~\r\n    ~/Downloads  $ paplay test.mp3\r\n    Failed to open audio file.\r\n    ~/Downloads $ echo $?\r\n    1\r\n    ~~~\r\n* I did not have `aplay` installed. I tested it anyway. This play the audio okay.\r\n\r\nI think it would be nice if we can avoid `pulseaudio/alsa` stuffs and just use external `ffplay` from `ffmpeg` package that's regularly updated and should be available everywhere just like `paplay` and `aplay`. EDIT: This supports more audio and video formats too.\r\n\r\n```\r\nFFplay is a very simple and portable media player using the FFmpeg libraries\r\nand the SDL library. It is mostly used as a testbed for the various FFmpeg\r\nAPIs.\r\n\r\n-autoexit\r\n    Exit when video is done playing.\r\n\r\n-nodisp\r\n    Disable graphical display.\r\n\r\n-loglevel loglevel\r\n    Set the logging level used by the library\r\n\r\n    panic, 0\r\n        Only show fatal errors which could lead the process to crash, such as\r\n        an assertion failure. This is not currently used for anything.\r\n```\r\n~~EDIT: Should I simplify `if cmd:` too?~~"},"comment":{"url":"https://api.github.com/repos/ultrabug/py3status/issues/comments/385661538","html_url":"https://github.com/ultrabug/py3status/pull/1312#issuecomment-385661538","issue_url":"https://api.github.com/repos/ultrabug/py3status/issues/1312","id":385661538,"user":{"login":"ultrabug","id":474389,"avatar_url":"https://avatars3.githubusercontent.com/u/474389?v=4","gravatar_id":"","url":"https://api.github.com/users/ultrabug","html_url":"https://github.com/ultrabug","followers_url":"https://api.github.com/users/ultrabug/followers","following_url":"https://api.github.com/users/ultrabug/following{/other_user}","gists_url":"https://api.github.com/users/ultrabug/gists{/gist_id}","starred_url":"https://api.github.com/users/ultrabug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ultrabug/subscriptions","organizations_url":"https://api.github.com/users/ultrabug/orgs","repos_url":"https://api.github.com/users/ultrabug/repos","events_url":"https://api.github.com/users/ultrabug/events{/privacy}","received_events_url":"https://api.github.com/users/ultrabug/received_events","type":"User","site_admin":false},"created_at":"2018-05-01T12:38:56Z","updated_at":"2018-05-01T12:38:56Z","author_association":"OWNER","body":"Thank you!"}}
{"actor":{"display_login":"ultrabug"}}