Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Audio File Streaming in Android not working one android 2.3

I am working on audio streaming on android for soundcloud audio using media player , it is working on android 4.x and above devices but not working less than 4.0 like 2.3.3 and 2.2

Any other solution for streaming in android ?

stream url for sound cloud:

https://api.soundcloud.com/tracks/81302334/stream?client_id=API_KEY_FOR_SOUNDCLOUD

like image 865
Mahesh Avatar asked Oct 22 '22 16:10

Mahesh


1 Answers

Media player in android <4.x supports only HTTP and 4.x n above support for BOTH http and https , so while using https with older API level, please think over it use http instead of https.

like image 65
Mahesh Avatar answered Oct 29 '22 23:10

Mahesh