MediaPlayer Url issue Only on Android 6.0.1
up vote
1
down vote
favorite
After Calling the below method The app appears to be stuck on the loading screen and stop responding ,I'm performing my tests on a WiFi network so the connection should not
be the issue. Testing with Android M 6.0.0 works fine, this only occurs
for 6.0.1. Quite annoying, has anybody a hint
fun getMusic() {
mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC)
mediaPlayer.setDataSource(url)
mediaPlayer.prepare()
mediaPlayer.start()
}
My url :http://www.islamicaudio.org/wp-content/uploads/2018/10/2016-07-23-தெளிவு-6-தொழுகையில்-கழா-இருக்கிறதா-islam-in-tamil-mubarak-madani.mp3
this is the Error
java.lang.IllegalStateException
at android.media.MediaPlayer.nativeSetDataSource(Native Method)
at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1080)
at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1041)
at com.codenex.getbug.MainActivity.getMusic(MainActivity.kt:79)
at com.codenex.getbug.MainActivity$onCreate$1.onClick(MainActivity.kt:55)
android url media-player android-6.0.1-marshmallow
add a comment |
up vote
1
down vote
favorite
After Calling the below method The app appears to be stuck on the loading screen and stop responding ,I'm performing my tests on a WiFi network so the connection should not
be the issue. Testing with Android M 6.0.0 works fine, this only occurs
for 6.0.1. Quite annoying, has anybody a hint
fun getMusic() {
mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC)
mediaPlayer.setDataSource(url)
mediaPlayer.prepare()
mediaPlayer.start()
}
My url :http://www.islamicaudio.org/wp-content/uploads/2018/10/2016-07-23-தெளிவு-6-தொழுகையில்-கழா-இருக்கிறதா-islam-in-tamil-mubarak-madani.mp3
this is the Error
java.lang.IllegalStateException
at android.media.MediaPlayer.nativeSetDataSource(Native Method)
at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1080)
at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1041)
at com.codenex.getbug.MainActivity.getMusic(MainActivity.kt:79)
at com.codenex.getbug.MainActivity$onCreate$1.onClick(MainActivity.kt:55)
android url media-player android-6.0.1-marshmallow
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
After Calling the below method The app appears to be stuck on the loading screen and stop responding ,I'm performing my tests on a WiFi network so the connection should not
be the issue. Testing with Android M 6.0.0 works fine, this only occurs
for 6.0.1. Quite annoying, has anybody a hint
fun getMusic() {
mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC)
mediaPlayer.setDataSource(url)
mediaPlayer.prepare()
mediaPlayer.start()
}
My url :http://www.islamicaudio.org/wp-content/uploads/2018/10/2016-07-23-தெளிவு-6-தொழுகையில்-கழா-இருக்கிறதா-islam-in-tamil-mubarak-madani.mp3
this is the Error
java.lang.IllegalStateException
at android.media.MediaPlayer.nativeSetDataSource(Native Method)
at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1080)
at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1041)
at com.codenex.getbug.MainActivity.getMusic(MainActivity.kt:79)
at com.codenex.getbug.MainActivity$onCreate$1.onClick(MainActivity.kt:55)
android url media-player android-6.0.1-marshmallow
After Calling the below method The app appears to be stuck on the loading screen and stop responding ,I'm performing my tests on a WiFi network so the connection should not
be the issue. Testing with Android M 6.0.0 works fine, this only occurs
for 6.0.1. Quite annoying, has anybody a hint
fun getMusic() {
mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC)
mediaPlayer.setDataSource(url)
mediaPlayer.prepare()
mediaPlayer.start()
}
My url :http://www.islamicaudio.org/wp-content/uploads/2018/10/2016-07-23-தெளிவு-6-தொழுகையில்-கழா-இருக்கிறதா-islam-in-tamil-mubarak-madani.mp3
this is the Error
java.lang.IllegalStateException
at android.media.MediaPlayer.nativeSetDataSource(Native Method)
at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1080)
at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1041)
at com.codenex.getbug.MainActivity.getMusic(MainActivity.kt:79)
at com.codenex.getbug.MainActivity$onCreate$1.onClick(MainActivity.kt:55)
android url media-player android-6.0.1-marshmallow
android url media-player android-6.0.1-marshmallow
edited Nov 7 at 6:46
asked Nov 7 at 5:22
Praveen P
708
708
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53183968%2fmediaplayer-url-issue-only-on-android-6-0-1%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password