Hello,
I am having here a little confusing issue. I run mopidy 3.2.0 on Raspi 4.
If I use playback.seek() in my code the command playback.stop() doesnt work even that playback.get_state() says playback is stopped. Also in the debug output I see only my output from playback state but no futher activities:
INFO 2021-07-25 14:38:17,363 [2718:Dummy-8] mopidy_figlio.frontend
Core Playback State:stopped
If I dont use playback.seek() and start playback with playback.play() and then stop with playback.stop() it works and I see this in the debug:
0:00:12.258675379 2359 0xb2c287c0 WARN alsa gstalsasink.c:1101:gst_alsasink_delay:<alsasink0> snd_pcm_delay returned negative delay
DEBUG 2021-07-25 14:01:03,448 [2359:MainThread] mopidy.audio.gst
Got STATE_CHANGED bus message: old=GST_STATE_PLAYING new=GST_STATE_PAUSED pending=GST_STATE_NULL
DEBUG 2021-07-25 14:01:03,455 [2359:Audio-2] mopidy.audio.gst
Changing state to GST_STATE_NULL: result=GST_STATE_CHANGE_SUCCESS
DEBUG 2021-07-25 14:01:03,456 [2359:Core-6] mopidy.core.playback
Changing state: playing -> stopped
DEBUG 2021-07-25 14:01:03,457 [2359:Core-6] mopidy.core.playback
Triggering playback state change event
DEBUG 2021-07-25 14:01:03,457 [2359:Core-6] mopidy.listener
Sending playback_state_changed to CoreListener: {'old_state': 'playing', 'new_state': 'stopped'}
INFO 2021-07-25 14:01:03,459 [2359:Dummy-8] mopidy_figlio.frontend
Core Playback State:stopped
I already checked code from Mopidy-Autoplay which is doing basically the same and I dont see what I am doing wrong in my code.
I would be happy if someone may can help me to fix this or if this is a real bug in mopidy.
Deps and config will follow and if needed I can provide full debug if wanted.
Thanks
Mike
################# Deps ######################
pi@musicpy4:~ $ mopidy deps
Executable: /usr/local/bin/mopidy
Platform: Linux-5.10.17-v7l±armv7l-with-debian-10.9
Python: CPython 3.7.3 from /usr/lib/python3.7
Mopidy: 3.2.0 from /usr/local/lib/python3.7/dist-packages
requests: 2.21.0 from /usr/lib/python3/dist-packages
setuptools: 40.8.0 from /usr/lib/python3/dist-packages
Pykka: 3.0.1 from /usr/local/lib/python3.7/dist-packages
importlib-metadata: 4.5.0 from /usr/local/lib/python3.7/dist-packages
zipp: 3.4.1 from /usr/local/lib/python3.7/dist-packages
typing-extensions: 3.10.0.0 from /usr/local/lib/python3.7/dist-packages
tornado: 6.1 from /usr/local/lib/python3.7/dist-packages
mopidy-figlio: 0.0.1 from /home/pi/develop/mopidy-figlio
Mopidy: 3.2.0 from /usr/local/lib/python3.7/dist-packages
Pykka: 3.0.1 from /usr/local/lib/python3.7/dist-packages
importlib-metadata: 4.5.0 from /usr/local/lib/python3.7/dist-packages
zipp: 3.4.1 from /usr/local/lib/python3.7/dist-packages
typing-extensions: 3.10.0.0 from /usr/local/lib/python3.7/dist-packages
setuptools: 40.8.0 from /usr/lib/python3/dist-packages
Mopidy-Iris: 3.58.0 from /usr/local/lib/python3.7/dist-packages
Mopidy: 3.2.0 from /usr/local/lib/python3.7/dist-packages
setuptools: 40.8.0 from /usr/lib/python3/dist-packages
Pykka: 3.0.1 from /usr/local/lib/python3.7/dist-packages
importlib-metadata: 4.5.0 from /usr/local/lib/python3.7/dist-packages
zipp: 3.4.1 from /usr/local/lib/python3.7/dist-packages
typing-extensions: 3.10.0.0 from /usr/local/lib/python3.7/dist-packages
GStreamer: 1.14.4.0 from /usr/lib/python3/dist-packages/gi
Detailed information:
Python wrapper: python-gi 3.30.4
Relevant elements:
Found:
uridecodebin
souphttpsrc
appsrc
alsasink
osssink
oss4sink
id3demux
id3v2mux
lamemp3enc
mpegaudioparse
mpg123audiodec
vorbisdec
vorbisenc
vorbisparse
oggdemux
oggmux
oggparse
flacdec
flacparse
shout2send
Not found:
pulsesink
flump3dec
mad
################# Config ###########################
pi@musicpy4:~ $ mopidy config
[core]
cache_dir = /tmp
config_dir = ~/.config/mopidy
data_dir = ~/Music/data
max_tracklist_length = 10000
restore_state = false
[logging]
verbosity = 0
format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n %(message)s
color = false
config_file =
[loglevels]
mopidy_figlio.frontend = info
[audio]
mixer = software
mixer_volume = 5
output = alsasink
buffer_time = 5000
[proxy]
scheme =
hostname =
port =
username =
password =
[Figlio]
enabled = true
[file]
enabled = true
media_dirs =
~/Music|Music
excluded_file_extensions =
.directory
.html
.jpeg
.jpg
.log
.nfo
.pdf
.png
.txt
.zip
show_dotfiles = false
follow_symlinks = false
metadata_timeout = 1000
[http]
enabled = false ; Extension disabled by user config.
[m3u]
enabled = true
base_dir = ~/Music
default_encoding = latin-1
default_extension = .m3u8
playlists_dir = ~/Music
[softwaremixer]
enabled = true
[stream]
enabled = true
protocols =
http
https
mms
rtmp
rtmps
rtsp
metadata_blacklist =
timeout = 5000
[iris]
enabled = false ; Extension disabled by user config.