### YamlMime:ManagedReference items: - uid: adas_core.Domain.Utils.MediaUtils commentId: T:adas_core.Domain.Utils.MediaUtils id: MediaUtils parent: adas_core.Domain.Utils children: - adas_core.Domain.Utils.MediaUtils.GetMimeType(System.String) - adas_core.Domain.Utils.MediaUtils.GetVideoDuration(System.String) - adas_core.Domain.Utils.MediaUtils.IsVideoFile(System.String) - adas_core.Domain.Utils.MediaUtils.Mapping langs: - csharp - vb name: MediaUtils nameWithType: MediaUtils fullName: adas_core.Domain.Utils.MediaUtils type: Class source: remote: path: adas-core.Domain/Utils/MediaUtils.cs branch: document/release/1.0.1 repo: https://git.teralevel.io/adas/adas-core.git id: MediaUtils path: ../../adas-core.Domain/Utils/MediaUtils.cs startLine: 7 assemblies: - adas-core.Domain namespace: adas_core.Domain.Utils summary: Provides static utility methods for handling media-related operations. example: [] syntax: content: public static class MediaUtils content.vb: Public Module MediaUtils inheritance: - System.Object inheritedMembers: - System.Object.Equals(System.Object) - System.Object.Equals(System.Object,System.Object) - System.Object.GetHashCode - System.Object.GetType - System.Object.MemberwiseClone - System.Object.ReferenceEquals(System.Object,System.Object) - System.Object.ToString - uid: adas_core.Domain.Utils.MediaUtils.Mapping commentId: F:adas_core.Domain.Utils.MediaUtils.Mapping id: Mapping parent: adas_core.Domain.Utils.MediaUtils langs: - csharp - vb name: Mapping nameWithType: MediaUtils.Mapping fullName: adas_core.Domain.Utils.MediaUtils.Mapping type: Field source: remote: path: adas-core.Domain/Utils/MediaUtils.cs branch: document/release/1.0.1 repo: https://git.teralevel.io/adas/adas-core.git id: Mapping path: ../../adas-core.Domain/Utils/MediaUtils.cs startLine: 9 assemblies: - adas-core.Domain namespace: adas_core.Domain.Utils syntax: content: public static readonly Dictionary Mapping return: type: System.Collections.Generic.Dictionary{System.String,System.String} content.vb: Public Shared ReadOnly Mapping As Dictionary(Of String, String) - uid: adas_core.Domain.Utils.MediaUtils.GetMimeType(System.String) commentId: M:adas_core.Domain.Utils.MediaUtils.GetMimeType(System.String) id: GetMimeType(System.String) parent: adas_core.Domain.Utils.MediaUtils langs: - csharp - vb name: GetMimeType(string) nameWithType: MediaUtils.GetMimeType(string) fullName: adas_core.Domain.Utils.MediaUtils.GetMimeType(string) type: Method source: remote: path: adas-core.Domain/Utils/MediaUtils.cs branch: document/release/1.0.1 repo: https://git.teralevel.io/adas/adas-core.git id: GetMimeType path: ../../adas-core.Domain/Utils/MediaUtils.cs startLine: 100 assemblies: - adas-core.Domain namespace: adas_core.Domain.Utils summary: >- Determines the MIME type associated with the file extension of the specified path. Performs a case-insensitive lookup against a known extension mapping and falls back to application/octet-stream when the extension is not recognized. example: [] syntax: content: public static string GetMimeType(string filePath) parameters: - id: filePath type: System.String description: The file path whose extension is used to resolve the MIME type. return: type: System.String description: The corresponding MIME type string if the extension is found in the mapping; otherwise, the default application/octet-stream value. content.vb: Public Shared Function GetMimeType(filePath As String) As String overload: adas_core.Domain.Utils.MediaUtils.GetMimeType* nameWithType.vb: MediaUtils.GetMimeType(String) fullName.vb: adas_core.Domain.Utils.MediaUtils.GetMimeType(String) name.vb: GetMimeType(String) - uid: adas_core.Domain.Utils.MediaUtils.IsVideoFile(System.String) commentId: M:adas_core.Domain.Utils.MediaUtils.IsVideoFile(System.String) id: IsVideoFile(System.String) parent: adas_core.Domain.Utils.MediaUtils langs: - csharp - vb name: IsVideoFile(string) nameWithType: MediaUtils.IsVideoFile(string) fullName: adas_core.Domain.Utils.MediaUtils.IsVideoFile(string) type: Method source: remote: path: adas-core.Domain/Utils/MediaUtils.cs branch: document/release/1.0.1 repo: https://git.teralevel.io/adas/adas-core.git id: IsVideoFile path: ../../adas-core.Domain/Utils/MediaUtils.cs startLine: 112 assemblies: - adas-core.Domain namespace: adas_core.Domain.Utils summary: >- Determines whether the specified file path corresponds to a supported video file by comparing its extension against a predefined list of video formats (e.g., .mp4, .avi, .mkv, .mov). The comparison is case-insensitive. example: [] syntax: content: public static bool IsVideoFile(string filePath) parameters: - id: filePath type: System.String description: The path of the file to evaluate. return: type: System.Boolean description: true if the file extension matches one of the supported video extensions; otherwise, false. content.vb: Public Shared Function IsVideoFile(filePath As String) As Boolean overload: adas_core.Domain.Utils.MediaUtils.IsVideoFile* nameWithType.vb: MediaUtils.IsVideoFile(String) fullName.vb: adas_core.Domain.Utils.MediaUtils.IsVideoFile(String) name.vb: IsVideoFile(String) - uid: adas_core.Domain.Utils.MediaUtils.GetVideoDuration(System.String) commentId: M:adas_core.Domain.Utils.MediaUtils.GetVideoDuration(System.String) id: GetVideoDuration(System.String) parent: adas_core.Domain.Utils.MediaUtils langs: - csharp - vb name: GetVideoDuration(string) nameWithType: MediaUtils.GetVideoDuration(string) fullName: adas_core.Domain.Utils.MediaUtils.GetVideoDuration(string) type: Method source: remote: path: adas-core.Domain/Utils/MediaUtils.cs branch: document/release/1.0.1 repo: https://git.teralevel.io/adas/adas-core.git id: GetVideoDuration path: ../../adas-core.Domain/Utils/MediaUtils.cs startLine: 126 assemblies: - adas-core.Domain namespace: adas_core.Domain.Utils summary: >- Retrieves the duration of the video at the specified path, expressed in milliseconds. Returns null if the duration cannot be read, with the underlying error logged to the console. example: [] syntax: content: public static long? GetVideoDuration(string videoPath) parameters: - id: videoPath type: System.String description: The file path of the video whose duration should be retrieved. return: type: System.Nullable{System.Int64} description: The video duration in milliseconds, or null if an error occurs while reading the file. content.vb: Public Shared Function GetVideoDuration(videoPath As String) As Long? overload: adas_core.Domain.Utils.MediaUtils.GetVideoDuration* nameWithType.vb: MediaUtils.GetVideoDuration(String) fullName.vb: adas_core.Domain.Utils.MediaUtils.GetVideoDuration(String) name.vb: GetVideoDuration(String) references: - uid: adas_core.Domain.Utils commentId: N:adas_core.Domain.Utils href: adas_core.html name: adas_core.Domain.Utils nameWithType: adas_core.Domain.Utils fullName: adas_core.Domain.Utils spec.csharp: - uid: adas_core name: adas_core href: adas_core.html - name: . - uid: adas_core.Domain name: Domain href: adas_core.Domain.html - name: . - uid: adas_core.Domain.Utils name: Utils href: adas_core.Domain.Utils.html spec.vb: - uid: adas_core name: adas_core href: adas_core.html - name: . - uid: adas_core.Domain name: Domain href: adas_core.Domain.html - name: . - uid: adas_core.Domain.Utils name: Utils href: adas_core.Domain.Utils.html - uid: System.Object commentId: T:System.Object parent: System isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object name: object nameWithType: object fullName: object nameWithType.vb: Object fullName.vb: Object name.vb: Object - uid: System.Object.Equals(System.Object) commentId: M:System.Object.Equals(System.Object) parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object) name: Equals(object) nameWithType: object.Equals(object) fullName: object.Equals(object) nameWithType.vb: Object.Equals(Object) fullName.vb: Object.Equals(Object) name.vb: Equals(Object) spec.csharp: - uid: System.Object.Equals(System.Object) name: Equals isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object) - name: ( - uid: System.Object name: object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) spec.vb: - uid: System.Object.Equals(System.Object) name: Equals isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object) - name: ( - uid: System.Object name: Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) - uid: System.Object.Equals(System.Object,System.Object) commentId: M:System.Object.Equals(System.Object,System.Object) parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object) name: Equals(object, object) nameWithType: object.Equals(object, object) fullName: object.Equals(object, object) nameWithType.vb: Object.Equals(Object, Object) fullName.vb: Object.Equals(Object, Object) name.vb: Equals(Object, Object) spec.csharp: - uid: System.Object.Equals(System.Object,System.Object) name: Equals isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object) - name: ( - uid: System.Object name: object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ',' - name: " " - uid: System.Object name: object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) spec.vb: - uid: System.Object.Equals(System.Object,System.Object) name: Equals isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object) - name: ( - uid: System.Object name: Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ',' - name: " " - uid: System.Object name: Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) - uid: System.Object.GetHashCode commentId: M:System.Object.GetHashCode parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode name: GetHashCode() nameWithType: object.GetHashCode() fullName: object.GetHashCode() nameWithType.vb: Object.GetHashCode() fullName.vb: Object.GetHashCode() spec.csharp: - uid: System.Object.GetHashCode name: GetHashCode isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode - name: ( - name: ) spec.vb: - uid: System.Object.GetHashCode name: GetHashCode isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode - name: ( - name: ) - uid: System.Object.GetType commentId: M:System.Object.GetType parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.gettype name: GetType() nameWithType: object.GetType() fullName: object.GetType() nameWithType.vb: Object.GetType() fullName.vb: Object.GetType() spec.csharp: - uid: System.Object.GetType name: GetType isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.gettype - name: ( - name: ) spec.vb: - uid: System.Object.GetType name: GetType isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.gettype - name: ( - name: ) - uid: System.Object.MemberwiseClone commentId: M:System.Object.MemberwiseClone parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone name: MemberwiseClone() nameWithType: object.MemberwiseClone() fullName: object.MemberwiseClone() nameWithType.vb: Object.MemberwiseClone() fullName.vb: Object.MemberwiseClone() spec.csharp: - uid: System.Object.MemberwiseClone name: MemberwiseClone isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone - name: ( - name: ) spec.vb: - uid: System.Object.MemberwiseClone name: MemberwiseClone isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone - name: ( - name: ) - uid: System.Object.ReferenceEquals(System.Object,System.Object) commentId: M:System.Object.ReferenceEquals(System.Object,System.Object) parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals name: ReferenceEquals(object, object) nameWithType: object.ReferenceEquals(object, object) fullName: object.ReferenceEquals(object, object) nameWithType.vb: Object.ReferenceEquals(Object, Object) fullName.vb: Object.ReferenceEquals(Object, Object) name.vb: ReferenceEquals(Object, Object) spec.csharp: - uid: System.Object.ReferenceEquals(System.Object,System.Object) name: ReferenceEquals isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals - name: ( - uid: System.Object name: object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ',' - name: " " - uid: System.Object name: object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) spec.vb: - uid: System.Object.ReferenceEquals(System.Object,System.Object) name: ReferenceEquals isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals - name: ( - uid: System.Object name: Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ',' - name: " " - uid: System.Object name: Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) - uid: System.Object.ToString commentId: M:System.Object.ToString parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.tostring name: ToString() nameWithType: object.ToString() fullName: object.ToString() nameWithType.vb: Object.ToString() fullName.vb: Object.ToString() spec.csharp: - uid: System.Object.ToString name: ToString isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.tostring - name: ( - name: ) spec.vb: - uid: System.Object.ToString name: ToString isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.tostring - name: ( - name: ) - uid: System commentId: N:System isExternal: true href: https://learn.microsoft.com/dotnet/api/system name: System nameWithType: System fullName: System - uid: System.Collections.Generic.Dictionary{System.String,System.String} commentId: T:System.Collections.Generic.Dictionary{System.String,System.String} parent: System.Collections.Generic definition: System.Collections.Generic.Dictionary`2 href: https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2 name: Dictionary nameWithType: Dictionary fullName: System.Collections.Generic.Dictionary nameWithType.vb: Dictionary(Of String, String) fullName.vb: System.Collections.Generic.Dictionary(Of String, String) name.vb: Dictionary(Of String, String) spec.csharp: - uid: System.Collections.Generic.Dictionary`2 name: Dictionary isExternal: true href: https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2 - name: < - uid: System.String name: string isExternal: true href: https://learn.microsoft.com/dotnet/api/system.string - name: ',' - name: " " - uid: System.String name: string isExternal: true href: https://learn.microsoft.com/dotnet/api/system.string - name: '>' spec.vb: - uid: System.Collections.Generic.Dictionary`2 name: Dictionary isExternal: true href: https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2 - name: ( - name: Of - name: " " - uid: System.String name: String isExternal: true href: https://learn.microsoft.com/dotnet/api/system.string - name: ',' - name: " " - uid: System.String name: String isExternal: true href: https://learn.microsoft.com/dotnet/api/system.string - name: ) - uid: System.Collections.Generic.Dictionary`2 commentId: T:System.Collections.Generic.Dictionary`2 isExternal: true href: https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2 name: Dictionary nameWithType: Dictionary fullName: System.Collections.Generic.Dictionary nameWithType.vb: Dictionary(Of TKey, TValue) fullName.vb: System.Collections.Generic.Dictionary(Of TKey, TValue) name.vb: Dictionary(Of TKey, TValue) spec.csharp: - uid: System.Collections.Generic.Dictionary`2 name: Dictionary isExternal: true href: https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2 - name: < - name: TKey - name: ',' - name: " " - name: TValue - name: '>' spec.vb: - uid: System.Collections.Generic.Dictionary`2 name: Dictionary isExternal: true href: https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2 - name: ( - name: Of - name: " " - name: TKey - name: ',' - name: " " - name: TValue - name: ) - uid: System.Collections.Generic commentId: N:System.Collections.Generic isExternal: true href: https://learn.microsoft.com/dotnet/api/system name: System.Collections.Generic nameWithType: System.Collections.Generic fullName: System.Collections.Generic spec.csharp: - uid: System name: System isExternal: true href: https://learn.microsoft.com/dotnet/api/system - name: . - uid: System.Collections name: Collections isExternal: true href: https://learn.microsoft.com/dotnet/api/system.collections - name: . - uid: System.Collections.Generic name: Generic isExternal: true href: https://learn.microsoft.com/dotnet/api/system.collections.generic spec.vb: - uid: System name: System isExternal: true href: https://learn.microsoft.com/dotnet/api/system - name: . - uid: System.Collections name: Collections isExternal: true href: https://learn.microsoft.com/dotnet/api/system.collections - name: . - uid: System.Collections.Generic name: Generic isExternal: true href: https://learn.microsoft.com/dotnet/api/system.collections.generic - uid: adas_core.Domain.Utils.MediaUtils.GetMimeType* commentId: Overload:adas_core.Domain.Utils.MediaUtils.GetMimeType href: adas_core.Domain.Utils.MediaUtils.html#adas_core_Domain_Utils_MediaUtils_GetMimeType_System_String_ name: GetMimeType nameWithType: MediaUtils.GetMimeType fullName: adas_core.Domain.Utils.MediaUtils.GetMimeType - uid: System.String commentId: T:System.String parent: System isExternal: true href: https://learn.microsoft.com/dotnet/api/system.string name: string nameWithType: string fullName: string nameWithType.vb: String fullName.vb: String name.vb: String - uid: adas_core.Domain.Utils.MediaUtils.IsVideoFile* commentId: Overload:adas_core.Domain.Utils.MediaUtils.IsVideoFile href: adas_core.Domain.Utils.MediaUtils.html#adas_core_Domain_Utils_MediaUtils_IsVideoFile_System_String_ name: IsVideoFile nameWithType: MediaUtils.IsVideoFile fullName: adas_core.Domain.Utils.MediaUtils.IsVideoFile - uid: System.Boolean commentId: T:System.Boolean parent: System isExternal: true href: https://learn.microsoft.com/dotnet/api/system.boolean name: bool nameWithType: bool fullName: bool nameWithType.vb: Boolean fullName.vb: Boolean name.vb: Boolean - uid: adas_core.Domain.Utils.MediaUtils.GetVideoDuration* commentId: Overload:adas_core.Domain.Utils.MediaUtils.GetVideoDuration href: adas_core.Domain.Utils.MediaUtils.html#adas_core_Domain_Utils_MediaUtils_GetVideoDuration_System_String_ name: GetVideoDuration nameWithType: MediaUtils.GetVideoDuration fullName: adas_core.Domain.Utils.MediaUtils.GetVideoDuration - uid: System.Nullable{System.Int64} commentId: T:System.Nullable{System.Int64} parent: System definition: System.Nullable`1 href: https://learn.microsoft.com/dotnet/api/system.int64 name: long? nameWithType: long? fullName: long? nameWithType.vb: Long? fullName.vb: Long? name.vb: Long? spec.csharp: - uid: System.Int64 name: long isExternal: true href: https://learn.microsoft.com/dotnet/api/system.int64 - name: '?' spec.vb: - uid: System.Int64 name: Long isExternal: true href: https://learn.microsoft.com/dotnet/api/system.int64 - name: '?' - uid: System.Nullable`1 commentId: T:System.Nullable`1 isExternal: true href: https://learn.microsoft.com/dotnet/api/system.nullable-1 name: Nullable nameWithType: Nullable fullName: System.Nullable nameWithType.vb: Nullable(Of T) fullName.vb: System.Nullable(Of T) name.vb: Nullable(Of T) spec.csharp: - uid: System.Nullable`1 name: Nullable isExternal: true href: https://learn.microsoft.com/dotnet/api/system.nullable-1 - name: < - name: T - name: '>' spec.vb: - uid: System.Nullable`1 name: Nullable isExternal: true href: https://learn.microsoft.com/dotnet/api/system.nullable-1 - name: ( - name: Of - name: " " - name: T - name: )