android-openslmediaplayer icon indicating copy to clipboard operation
android-openslmediaplayer copied to clipboard

Streaming Music with HTTPS Source

Open sujewan opened this issue 9 years ago • 4 comments
trafficstars

HI,

I am using openslMediaplayer into my Music Application in Android. If I trying to streaming a song (from https url), is not start to play.

Please help me out

sujewan avatar Jun 01 '16 11:06 sujewan

Hi. Unfortunately network source audio playback won't work on Android 5.0 or later. It may be a bug (or... I guess it's even an undocumented limitation) of the Android's OpenSL implementation.

Related issues:

  • #9

h6ah4i avatar Jun 02 '16 14:06 h6ah4i

URI data locator

OpenSL ES for Android can only use the URI data locator with MIME data format, and only for an audio player. You cannot use this data format for an audio recorder. It supports http: and file: schemes. It does not support other schemes, such as https:, ftp:, or content:.

We have not verified support for rtsp: with audio on the Android platform.

[https://developer.android.com/ndk/guides/audio/opensl-for-android.html]

sujewan avatar Jul 06 '16 08:07 sujewan

@sujewan Hi. This library do not use audio recorder and still not able to play http protocol data source (on lollipop or later). I believe it is a bug of Android platform because Google's official ndk-audio app also cannot play any files over the internet.

h6ah4i avatar Jul 09 '16 03:07 h6ah4i

I would like to ask if this library currently supports streaming music over the internet?

LynkKid avatar Feb 27 '20 07:02 LynkKid