mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
Add missing javadoc to new ExoPlayer.Builder constructors
Should have been part of
98200c2692
#minor-release
PiperOrigin-RevId: 405880982
This commit is contained in:
parent
9c9671a0af
commit
09c6ccfb66
1 changed files with 20 additions and 0 deletions
|
|
@ -457,10 +457,30 @@ public interface ExoPlayer extends Player {
|
|||
new DefaultMediaSourceFactory(context, new DefaultExtractorsFactory()));
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a builder with a custom {@link MediaSourceFactory}.
|
||||
*
|
||||
* <p>See {@link #Builder(Context)} for a list of default values.
|
||||
*
|
||||
* @param context A {@link Context}.
|
||||
* @param mediaSourceFactory A factory for creating a {@link MediaSource} from a {@link
|
||||
* MediaItem}.
|
||||
*/
|
||||
public Builder(Context context, MediaSourceFactory mediaSourceFactory) {
|
||||
this(context, new DefaultRenderersFactory(context), mediaSourceFactory);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a builder with a custom {@link RenderersFactory} and {@link MediaSourceFactory}.
|
||||
*
|
||||
* <p>See {@link #Builder(Context)} for a list of default values.
|
||||
*
|
||||
* @param context A {@link Context}.
|
||||
* @param renderersFactory A factory for creating {@link Renderer Renderers} to be used by the
|
||||
* player.
|
||||
* @param mediaSourceFactory A factory for creating a {@link MediaSource} from a {@link
|
||||
* MediaItem}.
|
||||
*/
|
||||
public Builder(
|
||||
Context context, RenderersFactory renderersFactory, MediaSourceFactory mediaSourceFactory) {
|
||||
this(
|
||||
|
|
|
|||
Loading…
Reference in a new issue