Customizing the TrackSelectors
Hello @ojw28
Is there a way to remove some tracks of DASH file from Default track adapter but make them available in Track Selection Helper class so the user can choose to override the default ones.
Sorry for raising this as an issue as I could not find any other straight way of doing it basing on bitrate of the track. And I am on very tight schedule.
it would do me a lot of help if you can even provide me with some other source of getting it
any help on this question
Sorry for being rude but any help for this question
From what I understand, you want to avoid adapting into a specific subset of the available representations. Have you looked into the TrackSelector hierarchy? This is one of the things you can do with it. I'd also suggest trying stack overflow or a similar Q&A.
Hello @AquilesCanta I have solved it after reading the classes (cause I got some time) sorry for bugging you guys. I am posting here the solution (it's very simple) you can refer it to any other person if needed.
private static boolean isSupportedAdaptiveVideoTrack(Format format, String mimeType, int formatSupport, int requiredAdaptiveSupport, int maxVideoWidth, int maxVideoHeight) { return isSupported(formatSupport) && ((formatSupport & requiredAdaptiveSupport) != 0) && (mimeType == null || Util.areEqual(format.sampleMimeType, mimeType)) && (format.width == Format.NO_VALUE || format.width <= maxVideoWidth) && (format.height == Format.NO_VALUE || format.height <= maxVideoHeight) &&(format.bitrate < 3000000); } this method is in DefaultTrackSelector.java class extra param &&(format.bitrate < 3000000);
Thanks for your reply