Closed Tyzer34 closed 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)
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.
Fixed in Flask-Ask 0.8.4
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.