Skip to content

How to monitor the start and end of audio playback #22

Open
@coderInwind

Description

@coderInwind

onended It is not accurate to judge the end of long audio playback,I solved the problem by counting bytes in onended. Is there an easier way?The audio starts playing and I can't think of a way to listen

Activity

puzzle9

puzzle9 commented on Mar 4, 2025

@puzzle9

我是采用
收到了第一个音频流标记开始
再收到结束时候 返回了音频时长
再根据 onended 中的 buffer.duration 进行判断处理的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

      Participants

      @puzzle9@coderInwind

      Issue actions

        How to monitor the start and end of audio playback · Issue #22 · samirkumardas/pcm-player