Skip to content

About WebAudioPlugin Support for Android 4.1.2 #261

Open
@simongcc

Description

@simongcc

Recently, I am using SoundJS to create a game and need to support Android 4.1.2
However, I found that although Android 4.1.2 Android Browser can play mp3, WebAudioPlugin give it a false mainly because
the current checking method is aimed for latest window.AudioContext and the canPlayType is also different in 4.1.2, it is audio/mpeg instead of audio/mp3 nowadays so it does not give a true when checking mp3.

I wonder if it is a good idea to add window.audio in the checking and add mp3: 'mpeg' in the EXTENSION_MAP for a compatibility purpose?

updated notes:
I found that only add mp3: 'mpeg' that the HTMLAudioPlugin can support to play mp3 in Android 4.1.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions