I’m trying to seek a remote mp3 url, but seek returns false, and currently i run out if idea why.
my code triggers the seek command when receiving a trackPlaybackStarted event.
the track urls are modified in the log below due to new user post rules…
2019-10-20 21:28:24,404 DEBUG [749:MainThread] mopidy.listener: Sending stream_changed to AudioListener: {‘uri’: ‘http://archive.org/download/SzilveszteriRadiokabare/Szilveszteri-R
adiokabare-1956.mp3’}
2019-10-20 21:28:24,406 DEBUG [749:Core-7] mopidy.core.playback: Changing state: stopped -> playing
2019-10-20 21:28:24,407 DEBUG [749:Core-7] mopidy.core.playback: Triggering playback state change event
2019-10-20 21:28:24,408 DEBUG [749:Core-7] mopidy.listener: Sending playback_state_changed to CoreListener: {‘old_state’: u’stopped’, ‘new_state’: u’playing’}
2019-10-20 21:28:24,410 DEBUG [749:Core-7] mopidy.core.playback: Triggering track playback started event
2019-10-20 21:28:24,411 DEBUG [749:MpdFrontend-8] mopidy.listener: Sending player to MpdSession: {}
2019-10-20 21:28:24,413 DEBUG [749:Core-7] mopidy.listener: Sending track_playback_started to CoreListener: {‘tl_track’: TlTrack(tlid=4, track=Track(uri=‘tp://archive.org/downloa
d/SzilveszteriRadiokabare/Szilveszteri-Radiokabare-1956.mp3’))}
2019-10-20 21:28:24,443 DEBUG [749:HttpServer] mopidy.http.handlers: Received WebSocket message from 127.0.0.1: u’{“method”:“core.playback.seek”,“params”:{“time_position”:152764},"
jsonrpc":“2.0”,“id”:21}’
2019-10-20 21:28:24,450 DEBUG [749:HttpServer] mopidy.http.handlers: Sent WebSocket message to 127.0.0.1: ‘{“jsonrpc”: “2.0”, “id”: 21, “result”: false}’
2019-10-20 21:28:24,473 DEBUG [749:Dummy-13] mopidy.audio.gst: Got SEGMENT pad event: rate=1.0 format=time start=0 stop=18446744073709551615 position=0
2019-10-20 21:28:24,474 DEBUG [749:Dummy-13] mopidy.audio.actor: Audio event: position_changed(position=0L)
2019-10-20 21:28:24,475 DEBUG [749:Dummy-13] mopidy.listener: Sending position_changed to AudioListener: {‘position’: 0L}
2019-10-20 21:28:24,479 DEBUG [749:MainThread] mopidy.audio.gst: Got TAG bus message: tags={‘album’: [u’Szilveszteri R\xe1di\xf3kabar\xe9 Arch\xedvuma’], ‘comment’: [u’tps://arch
ive.org/details/SzilveszteriRadiokabare’], ‘encoded-by’: [u’Thx 2 Alex (Hungary)’], ‘publisher’: [u’tps://archive.org/details/SzilveszteriRadiokabare’], ‘private-id3v2-frame’: [’
WXXX\x00\x00\x008\x00\x00\x01\xff\xfe\x00\x00_tps://archive.org/details/SzilveszteriRadiokabare’], ‘genre’: [u’Speech’], ‘title’: [u’Szilveszteri R\xe1di\xf3kabar\xe9 (19. december 31.)’], ‘artist’: [u’B\xda\xc9K 19’], ‘container-format’: [u’ID3 tag’]}
2019-10-20 21:28:24,481 DEBUG [749:MainThread] mopidy.audio.actor: Audio event: tags_changed(tags=[‘album’, ‘comment’, ‘private-id3v2-frame’, ‘encoded-by’, ‘publisher’, ‘artist’, ‘genre’, ‘title’, ‘container-format’])
2019-10-20 21:28:24,482 DEBUG [749:MainThread] mopidy.listener: Sending tags_changed to AudioListener: {‘tags’: [‘album’, ‘comment’, ‘private-id3v2-frame’, ‘encoded-by’, ‘publisher’, ‘artist’, ‘genre’, ‘title’, ‘container-format’]}
2019-10-20 21:28:24,488 DEBUG [749:MainThread] mopidy.audio.gst: Got TAG bus message: tags={‘album’: [u’Szilveszteri R\xe1di\xf3kabar\xe9 Arch\xedvuma’], ‘comment’: [u’tps://archive.org/details/SzilveszteriRadiokabare’], ‘nominal-bitrate’: [96000L], ‘encoded-by’: [u’Thx 2 Alex (Hungary)’], ‘has-crc’: [True], ‘publisher’: [u’tps://archive.org/details/SzilveszteriRadiokabare’], ‘private-id3v2-frame’: [‘WXXX\x00\x00\x008\x00\x00\x01\xff\xfe\x00\x00tps://archive.org/details/SzilveszteriRadiokabare’], ‘container-format’: [u’ID3 tag’], ‘genre’: [u’Speech’], ‘title’: [u’Szilveszteri R\xe1di\xf3kabar\xe9 (19. december 31.)’], ‘artist’: [u’B\xda\xc9K 19’], ‘audio-codec’: [u’MPEG-1 Layer 3 (MP3)’], ‘channel-mode’: [u’joint-stereo’]}
i hope it is a valid use case, any hint is welcome.
thanks in advance!