Exports related to mash video media.

Classes

ClientMashVideoClass

Extends ClientMashVideoClass_base. Implements ClientMash.

new ClientMashVideoClass(object): ClientMashVideoClass

ParameterTypeDescription
objectMashVideoArgs

Returns ClientMashVideoClass. Inherited from ClientMashVideoClass_base.constructor.

PropertyModifierTypeDescription
alpha?publicboolean-
asDatapublicStorableMedia-
assetspublicMedia[]-
bufferpublicnumber-
canBeContainer?publicboolean-
canBeContent?publicboolean-
canBeFill?publicboolean-
canBeMuted?publicboolean-
clipspublic readonlyClientClip[]-
createdAt?publicstring-
decodingspublicDecoding[]-
drawnTimepublicundefined | TimeThe last time that was broadcast to the framework.
durationpublicnumber-
editspublic readonlyUndoableEdits-
encodingpublic readonlyundefined | Resource-
endTimepublicTime-
framepublic readonlynumber-
frameworkpublicFramework-
hasIntrinsicSizingpublicundefined | boolean-
hasIntrinsicTimingpublicundefined | boolean-
idpublicstring-
isVector?publicboolean-
label?publicstring-
loadingpublic readonlyboolean-
looppublicboolean-
masherpublicMasher-
mashIndexpublicMashIndex-
mediaIdspublicstring[]-
pausedpublicboolean-
probeSize?publicSize<number>-
projectIdpublicundefined | string-
propertiespublicProperty[]-
resourcespublicResource[]-
saveNeededpublicboolean-
sizepublicSize<number>-
sourcepublicstring-
targetIdpublicstring-
timepublic readonlyTimeThe last time the target was seeked to.
timeRangepublic readonlyTimeRange-
timeToBufferpublic readonlyTime-
totalFramespublicnumber-
trackspublic readonlyClientTrack[]-
typepublicMediaType-
unsavedResourcespublic readonlyResource[]-
updatedAt?publicstring-

Methods

addClipToTrack(clip, trackIndex?, insertIndex?, frame?): void

ParameterTypeDescription
clipClientClip | ClientClip[]
trackIndex?number
insertIndex?number
frame?number

Returns void. Implementation of ClientMash.addClipToTrack, Inherited from ClientMashVideoClass_base.addClipToTrack.

addResource(resource): void

ParameterTypeDescription
resourceResource

Returns void. Implementation of ClientMash.addResource, Inherited from ClientMashVideoClass_base.addResource.

addTrack(options?): ClientTrack

ParameterTypeDescription
options?TrackObject

Returns ClientTrack. Implementation of ClientMash.addTrack, Inherited from ClientMashVideoClass_base.addTrack.

assetCachePromise(args): Promise<DataOrError<number>>

ParameterTypeDescription
argsAssetCacheArgs

Returns Promise<DataOrError<number>>. Implementation of ClientMash.assetCachePromise, Inherited from ClientMashVideoClass_base.assetCachePromise.

assetFiles(args): AssetFile[]

ParameterTypeDescription
argsCacheArgs

Returns AssetFile[]. Implementation of ClientMash.assetFiles, Inherited from ClientMashVideoClass_base.assetFiles.

assetIcon(size, cover)

assetIcon(size, cover?): Promise<DataOrError<SVGSVGElement>>

ParameterTypeDescription
sizeSize<number>
cover?boolean

Returns Promise<DataOrError<SVGSVGElement>>. Implementation of ClientMash.assetIcon, Inherited from ClientMashVideoClass_base.assetIcon.

assetIcon(size, cover, patch)

assetIcon(size, cover?, patch?): Promise<DataOrError<SVGSVGElement>>

ParameterType
sizeSize<number>
cover?boolean
patch?Element

Returns Promise<DataOrError<SVGSVGElement>>. Implementation of ClientMash.assetIcon, Inherited from ClientMashVideoClass_base.assetIcon.

assetIconPromise(resource, options, cover, patch)

assetIconPromise(resource, options, cover?, patch?): Promise<DataOrError<SVGImageElement>>

ParameterTypeDescription
resourceResource
optionsSize<number> | Rect<number>
cover?boolean
patch?Element

Returns Promise<DataOrError<SVGImageElement>>. Implementation of ClientMash.assetIconPromise, Inherited from ClientMashVideoClass_base.assetIconPromise.

assetIconPromise(resource, options, cover, patch)

assetIconPromise(resource, options, cover?, patch?): Promise<DataOrError<SvgItem>>

ParameterType
resourceResource
optionsSize<number> | Rect<number>
cover?boolean
patch?Element

Returns Promise<DataOrError<SvgItem>>. Implementation of ClientMash.assetIconPromise, Inherited from ClientMashVideoClass_base.assetIconPromise.

boolean(key): boolean

ParameterTypeDescription
keystring

Returns boolean. Implementation of ClientMash.boolean, Inherited from ClientMashVideoClass_base.boolean.

changeObject(signalId, scalar?): ChangeEditObject

ParameterTypeDescription
signalId`${string}.${string}`
scalar?Scalar

Returns ChangeEditObject. Implementation of ClientMash.changeObject, Inherited from ClientMashVideoClass_base.changeObject.

changeScalars(scalars): void

ParameterTypeDescription
scalarsPartial<SignalScalarRecord>

Returns void. Implementation of ClientMash.changeScalars, Inherited from ClientMashVideoClass_base.changeScalars.

changeTiming(propertied, property, value): void

ParameterTypeDescription
propertiedPropertied
propertystring
valuenumber

Returns void. Implementation of ClientMash.changeTiming, Inherited from ClientMashVideoClass_base.changeTiming.

changesObject(scalars): ChangePropertiesEditObject

ParameterTypeDescription
scalarsPartial<SignalScalarRecord>

Returns ChangePropertiesEditObject. Implementation of ClientMash.changesObject, Inherited from ClientMashVideoClass_base.changesObject.

clipInstance(object): ClientClip

ParameterTypeDescription
objectClipObject

Returns ClientClip. Implementation of ClientMash.clipInstance, Inherited from ClientMashVideoClass_base.clipInstance.

clipObject(object?): ClipObject

ParameterTypeDescription
object?InstanceObject

Returns ClipObject. Implementation of ClientMash.clipObject, Inherited from ClientMashVideoClass_base.clipObject.

clipsAudibleInTime(time): Clip[]

ParameterType
timeTime

Returns Clip[]. Implementation of ClientMash.clipsAudibleInTime, Inherited from ClientMashVideoClass_base.clipsAudibleInTime.

clipsInTimeOfType(time, avType?): ClientClip[]

ParameterTypeDescription
timeTime
avType?AVType

Returns ClientClip[]. Implementation of ClientMash.clipsInTimeOfType, Inherited from ClientMashVideoClass_base.clipsInTimeOfType.

commandFilePromise(args, commandFile): Promise<DataOrError<number>>

ParameterTypeDescription
argsServerPromiseArgs
commandFileCommandFile

Returns Promise<DataOrError<number>>. Implementation of ClientMash.commandFilePromise, Inherited from ClientMashVideoClass_base.commandFilePromise.

constrainedValue(property, value?): undefined | Scalar

ParameterTypeDescription
propertyProperty
value?Scalar

Returns undefined | Scalar. Implementation of ClientMash.constrainedValue, Inherited from ClientMashVideoClass_base.constrainedValue.

decodingOfType(…types): undefined | Decoding

ParameterTypeDescription
typesstring[]

Returns undefined | Decoding. Inherited from ClientMashVideoClass_base.decodingOfType.

dispatchChanged(edit): void

ParameterTypeDescription
editUndoableEdit

Returns void. Implementation of ClientMash.dispatchChanged, Inherited from ClientMashVideoClass_base.dispatchChanged.

draw(): void

Returns void. Implementation of ClientMash.draw, Inherited from ClientMashVideoClass_base.draw.

elementsPromise(rect?): Promise<SvgItem[]>

Returns svg items for player.
ParameterTypeDescription
rect?Rect<number>

Returns Promise<SvgItem[]>. Implementation of ClientMash.elementsPromise, Inherited from ClientMashVideoClass_base.elementsPromise.

findClip(clipId?): undefined | ClientClip

ParameterTypeDescription
clipId?string

Returns undefined | ClientClip. Implementation of ClientMash.findClip, Inherited from ClientMashVideoClass_base.findClip.

findMedia(assetId?): undefined | ClientAsset

ParameterTypeDescription
assetId?string

Returns undefined | ClientAsset. Implementation of ClientMash.findMedia, Inherited from ClientMashVideoClass_base.findMedia.

findResource(…typesOrSources): undefined | Resource

ParameterTypeDescription
typesOrSourcesstring[]

Returns undefined | Resource. Implementation of ClientMash.findResource, Inherited from ClientMashVideoClass_base.findResource.

frames(quantize): number

ParameterType
quantizenumber

Returns number. Inherited from ClientMashVideoClass_base.frames.

framesHaveChanged(frames?): void

ParameterTypeDescription
frames?number

Returns void. Implementation of ClientMash.framesHaveChanged, Inherited from ClientMashVideoClass_base.framesHaveChanged.

imagePromise(resource): Promise<DataOrError<ClientImage>>

ParameterTypeDescription
resourceResource

Returns Promise<DataOrError<ClientImage>>. Implementation of ClientMash.imagePromise, Inherited from ClientMashVideoClass_base.imagePromise.

instanceArgs(object?): InstanceArgs

ParameterTypeDescription
object?InstanceObject

Returns InstanceArgs. Implementation of ClientMash.instanceArgs, Inherited from ClientMashVideoClass_base.instanceArgs.

instanceFromObject(object?): Instance

ParameterTypeDescription
object?InstanceObject

Returns Instance. Implementation of ClientMash.instanceFromObject, Inherited from ClientMashVideoClass_base.instanceFromObject.

number(id): number

ParameterTypeDescription
idstring

Returns number. Implementation of ClientMash.number, Inherited from ClientMashVideoClass_base.number.

propertiesOfTarget(targetId): Property[]

ParameterTypeDescription
targetIdstring

Returns Property[]. Implementation of ClientMash.propertiesOfTarget, Inherited from ClientMashVideoClass_base.propertiesOfTarget.

propertyFind(name): undefined | Property

ParameterTypeDescription
namestring

Returns undefined | Property. Implementation of ClientMash.propertyFind, Inherited from ClientMashVideoClass_base.propertyFind.

propertyIds(targetId): `${string}.${string}`[]

ParameterTypeDescription
targetIdstring

Returns `${string}.${string}`[]. Implementation of ClientMash.propertyIds, Inherited from ClientMashVideoClass_base.propertyIds.

reload(): undefined | Promise<void>

Returns undefined | Promise<void>. Implementation of ClientMash.reload, Inherited from ClientMashVideoClass_base.reload.

removeClipFromTrack(clip): void

ParameterTypeDescription
clipClientClip | ClientClip[]

Returns void. Implementation of ClientMash.removeClipFromTrack, Inherited from ClientMashVideoClass_base.removeClipFromTrack.

removeTrack(index?): void

ParameterTypeDescription
index?number

Returns void. Implementation of ClientMash.removeTrack, Inherited from ClientMashVideoClass_base.removeTrack.

savePromise(progress?): Promise<DataOrError<string>>

ParameterTypeDescription
progress?ServerProgress

Returns Promise<DataOrError<string>>. Implementation of ClientMash.savePromise, Inherited from ClientMashVideoClass_base.savePromise.

scalarsRecord(idOrNames): ScalarRecord

ParameterTypeDescription
idOrNamesstring[]

Returns ScalarRecord. Implementation of ClientMash.scalarsRecord, Inherited from ClientMashVideoClass_base.scalarsRecord.

seekToTime(time): undefined | Promise<void>

ParameterTypeDescription
timeTime

Returns undefined | Promise<void>. Implementation of ClientMash.seekToTime, Inherited from ClientMashVideoClass_base.seekToTime.

setValue(id, scalar?, dontConstrain?): void

ParameterTypeDescription
idstring
scalar?Scalar
dontConstrain?boolean

Returns void. Implementation of ClientMash.setValue, Inherited from ClientMashVideoClass_base.setValue.

shouldSelectProperty(property): boolean

ParameterTypeDescription
propertyProperty

Returns boolean. Implementation of ClientMash.shouldSelectProperty, Inherited from ClientMashVideoClass_base.shouldSelectProperty.

string(id): string

ParameterTypeDescription
idstring

Returns string if the value is a string, otherwise throws an assertion error. Implementation of ClientMash.string, Inherited from ClientMashVideoClass_base.string.

toJSON(): UnknownRecord

Returns UnknownRecord. Implementation of ClientMash.toJSON, Inherited from ClientMashVideoClass_base.toJSON.

trackInstance(args): ClientTrack

ParameterTypeDescription
argsTrackArgs

Returns ClientTrack. Implementation of ClientMash.trackInstance, Inherited from ClientMashVideoClass_base.trackInstance.

tweenValues(key, time, range): Scalar[]

ParameterTypeDescription
keystring
timeTime
rangeTimeRange

Returns Scalar[]. Implementation of ClientMash.tweenValues, Inherited from ClientMashVideoClass_base.tweenValues.

tweens(key): boolean

ParameterTypeDescription
keystring

Returns boolean. Implementation of ClientMash.tweens, Inherited from ClientMashVideoClass_base.tweens.

tweensProperty(key): boolean

ParameterTypeDescription
keystring

Returns boolean. Inherited from ClientMashVideoClass_base.tweensProperty.

unload(): void

Returns void. Implementation of ClientMash.unload, Inherited from ClientMashVideoClass_base.unload.

updateAssetId(oldId, newId): void

ParameterTypeDescription
oldIdstring
newIdstring

Returns void. Implementation of ClientMash.updateAssetId, Inherited from ClientMashVideoClass_base.updateAssetId.

value(id): undefined | Scalar

ParameterTypeDescription
idstring

Returns undefined | Scalar. Implementation of ClientMash.value, Inherited from ClientMashVideoClass_base.value.

ClippedClientMashVideoClass

Extends ClippedClientMashVideoClass_base. Implements ClippedClientMashVideo.

new ClippedClientMashVideoClass(object): ClippedClientMashVideoClass

ParameterTypeDescription
objectInstanceArgs

Returns ClippedClientMashVideoClass. Inherited from ClippedClientMashVideoClass_base.constructor.

PropertyModifierType
assetpublicMedia
assetIdpublicstring
audibleAssetpublicAudibleAsset
canBeMutedpublicboolean
clientAssetpublic readonlyClientAsset
clientAudibleAssetpublicClientAudibleAsset
clientClippublic readonlyClientClip
clippublicClientClip & Clip
cropDirectionspublicSideDirectionRecord
hasIntrinsicTimingpublicboolean
idpublicstring
instanceObjectpublicInstanceObject
intrinsicRectpublicRect<number>
isDefaultpublicboolean
mediaIdspublicstring[]
mutedpublicboolean
propertiespublicProperty[]
sizeKey?publicSizeKey
targetIdpublicstring
tweeningpublicboolean
visibleAssetpublicVisibleAsset

Methods

assetFrames(quantize): number[]

ParameterType
quantizenumber

Returns number[] containing duration, start trim, and end trim in frames.. Inherited from ClippedClientMashVideoClass_base.assetFrames.

assetTime(mashTime): Time

ParameterTypeDescription
mashTimeTime

Returns Time. Implementation of ClippedClientMashVideo.assetTime, Inherited from ClippedClientMashVideoClass_base.assetTime.

audibleCommandFiles(args): CommandFile[]

ParameterType
argsAudioCommandFileArgs

Returns CommandFile[]. Inherited from ClippedClientMashVideoClass_base.audibleCommandFiles.

audiblePreviewPromise(outputSize, scale?): Promise<DataOrError<SvgItem>>

ParameterType
outputSizeSize<number>
scale?number

Returns Promise<DataOrError<SvgItem>>. Inherited from ClippedClientMashVideoClass_base.audiblePreviewPromise.

boolean(key): boolean

ParameterTypeDescription
keystring

Returns boolean. Implementation of ClippedClientMashVideo.boolean, Inherited from ClippedClientMashVideoClass_base.boolean.

changeObject(signalId, scalar?): ChangeEditObject

ParameterTypeDescription
signalId`${string}.${string}`
scalar?Scalar

Returns ChangeEditObject. Implementation of ClippedClientMashVideo.changeObject, Inherited from ClippedClientMashVideoClass_base.changeObject.

changeScalars(scalars): void

ParameterTypeDescription
scalarsPartial<SignalScalarRecord>

Returns void. Implementation of ClippedClientMashVideo.changeScalars, Inherited from ClippedClientMashVideoClass_base.changeScalars.

changesObject(scalars): ChangePropertiesEditObject

ParameterTypeDescription
scalarsPartial<SignalScalarRecord>

Returns ChangePropertiesEditObject. Implementation of ClippedClientMashVideo.changesObject, Inherited from ClippedClientMashVideoClass_base.changesObject.

clippedElement(content, args): DataOrError<SvgItemsRecord>

ParameterType
contentVisibleContentInstance
argsContainerSvgItemArgs

Returns DataOrError<SvgItemsRecord>. Inherited from ClippedClientMashVideoClass_base.clippedElement.

clippedElementPromise(content, args): Promise<DataOrError<SvgItemsRecord>>

ParameterType
contentClientVisibleInstance
argsContainerSvgItemArgs

Returns Promise<DataOrError<SvgItemsRecord>>. Inherited from ClippedClientMashVideoClass_base.clippedElementPromise.

commandFiles(cacheArgs): CommandFile[]

ParameterTypeDescription
cacheArgsCommandFileArgs

Returns CommandFile[]. Implementation of ClippedClientMashVideo.commandFiles, Inherited from ClippedClientMashVideoClass_base.commandFiles.

constrainedValue(property, value?): undefined | Scalar

ParameterTypeDescription
propertyProperty
value?Scalar

Returns undefined | Scalar. Implementation of ClippedClientMashVideo.constrainedValue, Inherited from ClippedClientMashVideoClass_base.constrainedValue.

containedItem(contentItem, containerItem, args): DataOrError<SvgItemsRecord>

ParameterType
contentItemMaybeComplexSvgItem
containerItemMaybeComplexSvgItem
argsContainerSvgItemArgs

Returns DataOrError<SvgItemsRecord>. Inherited from ClippedClientMashVideoClass_base.containedItem.

containerRects(args, sizingSize): RectTuple<number>

ParameterType
argsContainerRectArgs
sizingSizeSize<number>

Returns RectTuple<number>. Inherited from ClippedClientMashVideoClass_base.containerRects.

containerSvgItem(args): DataOrError<MaybeComplexSvgItem>

ParameterType
argsContainerSvgItemArgs

Returns DataOrError<MaybeComplexSvgItem>. Inherited from ClippedClientMashVideoClass_base.containerSvgItem.

containerSvgItemPromise(args): Promise<DataOrError<MaybeComplexSvgItem>>

ParameterType
argsContainerSvgItemArgs

Returns Promise<DataOrError<MaybeComplexSvgItem>>. Inherited from ClippedClientMashVideoClass_base.containerSvgItemPromise.

contentRect(time, containerRect, outputSize): Rect<number>

ParameterType
timeTime
containerRectRect<number>
outputSizeSize<number>

Returns Rect<number>. Inherited from ClippedClientMashVideoClass_base.contentRect.

contentRects(args): RectTuple<number>

ParameterType
argsContentRectArgs

Returns RectTuple<number>. Inherited from ClippedClientMashVideoClass_base.contentRects.

contentSvgItem(args): DataOrError<MaybeComplexSvgItem>

ParameterType
argsContentSvgItemArgs

Returns DataOrError<MaybeComplexSvgItem>. Inherited from ClippedClientMashVideoClass_base.contentSvgItem.

contentSvgItemPromise(args): Promise<DataOrError<MaybeComplexSvgItem>>

ParameterType
argsContentSvgItemArgs

Returns Promise<DataOrError<MaybeComplexSvgItem>>. Inherited from ClippedClientMashVideoClass_base.contentSvgItemPromise.

frames(quantize): number

ParameterTypeDescription
quantizenumber

Returns number. Implementation of ClippedClientMashVideo.frames, Inherited from ClippedClientMashVideoClass_base.frames.

instanceCachePromise(args): Promise<DataOrError<number>>

ParameterTypeDescription
argsInstanceCacheArgs

Returns Promise<DataOrError<number>>. Implementation of ClippedClientMashVideo.instanceCachePromise, Inherited from ClippedClientMashVideoClass_base.instanceCachePromise.

intrinsicsKnown(options): boolean

ParameterTypeDescription
optionsIntrinsicOptions

Returns boolean. Implementation of ClippedClientMashVideo.intrinsicsKnown, Inherited from ClippedClientMashVideoClass_base.intrinsicsKnown.

number(id): number

ParameterTypeDescription
idstring

Returns number. Implementation of ClippedClientMashVideo.number, Inherited from ClippedClientMashVideoClass_base.number.

propertiesOfTarget(targetId): Property[]

ParameterTypeDescription
targetIdstring

Returns Property[]. Implementation of ClippedClientMashVideo.propertiesOfTarget, Inherited from ClippedClientMashVideoClass_base.propertiesOfTarget.

propertyFind(name): undefined | Property

ParameterTypeDescription
namestring

Returns undefined | Property. Implementation of ClippedClientMashVideo.propertyFind, Inherited from ClippedClientMashVideoClass_base.propertyFind.

propertyIds(targetId): `${string}.${string}`[]

ParameterTypeDescription
targetIdstring

Returns `${string}.${string}`[]. Implementation of ClippedClientMashVideo.propertyIds, Inherited from ClippedClientMashVideoClass_base.propertyIds.

scalarsById(targetId, time, timeIsStart)

scalarsById(targetId, time?, timeIsStart?): SignalScalarRecord

ParameterTypeDescription
targetIdstring
time?Time
timeIsStart?boolean

Returns SignalScalarRecord. Implementation of ClippedClientMashVideo.scalarsById, Inherited from ClippedClientMashVideoClass_base.scalarsById.

scalarsById(targetId, time, timeIsStart, useNames)

scalarsById(targetId, time?, timeIsStart?, useNames?): SignalScalarRecord

ParameterType
targetIdstring
time?Time
timeIsStart?boolean
useNames?boolean

Returns SignalScalarRecord. Implementation of ClippedClientMashVideo.scalarsById, Inherited from ClippedClientMashVideoClass_base.scalarsById.

scalarsRecord(idOrNames): ScalarRecord

ParameterTypeDescription
idOrNamesstring[]

Returns ScalarRecord. Implementation of ClippedClientMashVideo.scalarsRecord, Inherited from ClippedClientMashVideoClass_base.scalarsRecord.

scaleRects(time, range): RectTuple<number>

ParameterType
timeTime
rangeTimeRange

Returns RectTuple<number>. Inherited from ClippedClientMashVideoClass_base.scaleRects.

setValue(id, value?, dontConstrain?): void

ParameterTypeDescription
idstring
value?Scalar
dontConstrain?boolean

Returns void. Implementation of ClippedClientMashVideo.setValue, Inherited from ClippedClientMashVideoClass_base.setValue.

shouldSelectProperty(property): boolean

ParameterTypeDescription
propertyProperty

Returns boolean. Implementation of ClippedClientMashVideo.shouldSelectProperty, Inherited from ClippedClientMashVideoClass_base.shouldSelectProperty.

splitObject(targetId, frame?, frameIsStart?): Partial<SignalScalarRecord>

ParameterTypeDescription
targetIdstring
frame?number
frameIsStart?boolean

Returns Partial<SignalScalarRecord>. Inherited from ClippedClientMashVideoClass_base.splitObject.

splitScalars(targetId, frame?): ScalarRecord

ParameterTypeDescription
targetIdstring
frame?number

Returns ScalarRecord. Inherited from ClippedClientMashVideoClass_base.splitScalars.

string(id): string

ParameterTypeDescription
idstring

Returns string if the value is a string, otherwise throws an assertion error. Implementation of ClippedClientMashVideo.string, Inherited from ClippedClientMashVideoClass_base.string.

svgVector(rect, forecolor?, opacity?): SvgVector

ParameterType
rectRect<number>
forecolor?string
opacity?Scalar

Returns SvgVector. Inherited from ClippedClientMashVideoClass_base.svgVector.

toJSON(): UnknownRecord

Returns UnknownRecord. Implementation of ClippedClientMashVideo.toJSON, Inherited from ClippedClientMashVideoClass_base.toJSON.

tweenValues(key, time, range): Scalar[]

ParameterTypeDescription
keystring
timeTime
rangeTimeRange

Returns Scalar[]. Implementation of ClippedClientMashVideo.tweenValues, Inherited from ClippedClientMashVideoClass_base.tweenValues.

tweens(key): boolean

ParameterTypeDescription
keystring

Returns boolean. Implementation of ClippedClientMashVideo.tweens, Inherited from ClippedClientMashVideoClass_base.tweens.

tweensProperty(key): boolean

ParameterTypeDescription
keystring

Returns boolean. Inherited from ClippedClientMashVideoClass_base.tweensProperty.

unload(): void

Returns void. Inherited from ClippedClientMashVideoClass_base.unload.

value(id): undefined | Scalar

ParameterTypeDescription
idstring

Returns undefined | Scalar. Implementation of ClippedClientMashVideo.value, Inherited from ClippedClientMashVideoClass_base.value.

visibleCommandFiles(args, content?): CommandFile[]

ParameterType
argsVisibleCommandFileArgs
content?VisibleContentInstance

Returns CommandFile[]. Inherited from ClippedClientMashVideoClass_base.visibleCommandFiles.

ClippedMashVideoClass

Extends ClippedMashVideoClass_base. Implements ClippedMashVideo.

new ClippedMashVideoClass(object): ClippedMashVideoClass

ParameterTypeDescription
objectInstanceArgs

Returns ClippedMashVideoClass. Inherited from ClippedMashVideoClass_base.constructor.

PropertyType
assetMedia
assetIdstring
canBeMutedboolean
clipClip
hasIntrinsicTimingboolean
idstring
instanceObjectInstanceObject
isDefaultboolean
mediaIdsstring[]
mutedboolean
propertiesProperty[]
targetIdstring

Methods

assetTime(mashTime): Time

ParameterTypeDescription
mashTimeTime

Returns Time. Implementation of ClippedMashVideo.assetTime, Inherited from ClippedMashVideoClass_base.assetTime.

boolean(key): boolean

ParameterTypeDescription
keystring

Returns boolean. Implementation of ClippedMashVideo.boolean, Inherited from ClippedMashVideoClass_base.boolean.

changeObject(signalId, scalar?): ChangeEditObject

ParameterTypeDescription
signalId`${string}.${string}`
scalar?Scalar

Returns ChangeEditObject. Implementation of ClippedMashVideo.changeObject, Inherited from ClippedMashVideoClass_base.changeObject.

changeScalars(scalars): void

ParameterTypeDescription
scalarsPartial<SignalScalarRecord>

Returns void. Implementation of ClippedMashVideo.changeScalars, Inherited from ClippedMashVideoClass_base.changeScalars.

changesObject(scalars): ChangePropertiesEditObject

ParameterTypeDescription
scalarsPartial<SignalScalarRecord>

Returns ChangePropertiesEditObject. Implementation of ClippedMashVideo.changesObject, Inherited from ClippedMashVideoClass_base.changesObject.

commandFiles(cacheArgs): CommandFile[]

ParameterTypeDescription
cacheArgsCommandFileArgs

Returns CommandFile[]. Implementation of ClippedMashVideo.commandFiles, Inherited from ClippedMashVideoClass_base.commandFiles.

constrainedValue(property, value?): undefined | Scalar

ParameterTypeDescription
propertyProperty
value?Scalar

Returns undefined | Scalar. Implementation of ClippedMashVideo.constrainedValue, Inherited from ClippedMashVideoClass_base.constrainedValue.

frames(quantize): number

ParameterTypeDescription
quantizenumber

Returns number. Implementation of ClippedMashVideo.frames, Inherited from ClippedMashVideoClass_base.frames.

instanceCachePromise(args): Promise<DataOrError<number>>

ParameterTypeDescription
argsInstanceCacheArgs

Returns Promise<DataOrError<number>>. Implementation of ClippedMashVideo.instanceCachePromise, Inherited from ClippedMashVideoClass_base.instanceCachePromise.

intrinsicsKnown(options): boolean

ParameterTypeDescription
optionsIntrinsicOptions

Returns boolean. Implementation of ClippedMashVideo.intrinsicsKnown, Inherited from ClippedMashVideoClass_base.intrinsicsKnown.

number(id): number

ParameterTypeDescription
idstring

Returns number. Implementation of ClippedMashVideo.number, Inherited from ClippedMashVideoClass_base.number.

propertiesOfTarget(targetId): Property[]

ParameterTypeDescription
targetIdstring

Returns Property[]. Implementation of ClippedMashVideo.propertiesOfTarget, Inherited from ClippedMashVideoClass_base.propertiesOfTarget.

propertyFind(name): undefined | Property

ParameterTypeDescription
namestring

Returns undefined | Property. Implementation of ClippedMashVideo.propertyFind, Inherited from ClippedMashVideoClass_base.propertyFind.

propertyIds(targetId): `${string}.${string}`[]

ParameterTypeDescription
targetIdstring

Returns `${string}.${string}`[]. Implementation of ClippedMashVideo.propertyIds, Inherited from ClippedMashVideoClass_base.propertyIds.

scalarsById(targetId, time, timeIsStart)

scalarsById(targetId, time?, timeIsStart?): SignalScalarRecord

ParameterTypeDescription
targetIdstring
time?Time
timeIsStart?boolean

Returns SignalScalarRecord. Implementation of ClippedMashVideo.scalarsById, Inherited from ClippedMashVideoClass_base.scalarsById.

scalarsById(targetId, time, timeIsStart, useNames)

scalarsById(targetId, time?, timeIsStart?, useNames?): SignalScalarRecord

ParameterType
targetIdstring
time?Time
timeIsStart?boolean
useNames?boolean

Returns SignalScalarRecord. Implementation of ClippedMashVideo.scalarsById, Inherited from ClippedMashVideoClass_base.scalarsById.

scalarsRecord(idOrNames): ScalarRecord

ParameterTypeDescription
idOrNamesstring[]

Returns ScalarRecord. Implementation of ClippedMashVideo.scalarsRecord, Inherited from ClippedMashVideoClass_base.scalarsRecord.

setValue(id, value?, dontConstrain?): void

ParameterTypeDescription
idstring
value?Scalar
dontConstrain?boolean

Returns void. Implementation of ClippedMashVideo.setValue, Inherited from ClippedMashVideoClass_base.setValue.

shouldSelectProperty(property): boolean

ParameterTypeDescription
propertyProperty

Returns boolean. Implementation of ClippedMashVideo.shouldSelectProperty, Inherited from ClippedMashVideoClass_base.shouldSelectProperty.

string(id): string

ParameterTypeDescription
idstring

Returns string if the value is a string, otherwise throws an assertion error. Implementation of ClippedMashVideo.string, Inherited from ClippedMashVideoClass_base.string.

toJSON(): UnknownRecord

Returns UnknownRecord. Implementation of ClippedMashVideo.toJSON, Inherited from ClippedMashVideoClass_base.toJSON.

tweenValues(key, time, range): Scalar[]

ParameterTypeDescription
keystring
timeTime
rangeTimeRange

Returns Scalar[]. Implementation of ClippedMashVideo.tweenValues, Inherited from ClippedMashVideoClass_base.tweenValues.

tweens(key): boolean

ParameterTypeDescription
keystring

Returns boolean. Implementation of ClippedMashVideo.tweens, Inherited from ClippedMashVideoClass_base.tweens.

tweensProperty(key): boolean

ParameterTypeDescription
keystring

Returns boolean. Inherited from ClippedMashVideoClass_base.tweensProperty.

value(id): undefined | Scalar

ParameterTypeDescription
idstring

Returns undefined | Scalar. Implementation of ClippedMashVideo.value, Inherited from ClippedMashVideoClass_base.value.

MashVideoClass

Extends ServerMashMediaClass. Implements MashVideo.

new MashVideoClass(object): MashVideoClass

ParameterTypeDescription
objectStorableMedia

Returns MashVideoClass. Inherited from ServerMashMediaClass.constructor.

PropertyType
asDataStorableMedia
assetsMedia[]
clipsClip[]
createdAt?string
decodingsDecoding[]
durationnumber
endTimeTime
hasIntrinsicSizingundefined | boolean
hasIntrinsicTimingundefined | boolean
idstring
label?string
mashIndexMashIndex
mediaIdsstring[]
projectIdundefined | string
propertiesProperty[]
resourcesResource[]
sizeSize<number>
sourcestring
targetIdstring
totalFramesnumber
tracksTrack[]
typeMediaType
updatedAt?string

Methods

assetCachePromise(args): Promise<DataOrError<number>>

ParameterTypeDescription
argsAssetCacheArgs

Returns Promise<DataOrError<number>>. Implementation of MashVideo.assetCachePromise, Inherited from ServerMashMediaClass.assetCachePromise.

assetFiles(args): AssetFile[]

ParameterTypeDescription
argsCacheArgs

Returns AssetFile[]. Implementation of MashVideo.assetFiles, Overrides ServerMashMediaClass.assetFiles.

boolean(key): boolean

ParameterTypeDescription
keystring

Returns boolean. Implementation of MashVideo.boolean, Inherited from ServerMashMediaClass.boolean.

changeObject(signalId, scalar?): ChangeEditObject

ParameterTypeDescription
signalId`${string}.${string}`
scalar?Scalar

Returns ChangeEditObject. Implementation of MashVideo.changeObject, Inherited from ServerMashMediaClass.changeObject.

changeScalars(scalars): void

ParameterTypeDescription
scalarsPartial<SignalScalarRecord>

Returns void. Implementation of MashVideo.changeScalars, Inherited from ServerMashMediaClass.changeScalars.

changesObject(scalars): ChangePropertiesEditObject

ParameterTypeDescription
scalarsPartial<SignalScalarRecord>

Returns ChangePropertiesEditObject. Implementation of MashVideo.changesObject, Inherited from ServerMashMediaClass.changesObject.

clipInstance(object): Clip

ParameterType
objectClipObject

Returns Clip. Implementation of MashVideo.clipInstance, Inherited from ServerMashMediaClass.clipInstance.

clipObject(object?): ClipObject

ParameterTypeDescription
object?InstanceObject

Returns ClipObject. Implementation of MashVideo.clipObject, Inherited from ServerMashMediaClass.clipObject.

clipsAudibleInTime(time): Clip[]

ParameterType
timeTime

Returns Clip[]. Implementation of MashVideo.clipsAudibleInTime, Inherited from ServerMashMediaClass.clipsAudibleInTime.

clipsInTimeOfType(time, avType?): Clip[]

ParameterType
timeTime
avType?AVType

Returns Clip[]. Implementation of MashVideo.clipsInTimeOfType, Inherited from ServerMashMediaClass.clipsInTimeOfType.

commandFilePromise(args, commandFile): Promise<DataOrError<number>>

ParameterTypeDescription
argsServerPromiseArgs
commandFileCommandFile

Returns Promise<DataOrError<number>>. Implementation of MashVideo.commandFilePromise, Inherited from ServerMashMediaClass.commandFilePromise.

constrainedValue(property, value?): undefined | Scalar

ParameterTypeDescription
propertyProperty
value?Scalar

Returns undefined | Scalar. Implementation of MashVideo.constrainedValue, Inherited from ServerMashMediaClass.constrainedValue.

decodingOfType(…types): undefined | Decoding

ParameterTypeDescription
typesstring[]

Returns undefined | Decoding. Inherited from ServerMashMediaClass.decodingOfType.

findMedia(assetId?): undefined | Media

ParameterType
assetId?string

Returns undefined | Media. Implementation of MashVideo.findMedia, Inherited from ServerMashMediaClass.findMedia.

findResource(…typesOrSources): undefined | Resource

ParameterTypeDescription
typesOrSourcesstring[]

Returns undefined | Resource. Implementation of MashVideo.findResource, Inherited from ServerMashMediaClass.findResource.

instanceArgs(object?): InstanceArgs

ParameterTypeDescription
object?InstanceObject

Returns InstanceArgs. Implementation of MashVideo.instanceArgs, Inherited from ServerMashMediaClass.instanceArgs.

instanceFromObject(object?): Instance

ParameterTypeDescription
object?InstanceObject

Returns Instance. Implementation of MashVideo.instanceFromObject, Inherited from ServerMashMediaClass.instanceFromObject.

number(id): number

ParameterTypeDescription
idstring

Returns number. Implementation of MashVideo.number, Inherited from ServerMashMediaClass.number.

propertiesOfTarget(targetId): Property[]

ParameterTypeDescription
targetIdstring

Returns Property[]. Implementation of MashVideo.propertiesOfTarget, Inherited from ServerMashMediaClass.propertiesOfTarget.

propertyFind(name): undefined | Property

ParameterTypeDescription
namestring

Returns undefined | Property. Implementation of MashVideo.propertyFind, Inherited from ServerMashMediaClass.propertyFind.

propertyIds(targetId): `${string}.${string}`[]

ParameterTypeDescription
targetIdstring

Returns `${string}.${string}`[]. Implementation of MashVideo.propertyIds, Inherited from ServerMashMediaClass.propertyIds.

scalarsRecord(idOrNames): ScalarRecord

ParameterTypeDescription
idOrNamesstring[]

Returns ScalarRecord. Implementation of MashVideo.scalarsRecord, Inherited from ServerMashMediaClass.scalarsRecord.

serverMashDescription(options): MashCommands

ParameterTypeDescription
optionsMashCommandsOptions

Returns MashCommands. Inherited from ServerMashMediaClass.serverMashDescription.

setValue(id, value?, dontConstrain?): void

ParameterTypeDescription
idstring
value?Scalar
dontConstrain?boolean

Returns void. Implementation of MashVideo.setValue, Inherited from ServerMashMediaClass.setValue.

shouldSelectProperty(property): boolean

ParameterTypeDescription
propertyProperty

Returns boolean. Implementation of MashVideo.shouldSelectProperty, Inherited from ServerMashMediaClass.shouldSelectProperty.

string(id): string

ParameterTypeDescription
idstring

Returns string if the value is a string, otherwise throws an assertion error. Implementation of MashVideo.string, Inherited from ServerMashMediaClass.string.

toJSON(): UnknownRecord

Returns UnknownRecord. Implementation of MashVideo.toJSON, Inherited from ServerMashMediaClass.toJSON.

trackInstance(args): Track

ParameterType
argsTrackArgs

Returns Track. Implementation of MashVideo.trackInstance, Inherited from ServerMashMediaClass.trackInstance.

tweenValues(key, time, range): Scalar[]

ParameterTypeDescription
keystring
timeTime
rangeTimeRange

Returns Scalar[]. Implementation of MashVideo.tweenValues, Inherited from ServerMashMediaClass.tweenValues.

tweens(key): boolean

ParameterTypeDescription
keystring

Returns boolean. Implementation of MashVideo.tweens, Inherited from ServerMashMediaClass.tweens.

tweensProperty(key): boolean

ParameterTypeDescription
keystring

Returns boolean. Inherited from ServerMashMediaClass.tweensProperty.

value(id): undefined | Scalar

ParameterTypeDescription
idstring

Returns undefined | Scalar. Implementation of MashVideo.value, Inherited from ServerMashMediaClass.value.

ServerMashMediaClass

Extends ServerMashMediaClass_base. Extended by MashVideoClass. Implements ServerMashMedia.

new ServerMashMediaClass(object): ServerMashMediaClass

ParameterTypeDescription
objectStorableMedia

Returns ServerMashMediaClass. Inherited from ServerMashMediaClass_base.constructor.

PropertyType
asDataStorableMedia
assetsMedia[]
clipsClip[]
createdAt?string
decodingsDecoding[]
durationnumber
endTimeTime
hasIntrinsicSizingundefined | boolean
hasIntrinsicTimingundefined | boolean
idstring
label?string
mashIndexMashIndex
mediaIdsstring[]
projectIdundefined | string
propertiesProperty[]
resourcesResource[]
sizeSize<number>
sourcestring
targetIdstring
totalFramesnumber
tracksTrack[]
typeMediaType
updatedAt?string

Methods

assetCachePromise(args): Promise<DataOrError<number>>

ParameterTypeDescription
argsAssetCacheArgs

Returns Promise<DataOrError<number>>. Implementation of ServerMashMedia.assetCachePromise, Inherited from ServerMashMediaClass_base.assetCachePromise.

assetFiles(args): AssetFile[]

ParameterTypeDescription
argsCacheArgs

Returns AssetFile[]. Implementation of ServerMashMedia.assetFiles, Inherited from ServerMashMediaClass_base.assetFiles.

boolean(key): boolean

ParameterTypeDescription
keystring

Returns boolean. Implementation of ServerMashMedia.boolean, Inherited from ServerMashMediaClass_base.boolean.

changeObject(signalId, scalar?): ChangeEditObject

ParameterTypeDescription
signalId`${string}.${string}`
scalar?Scalar

Returns ChangeEditObject. Implementation of ServerMashMedia.changeObject, Inherited from ServerMashMediaClass_base.changeObject.

changeScalars(scalars): void

ParameterTypeDescription
scalarsPartial<SignalScalarRecord>

Returns void. Implementation of ServerMashMedia.changeScalars, Inherited from ServerMashMediaClass_base.changeScalars.

changesObject(scalars): ChangePropertiesEditObject

ParameterTypeDescription
scalarsPartial<SignalScalarRecord>

Returns ChangePropertiesEditObject. Implementation of ServerMashMedia.changesObject, Inherited from ServerMashMediaClass_base.changesObject.

clipInstance(object): Clip

ParameterType
objectClipObject

Returns Clip. Implementation of ServerMashMedia.clipInstance, Inherited from ServerMashMediaClass_base.clipInstance.

clipObject(object?): ClipObject

ParameterTypeDescription
object?InstanceObject

Returns ClipObject. Implementation of ServerMashMedia.clipObject, Inherited from ServerMashMediaClass_base.clipObject.

clipsAudibleInTime(time): Clip[]

ParameterType
timeTime

Returns Clip[]. Implementation of ServerMashMedia.clipsAudibleInTime, Inherited from ServerMashMediaClass_base.clipsAudibleInTime.

clipsInTimeOfType(time, avType?): Clip[]

ParameterType
timeTime
avType?AVType

Returns Clip[]. Implementation of ServerMashMedia.clipsInTimeOfType, Inherited from ServerMashMediaClass_base.clipsInTimeOfType.

commandFilePromise(args, commandFile): Promise<DataOrError<number>>

ParameterTypeDescription
argsServerPromiseArgs
commandFileCommandFile

Returns Promise<DataOrError<number>>. Implementation of ServerMashMedia.commandFilePromise, Inherited from ServerMashMediaClass_base.commandFilePromise.

constrainedValue(property, value?): undefined | Scalar

ParameterTypeDescription
propertyProperty
value?Scalar

Returns undefined | Scalar. Implementation of ServerMashMedia.constrainedValue, Inherited from ServerMashMediaClass_base.constrainedValue.

decodingOfType(…types): undefined | Decoding

ParameterTypeDescription
typesstring[]

Returns undefined | Decoding. Inherited from ServerMashMediaClass_base.decodingOfType.

findMedia(assetId?): undefined | Media

ParameterType
assetId?string

Returns undefined | Media. Implementation of ServerMashMedia.findMedia, Inherited from ServerMashMediaClass_base.findMedia.

findResource(…typesOrSources): undefined | Resource

ParameterTypeDescription
typesOrSourcesstring[]

Returns undefined | Resource. Implementation of ServerMashMedia.findResource, Inherited from ServerMashMediaClass_base.findResource.

instanceArgs(object?): InstanceArgs

ParameterTypeDescription
object?InstanceObject

Returns InstanceArgs. Implementation of ServerMashMedia.instanceArgs, Inherited from ServerMashMediaClass_base.instanceArgs.

instanceFromObject(object?): Instance

ParameterTypeDescription
object?InstanceObject

Returns Instance. Implementation of ServerMashMedia.instanceFromObject, Inherited from ServerMashMediaClass_base.instanceFromObject.

number(id): number

ParameterTypeDescription
idstring

Returns number. Implementation of ServerMashMedia.number, Inherited from ServerMashMediaClass_base.number.

propertiesOfTarget(targetId): Property[]

ParameterTypeDescription
targetIdstring

Returns Property[]. Implementation of ServerMashMedia.propertiesOfTarget, Inherited from ServerMashMediaClass_base.propertiesOfTarget.

propertyFind(name): undefined | Property

ParameterTypeDescription
namestring

Returns undefined | Property. Implementation of ServerMashMedia.propertyFind, Inherited from ServerMashMediaClass_base.propertyFind.

propertyIds(targetId): `${string}.${string}`[]

ParameterTypeDescription
targetIdstring

Returns `${string}.${string}`[]. Implementation of ServerMashMedia.propertyIds, Inherited from ServerMashMediaClass_base.propertyIds.

scalarsRecord(idOrNames): ScalarRecord

ParameterTypeDescription
idOrNamesstring[]

Returns ScalarRecord. Implementation of ServerMashMedia.scalarsRecord, Inherited from ServerMashMediaClass_base.scalarsRecord.

serverMashDescription(options): MashCommands

ParameterTypeDescription
optionsMashCommandsOptions

Returns MashCommands. Implementation of ServerMashMedia.serverMashDescription.

setValue(id, value?, dontConstrain?): void

ParameterTypeDescription
idstring
value?Scalar
dontConstrain?boolean

Returns void. Implementation of ServerMashMedia.setValue, Inherited from ServerMashMediaClass_base.setValue.

shouldSelectProperty(property): boolean

ParameterTypeDescription
propertyProperty

Returns boolean. Implementation of ServerMashMedia.shouldSelectProperty, Inherited from ServerMashMediaClass_base.shouldSelectProperty.

string(id): string

ParameterTypeDescription
idstring

Returns string if the value is a string, otherwise throws an assertion error. Implementation of ServerMashMedia.string, Inherited from ServerMashMediaClass_base.string.

toJSON(): UnknownRecord

Returns UnknownRecord. Implementation of ServerMashMedia.toJSON, Inherited from ServerMashMediaClass_base.toJSON.

trackInstance(args): Track

ParameterType
argsTrackArgs

Returns Track. Implementation of ServerMashMedia.trackInstance, Inherited from ServerMashMediaClass_base.trackInstance.

tweenValues(key, time, range): Scalar[]

ParameterTypeDescription
keystring
timeTime
rangeTimeRange

Returns Scalar[]. Implementation of ServerMashMedia.tweenValues, Inherited from ServerMashMediaClass_base.tweenValues.

tweens(key): boolean

ParameterTypeDescription
keystring

Returns boolean. Implementation of ServerMashMedia.tweens, Inherited from ServerMashMediaClass_base.tweens.

tweensProperty(key): boolean

ParameterTypeDescription
keystring

Returns boolean. Inherited from ServerMashMediaClass_base.tweensProperty.

value(id): undefined | Scalar

ParameterTypeDescription
idstring

Returns undefined | Scalar. Implementation of ServerMashMedia.value, Inherited from ServerMashMediaClass_base.value.

Interfaces

ClientMashVideo

Extends ClientMash.

PropertyType
asDataStorableMedia
assetsMedia[]
buffernumber
clipsClientClip[]
createdAt?string
decodingsDecoding[]
drawnTime?Time
durationnumber
editsUndoableEdits
encoding?Resource
endTimeTime
framenumber
frameworkFramework
hasIntrinsicSizing?boolean
hasIntrinsicTiming?boolean
idstring
label?string
loadingboolean
loopboolean
masherMasher
mashIndexMashIndex
mediaIdsstring[]
pausedboolean
projectId?string
propertiesProperty[]
resourcesResource[]
saveNeededboolean
sizeSize<number>
sourcestring
targetIdstring
timeTime
timeRangeTimeRange
timeToBufferTime
totalFramesnumber
tracksClientTrack[]
typeMediaType
updatedAt?string

Methods

addClipToTrack(clip, trackIndex?, insertIndex?, frame?): void

ParameterType
clipOrArray<ClientClip>
trackIndex?number
insertIndex?number
frame?number

Returns void. Inherited from ClientMash.addClipToTrack.

addResource(resource): void

ParameterType
resourceResource

Returns void. Inherited from ClientMash.addResource.

addTrack(object?): ClientTrack

ParameterType
object?TrackObject

Returns ClientTrack. Inherited from ClientMash.addTrack.

assetCachePromise(args): Promise<DataOrError<number>>

ParameterType
argsAssetCacheArgs

Returns Promise<DataOrError<number>>. Inherited from ClientMash.assetCachePromise.

assetFiles(args): AssetFile[]

All files needed for audible and/or visible encode commands.
ParameterType
argsCacheArgs

Returns AssetFile[]. Inherited from ClientMash.assetFiles.

assetIcon(size, cover?, patch?): Promise<DataOrError<SVGSVGElement>>

ParameterType
sizeSize<number>
cover?boolean
patch?Element

Returns Promise<DataOrError<SVGSVGElement>>. Inherited from ClientMash.assetIcon.

assetIconPromise(resource, options, cover?, patch?): Promise<DataOrError<SvgItem>>

ParameterType
resourceResource
optionsSize<number> | Rect<number>
cover?boolean
patch?Element

Returns Promise<DataOrError<SvgItem>>. Inherited from ClientMash.assetIconPromise.

boolean(key): boolean

ParameterType
keystring

Returns boolean. Inherited from ClientMash.boolean.

changeObject(propertyId, scalar?): ChangeEditObject

ParameterType
propertyId`${string}.${string}`
scalar?Scalar

Returns ChangeEditObject. Inherited from ClientMash.changeObject.

changeScalars(scalars): void

ParameterType
scalarsPartial<SignalScalarRecord>

Returns void. Inherited from ClientMash.changeScalars.

changeTiming(propertied, property, value): void

ParameterType
propertiedPropertied
propertystring
valuenumber

Returns void. Inherited from ClientMash.changeTiming.

changesObject(scalars): ChangePropertiesEditObject

ParameterType
scalarsPartial<SignalScalarRecord>

Returns ChangePropertiesEditObject. Inherited from ClientMash.changesObject.

clipInstance(object): ClientClip

ParameterType
objectClipObject

Returns ClientClip. Inherited from ClientMash.clipInstance.

clipObject(object?): ClipObject

ParameterType
object?InstanceObject

Returns ClipObject. Inherited from ClientMash.clipObject.

clipsAudibleInTime(time): Clip[]

ParameterType
timeTime

Returns Clip[]. Inherited from ClientMash.clipsAudibleInTime.

clipsInTimeOfType(time, avType?): Clip[]

ParameterType
timeTime
avType?AVType

Returns Clip[]. Inherited from ClientMash.clipsInTimeOfType.

commandFilePromise(args, commandFile): Promise<DataOrError<number>>

Writes a command file, if it's not a raw asset.
ParameterType
argsServerPromiseArgs
commandFileCommandFile

Returns Promise<DataOrError<number>>. Inherited from ClientMash.commandFilePromise.

constrainedValue(found, value?): undefined | Scalar

ParameterType
foundProperty
value?Scalar

Returns undefined | Scalar. Inherited from ClientMash.constrainedValue.

dispatchChanged(action): void

ParameterType
actionUndoableEdit

Returns void. Inherited from ClientMash.dispatchChanged.

draw(): void

Returns void. Inherited from ClientMash.draw.

elementsPromise(rect?): Promise<SvgItem[]>

ParameterType
rect?Rect<number>

Returns Promise<SvgItem[]>. Inherited from ClientMash.elementsPromise.

findClip(id?): undefined | ClientClip

ParameterType
id?string

Returns undefined | ClientClip. Inherited from ClientMash.findClip.

findMedia(assetId?): undefined | ClientAsset

ParameterType
assetId?string

Returns undefined | ClientAsset. Inherited from ClientMash.findMedia.

findResource(…types): undefined | Resource

ParameterType
typesstring[]

Returns undefined | Resource. Inherited from ClientMash.findResource.

framesHaveChanged(frames?): void

ParameterType
frames?number

Returns void. Inherited from ClientMash.framesHaveChanged.

imagePromise(resource): Promise<DataOrError<ClientImage>>

ParameterType
resourceResource

Returns Promise<DataOrError<ClientImage>>. Inherited from ClientMash.imagePromise.

instanceArgs(object?): InstanceArgs

ParameterType
object?InstanceObject

Returns InstanceArgs. Inherited from ClientMash.instanceArgs.

instanceFromObject(object?): Instance

ParameterType
object?InstanceObject

Returns Instance. Inherited from ClientMash.instanceFromObject.

number(key): number

ParameterType
keystring

Returns number. Inherited from ClientMash.number.

propertiesOfTarget(targetId): Property[]

ParameterType
targetIdstring

Returns Property[]. Inherited from ClientMash.propertiesOfTarget.

propertyFind(name): undefined | Property

ParameterType
namestring

Returns undefined | Property. Inherited from ClientMash.propertyFind.

propertyIds(targetId): `${string}.${string}`[]

ParameterType
targetIdstring

Returns `${string}.${string}`[]. Inherited from ClientMash.propertyIds.

reload(): undefined | Promise<void>

Returns undefined | Promise<void>. Inherited from ClientMash.reload.

removeClipFromTrack(clip): void

ParameterType
clipOrArray<ClientClip>

Returns void. Inherited from ClientMash.removeClipFromTrack.

removeTrack(index?): void

ParameterType
index?number

Returns void. Inherited from ClientMash.removeTrack.

savePromise(progress?): Promise<DataOrError<string>>

ParameterType
progress?ServerProgress

Returns Promise<DataOrError<string>>. Inherited from ClientMash.savePromise.

scalarsRecord(idOrNames): ScalarRecord

ParameterType
idOrNamesstring[]

Returns ScalarRecord. Inherited from ClientMash.scalarsRecord.

seekToTime(time): undefined | Promise<void>

ParameterType
timeTime

Returns undefined | Promise<void>. Inherited from ClientMash.seekToTime.

setValue(nameOrId, scalar?, dontConstrain?): void

ParameterType
nameOrIdstring
scalar?Scalar
dontConstrain?boolean

Returns void. Inherited from ClientMash.setValue.

shouldSelectProperty(property): boolean

ParameterType
propertyProperty

Returns boolean. Inherited from ClientMash.shouldSelectProperty.

string(key): string

ParameterType
keystring

Returns string. Inherited from ClientMash.string.

toJSON(): UnknownRecord

Returns UnknownRecord. Inherited from ClientMash.toJSON.

trackInstance(args): Track

ParameterType
argsTrackArgs

Returns Track. Inherited from ClientMash.trackInstance.

tweenValues(key, time, range): Scalar[]

ParameterType
keystring
timeTime
rangeTimeRange

Returns Scalar[]. Inherited from ClientMash.tweenValues.

tweens(key): boolean

ParameterType
keystring

Returns boolean. Inherited from ClientMash.tweens.

unload(): void

Returns void. Inherited from ClientMash.unload.

updateAssetId(oldId, newId): void

ParameterType
oldIdstring
newIdstring

Returns void. Inherited from ClientMash.updateAssetId.

value(key): undefined | Scalar

ParameterType
keystring

Returns undefined | Scalar. Inherited from ClientMash.value.

ClippedClientMashVideo

Extends MashInstance.

PropertyType
assetMedia
assetIdstring
canBeMutedboolean
clipClip
idstring
instanceObjectInstanceObject
isDefaultboolean
mediaIdsstring[]
mutedboolean
propertiesProperty[]
targetIdstring

Methods

assetTime(masherTime): Time

ParameterType
masherTimeTime

Returns Time. Inherited from MashInstance.assetTime.

boolean(key): boolean

ParameterType
keystring

Returns boolean. Inherited from MashInstance.boolean.

changeObject(propertyId, scalar?): ChangeEditObject

ParameterType
propertyId`${string}.${string}`
scalar?Scalar

Returns ChangeEditObject. Inherited from MashInstance.changeObject.

changeScalars(scalars): void

ParameterType
scalarsPartial<SignalScalarRecord>

Returns void. Inherited from MashInstance.changeScalars.

changesObject(scalars): ChangePropertiesEditObject

ParameterType
scalarsPartial<SignalScalarRecord>

Returns ChangePropertiesEditObject. Inherited from MashInstance.changesObject.

commandFiles(args): CommandFile[]

ParameterType
argsCommandFileArgs

Returns CommandFile[]. Inherited from MashInstance.commandFiles.

constrainedValue(found, value?): undefined | Scalar

ParameterType
foundProperty
value?Scalar

Returns undefined | Scalar. Inherited from MashInstance.constrainedValue.

frames(quantize): number

ParameterType
quantizenumber

Returns number. Inherited from MashInstance.frames.

instanceCachePromise(args): Promise<DataOrError<number>>

ParameterType
argsInstanceCacheArgs

Returns Promise<DataOrError<number>>. Inherited from MashInstance.instanceCachePromise.

intrinsicsKnown(options): boolean

ParameterType
optionsIntrinsicOptions

Returns boolean. Inherited from MashInstance.intrinsicsKnown.

number(key): number

ParameterType
keystring

Returns number. Inherited from MashInstance.number.

propertiesOfTarget(targetId): Property[]

ParameterType
targetIdstring

Returns Property[]. Inherited from MashInstance.propertiesOfTarget.

propertyFind(name): undefined | Property

ParameterType
namestring

Returns undefined | Property. Inherited from MashInstance.propertyFind.

propertyIds(targetId): `${string}.${string}`[]

ParameterType
targetIdstring

Returns `${string}.${string}`[]. Inherited from MashInstance.propertyIds.

scalarsById(targetId, time?, timeIsStart?, useNames?): SignalScalarRecord

ParameterType
targetIdstring
time?Time
timeIsStart?boolean
useNames?boolean

Returns SignalScalarRecord. Inherited from MashInstance.scalarsById.

scalarsRecord(idOrNames): ScalarRecord

ParameterType
idOrNamesstring[]

Returns ScalarRecord. Inherited from MashInstance.scalarsRecord.

setValue(nameOrId, scalar?, dontConstrain?): void

ParameterType
nameOrIdstring
scalar?Scalar
dontConstrain?boolean

Returns void. Inherited from MashInstance.setValue.

shouldSelectProperty(property): boolean

ParameterType
propertyProperty

Returns boolean. Inherited from MashInstance.shouldSelectProperty.

string(key): string

ParameterType
keystring

Returns string. Inherited from MashInstance.string.

toJSON(): UnknownRecord

Returns UnknownRecord. Inherited from MashInstance.toJSON.

tweenValues(key, time, range): Scalar[]

ParameterType
keystring
timeTime
rangeTimeRange

Returns Scalar[]. Inherited from MashInstance.tweenValues.

tweens(key): boolean

ParameterType
keystring

Returns boolean. Inherited from MashInstance.tweens.

value(key): undefined | Scalar

ParameterType
keystring

Returns undefined | Scalar. Inherited from MashInstance.value.

ClippedMashVideo

Extends MashInstance.

PropertyType
assetMedia
assetIdstring
canBeMutedboolean
clipClip
idstring
instanceObjectInstanceObject
isDefaultboolean
mediaIdsstring[]
mutedboolean
propertiesProperty[]
targetIdstring

Methods

assetTime(masherTime): Time

ParameterType
masherTimeTime

Returns Time. Inherited from MashInstance.assetTime.

boolean(key): boolean

ParameterType
keystring

Returns boolean. Inherited from MashInstance.boolean.

changeObject(propertyId, scalar?): ChangeEditObject

ParameterType
propertyId`${string}.${string}`
scalar?Scalar

Returns ChangeEditObject. Inherited from MashInstance.changeObject.

changeScalars(scalars): void

ParameterType
scalarsPartial<SignalScalarRecord>

Returns void. Inherited from MashInstance.changeScalars.

changesObject(scalars): ChangePropertiesEditObject

ParameterType
scalarsPartial<SignalScalarRecord>

Returns ChangePropertiesEditObject. Inherited from MashInstance.changesObject.

commandFiles(args): CommandFile[]

ParameterType
argsCommandFileArgs

Returns CommandFile[]. Inherited from MashInstance.commandFiles.

constrainedValue(found, value?): undefined | Scalar

ParameterType
foundProperty
value?Scalar

Returns undefined | Scalar. Inherited from MashInstance.constrainedValue.

frames(quantize): number

ParameterType
quantizenumber

Returns number. Inherited from MashInstance.frames.

instanceCachePromise(args): Promise<DataOrError<number>>

ParameterType
argsInstanceCacheArgs

Returns Promise<DataOrError<number>>. Inherited from MashInstance.instanceCachePromise.

intrinsicsKnown(options): boolean

ParameterType
optionsIntrinsicOptions

Returns boolean. Inherited from MashInstance.intrinsicsKnown.

number(key): number

ParameterType
keystring

Returns number. Inherited from MashInstance.number.

propertiesOfTarget(targetId): Property[]

ParameterType
targetIdstring

Returns Property[]. Inherited from MashInstance.propertiesOfTarget.

propertyFind(name): undefined | Property

ParameterType
namestring

Returns undefined | Property. Inherited from MashInstance.propertyFind.

propertyIds(targetId): `${string}.${string}`[]

ParameterType
targetIdstring

Returns `${string}.${string}`[]. Inherited from MashInstance.propertyIds.

scalarsById(targetId, time?, timeIsStart?, useNames?): SignalScalarRecord

ParameterType
targetIdstring
time?Time
timeIsStart?boolean
useNames?boolean

Returns SignalScalarRecord. Inherited from MashInstance.scalarsById.

scalarsRecord(idOrNames): ScalarRecord

ParameterType
idOrNamesstring[]

Returns ScalarRecord. Inherited from MashInstance.scalarsRecord.

setValue(nameOrId, scalar?, dontConstrain?): void

ParameterType
nameOrIdstring
scalar?Scalar
dontConstrain?boolean

Returns void. Inherited from MashInstance.setValue.

shouldSelectProperty(property): boolean

ParameterType
propertyProperty

Returns boolean. Inherited from MashInstance.shouldSelectProperty.

string(key): string

ParameterType
keystring

Returns string. Inherited from MashInstance.string.

toJSON(): UnknownRecord

Returns UnknownRecord. Inherited from MashInstance.toJSON.

tweenValues(key, time, range): Scalar[]

ParameterType
keystring
timeTime
rangeTimeRange

Returns Scalar[]. Inherited from MashInstance.tweenValues.

tweens(key): boolean

ParameterType
keystring

Returns boolean. Inherited from MashInstance.tweens.

value(key): undefined | Scalar

ParameterType
keystring

Returns undefined | Scalar. Inherited from MashInstance.value.

MashMedia

Extends Media. Extended by MashVideo, MashAudio, MashImage, ClientMash, and ServerMashMedia.

PropertyType
asDataStorableMedia
assetsMedia[]
clipsClip[]
createdAt?string
decodingsDecoding[]
durationnumber
endTimeTime
hasIntrinsicSizing?boolean
hasIntrinsicTiming?boolean
idstring
label?string
mashIndexMashIndex
mediaIdsstring[]
projectId?string
propertiesProperty[]
resourcesResource[]
sizeSize<number>
sourcestring
targetIdstring
totalFramesnumber
tracksTrack[]
typeMediaType
updatedAt?string

Methods

assetCachePromise(args): Promise<DataOrError<number>>

ParameterType
argsAssetCacheArgs

Returns Promise<DataOrError<number>>. Inherited from Media.assetCachePromise.

assetFiles(args): AssetFile[]

All files needed for audible and/or visible encode commands.
ParameterType
argsCacheArgs

Returns AssetFile[]. Inherited from Media.assetFiles.

boolean(key): boolean

ParameterType
keystring

Returns boolean. Inherited from Media.boolean.

changeObject(propertyId, scalar?): ChangeEditObject

ParameterType
propertyId`${string}.${string}`
scalar?Scalar

Returns ChangeEditObject. Inherited from Media.changeObject.

changeScalars(scalars): void

ParameterType
scalarsPartial<SignalScalarRecord>

Returns void. Inherited from Media.changeScalars.

changesObject(scalars): ChangePropertiesEditObject

ParameterType
scalarsPartial<SignalScalarRecord>

Returns ChangePropertiesEditObject. Inherited from Media.changesObject.

clipInstance(object): Clip

ParameterType
objectClipObject

Returns Clip.

clipObject(object?): ClipObject

ParameterType
object?InstanceObject

Returns ClipObject. Inherited from Media.clipObject.

clipsAudibleInTime(time): Clip[]

ParameterType
timeTime

Returns Clip[].

clipsInTimeOfType(time, avType?): Clip[]

ParameterType
timeTime
avType?AVType

Returns Clip[].

commandFilePromise(args, commandFile): Promise<DataOrError<number>>

Writes a command file, if it's not a raw asset.
ParameterType
argsServerPromiseArgs
commandFileCommandFile

Returns Promise<DataOrError<number>>. Inherited from Media.commandFilePromise.

constrainedValue(found, value?): undefined | Scalar

ParameterType
foundProperty
value?Scalar

Returns undefined | Scalar. Inherited from Media.constrainedValue.

findMedia(assetId?): undefined | Media

ParameterType
assetId?string

Returns undefined | Media.

findResource(…types): undefined | Resource

ParameterType
typesstring[]

Returns undefined | Resource. Inherited from Media.findResource.

instanceArgs(object?): InstanceArgs

ParameterType
object?InstanceObject

Returns InstanceArgs. Inherited from Media.instanceArgs.

instanceFromObject(object?): Instance

ParameterType
object?InstanceObject

Returns Instance. Inherited from Media.instanceFromObject.

number(key): number

ParameterType
keystring

Returns number. Inherited from Media.number.

propertiesOfTarget(targetId): Property[]

ParameterType
targetIdstring

Returns Property[]. Inherited from Media.propertiesOfTarget.

propertyFind(name): undefined | Property

ParameterType
namestring

Returns undefined | Property. Inherited from Media.propertyFind.

propertyIds(targetId): `${string}.${string}`[]

ParameterType
targetIdstring

Returns `${string}.${string}`[]. Inherited from Media.propertyIds.

scalarsRecord(idOrNames): ScalarRecord

ParameterType
idOrNamesstring[]

Returns ScalarRecord. Inherited from Media.scalarsRecord.

setValue(nameOrId, scalar?, dontConstrain?): void

ParameterType
nameOrIdstring
scalar?Scalar
dontConstrain?boolean

Returns void. Inherited from Media.setValue.

shouldSelectProperty(property): boolean

ParameterType
propertyProperty

Returns boolean. Inherited from Media.shouldSelectProperty.

string(key): string

ParameterType
keystring

Returns string. Inherited from Media.string.

toJSON(): UnknownRecord

Returns UnknownRecord. Overrides Media.toJSON.

trackInstance(args): Track

ParameterType
argsTrackArgs

Returns Track.

tweenValues(key, time, range): Scalar[]

ParameterType
keystring
timeTime
rangeTimeRange

Returns Scalar[]. Inherited from Media.tweenValues.

tweens(key): boolean

ParameterType
keystring

Returns boolean. Inherited from Media.tweens.

value(key): undefined | Scalar

ParameterType
keystring

Returns undefined | Scalar. Inherited from Media.value.

MashVideo

Extends MashMedia.

PropertyType
asDataStorableMedia
assetsMedia[]
clipsClip[]
createdAt?string
decodingsDecoding[]
durationnumber
endTimeTime
hasIntrinsicSizing?boolean
hasIntrinsicTiming?boolean
idstring
label?string
mashIndexMashIndex
mediaIdsstring[]
projectId?string
propertiesProperty[]
resourcesResource[]
sizeSize<number>
sourcestring
targetIdstring
totalFramesnumber
tracksTrack[]
typeMediaType
updatedAt?string

Methods

assetCachePromise(args): Promise<DataOrError<number>>

ParameterType
argsAssetCacheArgs

Returns Promise<DataOrError<number>>. Inherited from MashMedia.assetCachePromise.

assetFiles(args): AssetFile[]

All files needed for audible and/or visible encode commands.
ParameterType
argsCacheArgs

Returns AssetFile[]. Inherited from MashMedia.assetFiles.

boolean(key): boolean

ParameterType
keystring

Returns boolean. Inherited from MashMedia.boolean.

changeObject(propertyId, scalar?): ChangeEditObject

ParameterType
propertyId`${string}.${string}`
scalar?Scalar

Returns ChangeEditObject. Inherited from MashMedia.changeObject.

changeScalars(scalars): void

ParameterType
scalarsPartial<SignalScalarRecord>

Returns void. Inherited from MashMedia.changeScalars.

changesObject(scalars): ChangePropertiesEditObject

ParameterType
scalarsPartial<SignalScalarRecord>

Returns ChangePropertiesEditObject. Inherited from MashMedia.changesObject.

clipInstance(object): Clip

ParameterType
objectClipObject

Returns Clip. Inherited from MashMedia.clipInstance.

clipObject(object?): ClipObject

ParameterType
object?InstanceObject

Returns ClipObject. Inherited from MashMedia.clipObject.

clipsAudibleInTime(time): Clip[]

ParameterType
timeTime

Returns Clip[]. Inherited from MashMedia.clipsAudibleInTime.

clipsInTimeOfType(time, avType?): Clip[]

ParameterType
timeTime
avType?AVType

Returns Clip[]. Inherited from MashMedia.clipsInTimeOfType.

commandFilePromise(args, commandFile): Promise<DataOrError<number>>

Writes a command file, if it's not a raw asset.
ParameterType
argsServerPromiseArgs
commandFileCommandFile

Returns Promise<DataOrError<number>>. Inherited from MashMedia.commandFilePromise.

constrainedValue(found, value?): undefined | Scalar

ParameterType
foundProperty
value?Scalar

Returns undefined | Scalar. Inherited from MashMedia.constrainedValue.

findMedia(assetId?): undefined | Media

ParameterType
assetId?string

Returns undefined | Media. Inherited from MashMedia.findMedia.

findResource(…types): undefined | Resource

ParameterType
typesstring[]

Returns undefined | Resource. Inherited from MashMedia.findResource.

instanceArgs(object?): InstanceArgs

ParameterType
object?InstanceObject

Returns InstanceArgs. Inherited from MashMedia.instanceArgs.

instanceFromObject(object?): Instance

ParameterType
object?InstanceObject

Returns Instance. Inherited from MashMedia.instanceFromObject.

number(key): number

ParameterType
keystring

Returns number. Inherited from MashMedia.number.

propertiesOfTarget(targetId): Property[]

ParameterType
targetIdstring

Returns Property[]. Inherited from MashMedia.propertiesOfTarget.

propertyFind(name): undefined | Property

ParameterType
namestring

Returns undefined | Property. Inherited from MashMedia.propertyFind.

propertyIds(targetId): `${string}.${string}`[]

ParameterType
targetIdstring

Returns `${string}.${string}`[]. Inherited from MashMedia.propertyIds.

scalarsRecord(idOrNames): ScalarRecord

ParameterType
idOrNamesstring[]

Returns ScalarRecord. Inherited from MashMedia.scalarsRecord.

setValue(nameOrId, scalar?, dontConstrain?): void

ParameterType
nameOrIdstring
scalar?Scalar
dontConstrain?boolean

Returns void. Inherited from MashMedia.setValue.

shouldSelectProperty(property): boolean

ParameterType
propertyProperty

Returns boolean. Inherited from MashMedia.shouldSelectProperty.

string(key): string

ParameterType
keystring

Returns string. Inherited from MashMedia.string.

toJSON(): UnknownRecord

Returns UnknownRecord. Inherited from MashMedia.toJSON.

trackInstance(args): Track

ParameterType
argsTrackArgs

Returns Track. Inherited from MashMedia.trackInstance.

tweenValues(key, time, range): Scalar[]

ParameterType
keystring
timeTime
rangeTimeRange

Returns Scalar[]. Inherited from MashMedia.tweenValues.

tweens(key): boolean

ParameterType
keystring

Returns boolean. Inherited from MashMedia.tweens.

value(key): undefined | Scalar

ParameterType
keystring

Returns undefined | Scalar. Inherited from MashMedia.value.

MashVideoArgs

Extends StorableMedia.MashVisibleProperties.MashAudibleProperties.

PropertyTypeDescription
buffer?number-
color?stringBackground color.
createdAt?string-
height?number-
id?string-
label?string-
loop?boolean-
projectId?string-
quantize?numberDetermines duration of clip frames.
resources?StorableResource[]-
shortest?number-
sourcestring-
tracks?TrackObject[]-
typeMediaType-
updatedAt?string-
width?number-

ServerMashMedia

Extends MashMedia. Extended by ServerMashVideo, ServerMashImage, and ServerMashAudio.

PropertyType
asDataStorableMedia
assetsMedia[]
clipsServerClip[]
createdAt?string
decodingsDecoding[]
durationnumber
endTimeTime
hasIntrinsicSizing?boolean
hasIntrinsicTiming?boolean
idstring
label?string
mashIndexMashIndex
mediaIdsstring[]
projectId?string
propertiesProperty[]
resourcesResource[]
sizeSize<number>
sourcestring
targetIdstring
totalFramesnumber
tracksServerTrack[]
typeMediaType
updatedAt?string

Methods

assetCachePromise(args): Promise<DataOrError<number>>

ParameterType
argsAssetCacheArgs

Returns Promise<DataOrError<number>>. Inherited from MashMedia.assetCachePromise.

assetFiles(args): AssetFile[]

All files needed for audible and/or visible encode commands.
ParameterType
argsCacheArgs

Returns AssetFile[]. Inherited from MashMedia.assetFiles.

boolean(key): boolean

ParameterType
keystring

Returns boolean. Inherited from MashMedia.boolean.

changeObject(propertyId, scalar?): ChangeEditObject

ParameterType
propertyId`${string}.${string}`
scalar?Scalar

Returns ChangeEditObject. Inherited from MashMedia.changeObject.

changeScalars(scalars): void

ParameterType
scalarsPartial<SignalScalarRecord>

Returns void. Inherited from MashMedia.changeScalars.

changesObject(scalars): ChangePropertiesEditObject

ParameterType
scalarsPartial<SignalScalarRecord>

Returns ChangePropertiesEditObject. Inherited from MashMedia.changesObject.

clipInstance(object): ServerClip

ParameterType
objectClipObject

Returns ServerClip. Overrides MashMedia.clipInstance.

clipObject(object?): ClipObject

ParameterType
object?InstanceObject

Returns ClipObject. Inherited from MashMedia.clipObject.

clipsAudibleInTime(time): Clip[]

ParameterType
timeTime

Returns Clip[]. Inherited from MashMedia.clipsAudibleInTime.

clipsInTimeOfType(time, avType?): Clip[]

ParameterType
timeTime
avType?AVType

Returns Clip[]. Inherited from MashMedia.clipsInTimeOfType.

commandFilePromise(args, commandFile): Promise<DataOrError<number>>

Writes a command file, if it's not a raw asset.
ParameterType
argsServerPromiseArgs
commandFileCommandFile

Returns Promise<DataOrError<number>>. Inherited from MashMedia.commandFilePromise.

constrainedValue(found, value?): undefined | Scalar

ParameterType
foundProperty
value?Scalar

Returns undefined | Scalar. Inherited from MashMedia.constrainedValue.

findMedia(assetId?): undefined | Media

ParameterType
assetId?string

Returns undefined | Media. Inherited from MashMedia.findMedia.

findResource(…types): undefined | Resource

ParameterType
typesstring[]

Returns undefined | Resource. Inherited from MashMedia.findResource.

instanceArgs(object?): InstanceArgs

ParameterType
object?InstanceObject

Returns InstanceArgs. Inherited from MashMedia.instanceArgs.

instanceFromObject(object?): Instance

ParameterType
object?InstanceObject

Returns Instance. Inherited from MashMedia.instanceFromObject.

number(key): number

ParameterType
keystring

Returns number. Inherited from MashMedia.number.

propertiesOfTarget(targetId): Property[]

ParameterType
targetIdstring

Returns Property[]. Inherited from MashMedia.propertiesOfTarget.

propertyFind(name): undefined | Property

ParameterType
namestring

Returns undefined | Property. Inherited from MashMedia.propertyFind.

propertyIds(targetId): `${string}.${string}`[]

ParameterType
targetIdstring

Returns `${string}.${string}`[]. Inherited from MashMedia.propertyIds.

scalarsRecord(idOrNames): ScalarRecord

ParameterType
idOrNamesstring[]

Returns ScalarRecord. Inherited from MashMedia.scalarsRecord.

serverMashDescription(options): MashCommands

ParameterType
optionsMashCommandsOptions

Returns MashCommands.

setValue(nameOrId, scalar?, dontConstrain?): void

ParameterType
nameOrIdstring
scalar?Scalar
dontConstrain?boolean

Returns void. Inherited from MashMedia.setValue.

shouldSelectProperty(property): boolean

ParameterType
propertyProperty

Returns boolean. Inherited from MashMedia.shouldSelectProperty.

string(key): string

ParameterType
keystring

Returns string. Inherited from MashMedia.string.

toJSON(): UnknownRecord

Returns UnknownRecord. Inherited from MashMedia.toJSON.

trackInstance(args): Track

ParameterType
argsTrackArgs

Returns Track. Inherited from MashMedia.trackInstance.

tweenValues(key, time, range): Scalar[]

ParameterType
keystring
timeTime
rangeTimeRange

Returns Scalar[]. Inherited from MashMedia.tweenValues.

tweens(key): boolean

ParameterType
keystring

Returns boolean. Inherited from MashMedia.tweens.

value(key): undefined | Scalar

ParameterType
keystring

Returns undefined | Scalar. Inherited from MashMedia.value.

ServerMashVideo

Extends ServerMashMedia.

PropertyType
asDataStorableMedia
assetsMedia[]
clipsServerClip[]
createdAt?string
decodingsDecoding[]
durationnumber
endTimeTime
hasIntrinsicSizing?boolean
hasIntrinsicTiming?boolean
idstring
label?string
mashIndexMashIndex
mediaIdsstring[]
projectId?string
propertiesProperty[]
resourcesResource[]
sizeSize<number>
sourcestring
targetIdstring
totalFramesnumber
tracksServerTrack[]
typeMediaType
updatedAt?string

Methods

assetCachePromise(args): Promise<DataOrError<number>>

ParameterType
argsAssetCacheArgs

Returns Promise<DataOrError<number>>. Inherited from ServerMashMedia.assetCachePromise.

assetFiles(args): AssetFile[]

All files needed for audible and/or visible encode commands.
ParameterType
argsCacheArgs

Returns AssetFile[]. Inherited from ServerMashMedia.assetFiles.

boolean(key): boolean

ParameterType
keystring

Returns boolean. Inherited from ServerMashMedia.boolean.

changeObject(propertyId, scalar?): ChangeEditObject

ParameterType
propertyId`${string}.${string}`
scalar?Scalar

Returns ChangeEditObject. Inherited from ServerMashMedia.changeObject.

changeScalars(scalars): void

ParameterType
scalarsPartial<SignalScalarRecord>

Returns void. Inherited from ServerMashMedia.changeScalars.

changesObject(scalars): ChangePropertiesEditObject

ParameterType
scalarsPartial<SignalScalarRecord>

Returns ChangePropertiesEditObject. Inherited from ServerMashMedia.changesObject.

clipInstance(object): ServerClip

ParameterType
objectClipObject

Returns ServerClip. Inherited from ServerMashMedia.clipInstance.

clipObject(object?): ClipObject

ParameterType
object?InstanceObject

Returns ClipObject. Inherited from ServerMashMedia.clipObject.

clipsAudibleInTime(time): Clip[]

ParameterType
timeTime

Returns Clip[]. Inherited from ServerMashMedia.clipsAudibleInTime.

clipsInTimeOfType(time, avType?): Clip[]

ParameterType
timeTime
avType?AVType

Returns Clip[]. Inherited from ServerMashMedia.clipsInTimeOfType.

commandFilePromise(args, commandFile): Promise<DataOrError<number>>

Writes a command file, if it's not a raw asset.
ParameterType
argsServerPromiseArgs
commandFileCommandFile

Returns Promise<DataOrError<number>>. Inherited from ServerMashMedia.commandFilePromise.

constrainedValue(found, value?): undefined | Scalar

ParameterType
foundProperty
value?Scalar

Returns undefined | Scalar. Inherited from ServerMashMedia.constrainedValue.

findMedia(assetId?): undefined | Media

ParameterType
assetId?string

Returns undefined | Media. Inherited from ServerMashMedia.findMedia.

findResource(…types): undefined | Resource

ParameterType
typesstring[]

Returns undefined | Resource. Inherited from ServerMashMedia.findResource.

instanceArgs(object?): InstanceArgs

ParameterType
object?InstanceObject

Returns InstanceArgs. Inherited from ServerMashMedia.instanceArgs.

instanceFromObject(object?): Instance

ParameterType
object?InstanceObject

Returns Instance. Inherited from ServerMashMedia.instanceFromObject.

number(key): number

ParameterType
keystring

Returns number. Inherited from ServerMashMedia.number.

propertiesOfTarget(targetId): Property[]

ParameterType
targetIdstring

Returns Property[]. Inherited from ServerMashMedia.propertiesOfTarget.

propertyFind(name): undefined | Property

ParameterType
namestring

Returns undefined | Property. Inherited from ServerMashMedia.propertyFind.

propertyIds(targetId): `${string}.${string}`[]

ParameterType
targetIdstring

Returns `${string}.${string}`[]. Inherited from ServerMashMedia.propertyIds.

scalarsRecord(idOrNames): ScalarRecord

ParameterType
idOrNamesstring[]

Returns ScalarRecord. Inherited from ServerMashMedia.scalarsRecord.

serverMashDescription(options): MashCommands

ParameterType
optionsMashCommandsOptions

Returns MashCommands. Inherited from ServerMashMedia.serverMashDescription.

setValue(nameOrId, scalar?, dontConstrain?): void

ParameterType
nameOrIdstring
scalar?Scalar
dontConstrain?boolean

Returns void. Inherited from ServerMashMedia.setValue.

shouldSelectProperty(property): boolean

ParameterType
propertyProperty

Returns boolean. Inherited from ServerMashMedia.shouldSelectProperty.

string(key): string

ParameterType
keystring

Returns string. Inherited from ServerMashMedia.string.

toJSON(): UnknownRecord

Returns UnknownRecord. Inherited from ServerMashMedia.toJSON.

trackInstance(args): Track

ParameterType
argsTrackArgs

Returns Track. Inherited from ServerMashMedia.trackInstance.

tweenValues(key, time, range): Scalar[]

ParameterType
keystring
timeTime
rangeTimeRange

Returns Scalar[]. Inherited from ServerMashMedia.tweenValues.

tweens(key): boolean

ParameterType
keystring

Returns boolean. Inherited from ServerMashMedia.tweens.

value(key): undefined | Scalar

ParameterType
keystring

Returns undefined | Scalar. Inherited from ServerMashMedia.value.

StorableMashVideo

Extends StorableMash.MashVisibleProperties.MashAudibleProperties.

PropertyTypeDescription
assets?StorableMedia[]-
buffer?number-
color?stringBackground color.
createdAt?string-
height?number-
id?string-
label?string-
loop?boolean-
projectId?string-
quantize?numberDetermines duration of clip frames.
resources?StorableResource[]-
shortest?number-
sourcestring-
tracks?TrackObject[]-
typeMediaType-
updatedAt?string-
width?number-

StoredMashVideo

Extends StoredMedia.MashVisibleProperties.MashAudibleProperties.

PropertyTypeDescription
buffer?number-
color?stringBackground color.
createdAt?string-
height?number-
idstring-
label?string-
loop?boolean-
projectId?string-
quantize?numberDetermines duration of clip frames.
resources?StoredResource[]-
shortest?number-
sourcestring-
tracks?TrackObject[]-
typeMediaType-
updatedAt?string-
width?number-

Functions

MashMediaMixin

MashMediaMixin<T>(Base): T & Constrained<MashMedia>

Type ParameterDescription
T extends Constrained<Media>
ParameterTypeDescription
BaseT

Returns T & Constrained<MashMedia>.

isMashMedia

isMashMedia(value): value is MashMedia

ParameterType
valueany

Returns value is MashMedia.