Class MimeTypes
Inheritance
System.Object
MimeTypes
Assembly: MediaBrowser.Model.dll
public static class MimeTypes
Methods
GetExtensionFromMediaContainer(String, DlnaProfileType)
Declaration
public static string GetExtensionFromMediaContainer(string container, DlnaProfileType mediaType)
Parameters
Returns
Type |
Description |
System.String |
|
Declaration
public static string GetMimeType(ReadOnlySpan<char> path)
Parameters
Type |
Name |
Description |
System.ReadOnlySpan<System.Char> |
path |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static string GetMimeType(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.String |
|
Gets the type of the MIME.
Declaration
public static string GetMimeType(string path, bool enableStreamDefault)
Parameters
Type |
Name |
Description |
System.String |
path |
|
System.Boolean |
enableStreamDefault |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static string GetMimeTypeFromMediaContainer(string container, DlnaProfileType mediaType, bool enableStreamDefault)
Parameters
Type |
Name |
Description |
System.String |
container |
|
DlnaProfileType |
mediaType |
|
System.Boolean |
enableStreamDefault |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static string ToExtension(ReadOnlySpan<char> mimeType)
Parameters
Type |
Name |
Description |
System.ReadOnlySpan<System.Char> |
mimeType |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static string ToExtension(string mimeType)
Parameters
Type |
Name |
Description |
System.String |
mimeType |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static string[] ToExtensions(string mimeType)
Parameters
Type |
Name |
Description |
System.String |
mimeType |
|
Returns
Type |
Description |
System.String[] |
|