Add @code tags to DefaultDataSource javadoc

#minor-release

PiperOrigin-RevId: 461902089
This commit is contained in:
ibaker 2022-07-19 16:29:20 +00:00 committed by Rohit Singh
parent f9eec0c0e8
commit ac300c4a00

View File

@ -33,25 +33,27 @@ import java.util.Map;
* A {@link DataSource} that supports multiple URI schemes. The supported schemes are: * A {@link DataSource} that supports multiple URI schemes. The supported schemes are:
* *
* <ul> * <ul>
* <li>file: For fetching data from a local file (e.g. file:///path/to/media/media.mp4, or just * <li>{@code file}: For fetching data from a local file (e.g. {@code
* /path/to/media/media.mp4 because the implementation assumes that a URI without a scheme is * file:///path/to/media/media.mp4}, or just {@code /path/to/media/media.mp4} because the
* a local file URI). * 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>{@code asset}: For fetching data from an asset in the application's APK (e.g. {@code
* <li>rawresource: For fetching data from a raw resource in the application's apk (e.g. * asset:///media.mp4}).
* rawresource:///resourceId, where rawResourceId is the integer identifier of the raw * <li>{@code rawresource}: For fetching data from a raw resource in the application's APK (e.g.
* resource). * {@code rawresource:///resourceId}, where {@code rawResourceId} is the integer identifier of
* <li>android.resource: For fetching data in the application's apk (e.g. * the raw resource).
* android.resource:///resourceId or android.resource://resourceType/resourceName). See {@link * <li>{@code android.resource}: For fetching data in the application's APK (e.g. {@code
* RawResourceDataSource} for more information about the URI form. * android.resource:///resourceId} or {@code android.resource://resourceType/resourceName}).
* <li>content: For fetching data from a content URI (e.g. content://authority/path/123). * See {@link RawResourceDataSource} for more information about the URI form.
* <li>rtmp: For fetching data over RTMP. Only supported if the project using ExoPlayer has an * <li>{@code content}: For fetching data from a content URI (e.g. {@code
* explicit dependency on ExoPlayer's RTMP extension. * content://authority/path/123}).
* <li>data: For parsing data inlined in the URI as defined in RFC 2397. * <li>{@code rtmp}: For fetching data over RTMP. Only supported if the project using ExoPlayer
* <li>udp: For fetching data over UDP (e.g. udp://something.com/media). * has an explicit dependency on ExoPlayer's RTMP extension.
* <li>http(s): For fetching data over HTTP and HTTPS (e.g. https://www.something.com/media.mp4), * <li>{@code data}: For parsing data inlined in the URI as defined in RFC 2397.
* if constructed using {@link #DefaultDataSource(Context, String, boolean)}, or any other * <li>{@code udp}: For fetching data over UDP (e.g. {@code udp://something.com/media}).
* schemes supported by a base data source if constructed using {@link * <li>{@code http(s)}: For fetching data over HTTP and HTTPS (e.g. {@code
* #DefaultDataSource(Context, DataSource)}. * 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> * </ul>
*/ */
public final class DefaultDataSource implements DataSource { public final class DefaultDataSource implements DataSource {