|
|
|
|
@ -28,7 +28,6 @@ import java.util.HashMap; |
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
import io.github.peerless2012.ass.media.AssHandler; |
|
|
|
|
import io.github.peerless2012.ass.media.kt.ExoPlayerKtKt; |
|
|
|
|
import io.github.peerless2012.ass.media.parser.AssSubtitleParserFactory; |
|
|
|
|
|
|
|
|
|
public class MediaSourceFactory implements MediaSource.Factory { |
|
|
|
|
@ -39,8 +38,8 @@ public class MediaSourceFactory implements MediaSource.Factory { |
|
|
|
|
private ExtractorsFactory extractorsFactory; |
|
|
|
|
|
|
|
|
|
public MediaSourceFactory(AssHandler assHandler, AssSubtitleParserFactory subtitleParserFactory) { |
|
|
|
|
//defaultMediaSourceFactory = new DefaultMediaSourceFactory(getDataSourceFactory(), getExtractorsFactory());
|
|
|
|
|
defaultMediaSourceFactory = new DefaultMediaSourceFactory(getDataSourceFactory(), ExoPlayerKtKt.withAssMkvSupport(getExtractorsFactory(), subtitleParserFactory, assHandler)); |
|
|
|
|
defaultMediaSourceFactory = new DefaultMediaSourceFactory(getDataSourceFactory(), getExtractorsFactory()); |
|
|
|
|
//defaultMediaSourceFactory = new DefaultMediaSourceFactory(getDataSourceFactory(), ExoPlayerKtKt.withAssMkvSupport(getExtractorsFactory(), subtitleParserFactory, assHandler));
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@NonNull |
|
|
|
|
|