Skip to content

Inconsistent pausing between iOS and Android #40

@AndreasLymalmMTM

Description

@AndreasLymalmMTM

Problem

The stream onTimebasedPlayerStateChanged emits different results depending on OS, when playing a publication in WebPubAudioOnly format:

  • When calling e.g. next() or previous():
    • Android: the state TimebasedState.loading is emitted.
    • iOS: the state TimebasedState.paused is emitted.
  • When audio files are switched (e.g. from 0001.mp3 to 0002.mp3):
    • Android: no new state (TimebasedState) is emitted.
    • iOS: the state TimebasedState.paused is emitted.

Expected Result

iOS behaves as Android and emits TimebasedState.loading or nothing.

If possible, do not emit TimebasedState.paused in these scenarios. We should be able to know that if TimebasedState.paused is set, it's an action from the user or OS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions