Skip to content

MediaData

Base class for media data that refers to a media file on the local device.

Holds the file name and path (from FileData) and the timestamps of when the recording started and stopped. See AudioMedia, VideoMedia and ImageMedia.

Inheritance
Implementers

Constructors

MediaData

MediaData({
  1. required String filename,
  2. required MediaType mediaType,
  3. DateTime? startRecordingTime,
  4. DateTime? endRecordingTime,
})

Properties

endRecordingTime

DateTime? endRecordingTime
getter/setter pair

The timestamp for end of recording, if available.

id

String id
getter/setter pair

A unique id of this media file, generated as a UUID on creation.

mediaType

MediaType mediaType
getter/setter pair

The type of media.

startRecordingTime

DateTime? startRecordingTime
getter/setter pair

The timestamp for start of recording, if available.