Skip to content

Commit

Permalink
Add @code tags to DefaultDataSource javadoc
Browse files Browse the repository at this point in the history
#minor-release

PiperOrigin-RevId: 461902089
(cherry picked from commit ac300c4)
  • Loading branch information
icbaker authored and microkatz committed Jul 19, 2022
1 parent 053f68a commit 4cbbbc8
Showing 1 changed file with 21 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,27 @@
* A {@link DataSource} that supports multiple URI schemes. The supported schemes are:
*
* <ul>
* <li>file: For fetching data from a local file (e.g. file:///path/to/media/media.mp4, or just
* /path/to/media/media.mp4 because the implementation assumes that a URI without a scheme is
* a local file URI).
* <li>asset: For fetching data from an asset in the application's apk (e.g. asset:///media.mp4).
* <li>rawresource: For fetching data from a raw resource in the application's apk (e.g.
* rawresource:///resourceId, where rawResourceId is the integer identifier of the raw
* resource).
* <li>android.resource: For fetching data in the application's apk (e.g.
* android.resource:///resourceId or android.resource://resourceType/resourceName). See {@link
* RawResourceDataSource} for more information about the URI form.
* <li>content: For fetching data from a content URI (e.g. content://authority/path/123).
* <li>rtmp: For fetching data over RTMP. Only supported if the project using ExoPlayer has an
* explicit dependency on ExoPlayer's RTMP extension.
* <li>data: For parsing data inlined in the URI as defined in RFC 2397.
* <li>udp: For fetching data over UDP (e.g. udp://something.com/media).
* <li>http(s): For fetching data over HTTP and HTTPS (e.g. https://www.something.com/media.mp4),
* if constructed using {@link #DefaultDataSource(Context, String, boolean)}, or any other
* schemes supported by a base data source if constructed using {@link
* #DefaultDataSource(Context, DataSource)}.
* <li>{@code file}: For fetching data from a local file (e.g. {@code
* file:///path/to/media/media.mp4}, or just {@code /path/to/media/media.mp4} because the
* implementation assumes that a URI without a scheme is a local file URI).
* <li>{@code asset}: For fetching data from an asset in the application's APK (e.g. {@code
* asset:///media.mp4}).
* <li>{@code rawresource}: For fetching data from a raw resource in the application's APK (e.g.
* {@code rawresource:///resourceId}, where {@code rawResourceId} is the integer identifier of
* the raw resource).
* <li>{@code android.resource}: For fetching data in the application's APK (e.g. {@code
* android.resource:///resourceId} or {@code android.resource://resourceType/resourceName}).
* See {@link RawResourceDataSource} for more information about the URI form.
* <li>{@code content}: For fetching data from a content URI (e.g. {@code
* content://authority/path/123}).
* <li>{@code rtmp}: For fetching data over RTMP. Only supported if the project using ExoPlayer
* has an explicit dependency on ExoPlayer's RTMP extension.
* <li>{@code data}: For parsing data inlined in the URI as defined in RFC 2397.
* <li>{@code udp}: For fetching data over UDP (e.g. {@code udp://something.com/media}).
* <li>{@code http(s)}: For fetching data over HTTP and HTTPS (e.g. {@code
* https://www.something.com/media.mp4}), if constructed using {@link
* #DefaultDataSource(Context, String, boolean)}, or any other schemes supported by a base
* data source if constructed using {@link #DefaultDataSource(Context, DataSource)}.
* </ul>
*/
public final class DefaultDataSource implements DataSource {
Expand Down

0 comments on commit 4cbbbc8

Please sign in to comment.