mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Clean up TrackRenderer TODOs
This commit is contained in:
parent
b81ac8cdc2
commit
15052052ee
1 changed files with 2 additions and 9 deletions
|
|
@ -132,10 +132,7 @@ public abstract class TrackRenderer implements ExoPlayerComponent {
|
||||||
*
|
*
|
||||||
* @return The number of tracks.
|
* @return The number of tracks.
|
||||||
*/
|
*/
|
||||||
// TODO: This method should be abstract. This implementation is provided as an interim step only.
|
protected abstract int getTrackCount();
|
||||||
protected int getTrackCount() {
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the format of the specified track.
|
* Returns the format of the specified track.
|
||||||
|
|
@ -146,11 +143,7 @@ public abstract class TrackRenderer implements ExoPlayerComponent {
|
||||||
* @param track The track index.
|
* @param track The track index.
|
||||||
* @return The format of the specified track.
|
* @return The format of the specified track.
|
||||||
*/
|
*/
|
||||||
// TODO: This method should be abstract. This implementation is provided as an interim step only.
|
protected abstract MediaFormat getFormat(int track);
|
||||||
protected MediaFormat getFormat(int track) {
|
|
||||||
return MediaFormat.createFormatForMimeType("application/octet-stream", MediaFormat.NO_VALUE,
|
|
||||||
getDurationUs());
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable the renderer for a specified track.
|
* Enable the renderer for a specified track.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue