Class: GeneralRecording

GeneralRecording(data)

Class representing a General Recording. The General Recorder in the mobile app creates a new GeneralRecording item when the user switches between audio, video, or takes a picture while recording is paused. All of these GeneralRecordings are then associated with a single CultureEvent object when the user taps Done in the General Recorder, enters metadata, and saves. Note: If a picture is taken while recording is paused, a few-second silent audio GeneralRecording is created that the photo is linked to.

Constructor

new GeneralRecording(data)

Creates a GeneralRecording object
Parameters:
Name Type Description
data GeneralRecording | Object
Source:

Members

_id :string

Unique ID for the recording
Type:
  • string
Default Value:
  • ''
Source:

filename :string

Filename of the recording (no path, but does include extension)
Type:
  • string
Default Value:
  • ''
Source:

isVideo :boolean

true if it is a video recording; false if it is an audio recording.
Type:
  • boolean
Default Value:
  • false
Source:

markers :Array.<string>

Array of IDs of markers from the recording. Currently, our mobile code is commented out for full Marker support, but we still create a marker at the beginning of a GeneralRecording. The functionality is very similar to GeneralQuestions.
Type:
  • Array.<string>
Default Value:
  • []
Source:

photos :Array.<string>

Array of GeneralPhotos IDs from the recording
Type:
  • Array.<string>
Default Value:
  • []
Source:

questions :Array.<string>

Array of GeneralQuestions ids from the recording
Type:
  • Array.<string>
Default Value:
  • []
Source:

Methods

set(data) → {GeneralRecording}

Creates an updated GeneralRecording object
Parameters:
Name Type Description
data GeneralRecording | Object
Source:
Returns:
Type
GeneralRecording