Tyzer34 / plexMusicPlayer

Playback music with Alexa from your Plex Server!
https://medium.com/@Tyzer34/plex-alexa-the-perfect-wedding-38b14b41faf0#.b71cd6lsn
GNU General Public License v3.0
35 stars 19 forks source link

Resuming playback failure #2

Closed Tyzer34 closed 7 years ago

Tyzer34 commented 7 years ago

Resuming the song, restarts the song currently being played. Also, due to the memory inconsistency problem, it sometimes returns a NullType object, which is not yet handled.

Tyzer34 commented 7 years ago

Paused time can be requested using:

from flask import request
@ask.on_playback_stopped()
def stopped():
    offset = request.json['context']['AudioPlayer']['offsetInMilliseconds']
    queue.current.set_offset(offset)
    print("Playback stopped at %s milliseconds" % offset)
Tyzer34 commented 7 years ago

Returning the offset in the response, as shown here does not allow the stream to start from that offset. Instead, the stream just does not play anymore.

Tyzer34 commented 7 years ago

https://forums.developer.amazon.com/questions/52441/audio-streaming-offset-is-not-working.html

Tyzer34 commented 7 years ago

Fixed in Flask-Ask 0.8.4