Skip to content

Commit 67dd062

Browse files
joankaradimovcpovirk
authored andcommitted
Add a MIME type MPEG-DASH (mpd files)
Fixes #2677 RELNOTES=`net`: Added the `MediaType` constant for MPEG-DASH. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=272444649
1 parent ba7f51f commit 67dd062

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

android/guava/src/com/google/common/net/MediaType.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,18 @@ private static MediaType addKnownType(MediaType mediaType) {
536536
/** <a href="http://goo.gl/XDQ1h2">Microsoft Word</a> documents. */
537537
public static final MediaType MICROSOFT_WORD = createConstant(APPLICATION_TYPE, "msword");
538538

539+
/**
540+
* Media type for <a
541+
* href="https://en.wikipedia.org/wiki/Dynamic_Adaptive_Streaming_over_HTTP">Dynamic Adaptive
542+
* Streaming over HTTP (DASH)</a>. This is <a
543+
* href="https://www.iana.org/assignments/media-types/application/dash+xml">registered</a> with
544+
* the IANA.
545+
*
546+
* @since NEXT
547+
*/
548+
public static final MediaType MEDIA_PRESENTATION_DESCRIPTION =
549+
createConstant(APPLICATION_TYPE, "dash+xml");
550+
539551
/**
540552
* WASM applications. For more information see <a href="https://webassembly.org/">the Web Assembly
541553
* overview</a>.

guava/src/com/google/common/net/MediaType.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,18 @@ private static MediaType addKnownType(MediaType mediaType) {
536536
/** <a href="http://goo.gl/XDQ1h2">Microsoft Word</a> documents. */
537537
public static final MediaType MICROSOFT_WORD = createConstant(APPLICATION_TYPE, "msword");
538538

539+
/**
540+
* Media type for <a
541+
* href="https://en.wikipedia.org/wiki/Dynamic_Adaptive_Streaming_over_HTTP">Dynamic Adaptive
542+
* Streaming over HTTP (DASH)</a>. This is <a
543+
* href="https://www.iana.org/assignments/media-types/application/dash+xml">registered</a> with
544+
* the IANA.
545+
*
546+
* @since NEXT
547+
*/
548+
public static final MediaType MEDIA_PRESENTATION_DESCRIPTION =
549+
createConstant(APPLICATION_TYPE, "dash+xml");
550+
539551
/**
540552
* WASM applications. For more information see <a href="https://webassembly.org/">the Web Assembly
541553
* overview</a>.

0 commit comments

Comments
 (0)