-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some url with some Api version Not work #4
Comments
ExoPlayer doesn't follow cross-protocol redirects by default. Enable cross-protocol redirects: DefaultHttpDataSourceFactory httpDataSourceFactory =
new DefaultHttpDataSourceFactory(
Util.getUserAgent(context, context.getPackageName()),
null,
DefaultHttpDataSource.DEFAULT_CONNECT_TIMEOUT_MILLIS,
DefaultHttpDataSource.DEFAULT_READ_TIMEOUT_MILLIS,
true/*allowCrossProtocolRedirects*/);
DefaultDataSourceFactory dataSourceFactory = new DefaultDataSourceFactory(
context, httpDataSourceFactory); Play
implementation 'com.google.android.exoplayer:exoplayer-hls:2.11.7'
public class MyFactory extends PlayerService.ComponentFactory {
HlsMediaSource.Factory mHlsMediaSourceFactory;
@Override
public void init(Context context) {
...
mHlsMediaSourceFactory = new HlsMediaSource.Factory(dataSourceFactory);
}
...
}
@Inject
@NonNull
@Override
public MusicPlayer createMusicPlayer(Context context) {
return new ExoMusicPlayer(context, mHlsMediaSourceFactory);
} |
ok you can add it in your SNAPSHOT? we are waiting for further testing |
This repository has added support for |
i Dont know why .. implementation 'com.github.jrfeng.snow:player:master-651f631386-1'
|
Have you tried this: |
Yes its not work maven { url 'https://www.jitpack.io' } error:
Pls check "make the library readable to everyone." |
OK, I'll publish a new release, you can try it again. |
using implementation 'com.github.jrfeng.snow:player:1.0-alpha5' Same issue Old Api version 18
09-01 11:23:42.025 2306-2306/com.example.snowtest E/MusicPlayer: errorCode:5` Same url working fine with api 29 emulator Same issue Old Api version 20 Also no notification icon api level 18.. |
@webwayscript OK, I'll check it out. |
This doesn't seem to be a bug in this project. Maybe you can check this StackOverflow post: https://stackoverflow.com/a/51285550/4768512 |
yes .. this is the problem.. I think we need fix inside our app or your project library? |
No its not work .. also not work all m3u8 in old apimlevel 18 also i try with oncreat ;
implementation 'com.google.android.gms:play-services-auth:18.1.0' not work m3u8 in old api level |
I received following error when i use your GitHub project
|
Maybe you should check your audio source. This is not a bug in this project, I can't help for this, sorry. |
https://github.com/jrfeng/snow/blob/master/exo/src/main/java/snow/player/exo/ExoMusicPlayer.java |
http://airlsmp6-lh.akamaihd.net/i/AIRLSMP134_1@369210/master.m3u8 |
Maybe you should learn how to use |
i use like this all urls working fine.
This code all m3u8 with or with https working fine .. and also all redirected working fine.. its working fine from api level 16 up to latest version.. I dont know why its not working with your library Just now i found you using more code in MyFactory.java.. May be okhttp fix all https problem .. |
@webwayscript Thanks for feedback, I'll check it carefully. |
@webwayscript Can you provide some url of |
Old Api version 18
1.M3u8 Not work
2. Redirected Url working fine
New Api version 29
1.M3u8 working fine
2. Redirect url not work
Both working fine with exoplayer demo app
http://playerservices.streamtheworld.com/api/livestream-redirect/ARRBEAT_S01.aac ( Redirected play)
https://vidhttps.r.worldssl.net/thanthi-origin/liveabr/playlist.m3u8
We added
' android:usesCleartextTraffic="true"
android:networkSecurityConfig="@xml/network_security_config"
The text was updated successfully, but these errors were encountered: