|
MeiCam SDK For Web
3.14.2
|
Time follow caption. More...
Public Member Functions | |
| constructor () | |
| getCaptionStylePackageId () | |
| Gets the caption style package ID. More... | |
| getModularCaptionContextPackageId () | |
| Gets the modular caption context style package ID. More... | |
| getModularCaptionRendererPackageId () | |
| Gets the modular caption context style package ID. More... | |
| getModularCaptionAnimationPackageId () | |
| Gets the modular caption animation style package ID. More... | |
| getModularCaptionInAnimationPackageId () | |
| Gets the modular caption in-animation style package ID. More... | |
| getModularCaptionOutAnimationPackageId () | |
| Gets the modular caption out-animation style package ID. More... | |
| applyCaptionStyle (captionStylePackageId, isUseDefaultAssetParam) | |
| Apply caption style. More... | |
| applyModularCaptionContext (captionContextPackageId) | |
| Applys modular caption context style. More... | |
| applyModularCaptionRenderer (captionRendererPackageId) | |
| Applys modular caption render style. More... | |
| applyModularCaptionAnimation (captionAnimationPackageId) | |
| Applys modular caption loop-animation style. More... | |
| applyModularCaptionInAnimation (captionInAnimationPackageId) | |
| Applys modular caption in-animation style. Notes:please set loop-Animation to null before you set in-animation, otherwise it will NOT works. More... | |
| applyModularCaptionOutAnimation (captionOutAnimationPackageId) | |
| Applys modular caption out-animation style.Notes:please set loop-Animation to null before you set out-animation, otherwise it will NOT works. More... | |
| setModularCaptionAnimationPeroid (periodInMS) | |
| Set modular caption Animation Peroid. More... | |
| getModularCaptionAnimationPeroid () | |
| Get modular caption Animation Peroid. More... | |
| setModularCaptionInAnimationDuration (inAnimationDurationInMS) | |
| Set modular caption in-animation duration. More... | |
| getModularCaptionInAnimationDuration () | |
| Get modular caption in-animation duration. More... | |
| setModularCaptionOutAnimationDuration (outAnimationDurationInMS) | |
| Set modular caption out-animation duration. More... | |
| getModularCaptionOutAnimationDuration () | |
| Get modular caption out-animation duration. More... | |
| setTextAlignment (textAlign) | |
| Set caption horizontal alignment style. More... | |
| getTextAlignment () | |
| Get caption horizontal alignment style. More... | |
| setTextVerticalAlignment (textAlign) | |
| Set caption horizontal alignment style. More... | |
| getTextVerticalAlignment () | |
| Gets caption vertical alignment style, valid for frame-caption only. More... | |
| setVerticalLayout (verticalLayout) | |
| Sets whether to layout text vertically. More... | |
| getVerticalLayout () | |
| Gets whether to layout text vertically. More... | |
| setBold (bold) | |
| Set caption font bold. More... | |
| getBold () | |
| Get the caption font bold state. More... | |
| setItalic (italic) | |
| Set caption font italic. More... | |
| getItalic () | |
| Get caption font italic. More... | |
| setUnderline (underline) | |
| Set caption underline. More... | |
| getUnderline () | |
| Get caption underline. More... | |
| setLetterSpacingType (letterSpacingType) | |
| Set caption word spacing type. More... | |
| getLetterSpacingType () | |
| Get caption word spacing type. More... | |
| setLetterSpacing (letterSpacing) | |
| Set caption letter spacing. More... | |
| getLetterSpacing () | |
| Get caption letter spacing. More... | |
| setLineSpacing (lineSpacing) | |
| Set line spacing. More... | |
| getLineSpacing () | |
| Get line spacing. More... | |
| setWeight (weight) | |
| Set caption weight. More... | |
| getWeight () | |
| Get caption weight. More... | |
| setTextColor (color) | |
| Set caption text color. More... | |
| getTextColor () | |
| Get caption text color. More... | |
| setDrawOutline (drawOutline) | |
| Set caption stroke. More... | |
| getDrawOutline () | |
| Get caption stroke. More... | |
| setOutlineWidth (outlineWidth) | |
| Set the width of the caption stroke. More... | |
| getOutlineWidth () | |
| Get the width of the caption stroke. More... | |
| setOutlineColor (color) | |
| Set the color of the caption stroke. More... | |
| getOutlineColor () | |
| Get the color of the caption stroke. More... | |
| setDrawShadow (drawShadow) | |
| Set caption shadows. More... | |
| getDrawShadow () | |
| Get caption shadows. More... | |
| setShadowOffset (offset) | |
| Set caption shadow offset. More... | |
| getShadowOffset () | |
| Gets the offset of the current caption shadow. More... | |
| setShadowColor (color) | |
| Set caption shadow color. More... | |
| getShadowColor () | |
| Get caption shadow color. More... | |
| setShadowFeather (feather) | |
| Set the feathering degree of the caption shadow. More... | |
| getShadowFeather () | |
| Get the feathering degree of the caption shadow. More... | |
| setFontSize (fontSize) | |
| Set caption font size. More... | |
| getFontSize () | |
| Get caption font size. More... | |
| setFontByFilePath (filePath) | |
| Set caption font by file path. More... | |
| getFontFilePath () | |
| Get caption font file path. More... | |
| setFontFamily (family) | |
| Set caption font family. More... | |
| getFontFamily () | |
| Get caption font family. More... | |
| getFontCompoundFamilyName () | |
| Get compound caption font family name. More... | |
| setCaptionTranslation (translation) | |
| Set the amount of caption translation. More... | |
| getCaptionTranslation () | |
| Get the amount of caption translation. More... | |
| translateCaption (translationOffset) | |
| Caption translation. More... | |
| setAnchorPoint (anchor) | |
| Set caption anchor. More... | |
| getAnchorPoint () | |
| Get caption anchor. More... | |
| setScaleX (scale) | |
| Set horizontal scaling factor for caption. More... | |
| getScaleX () | |
| Get horizontal scaling factor for caption. More... | |
| setScaleY (scale) | |
| Set vertical scaling factor for caption. More... | |
| getScaleY () | |
| Get vertical scaling factor for caption. More... | |
| scaleCaption (scaleFactor, anchor) | |
| Zooms caption. More... | |
| scaleCaption2 (scaleFactor) | |
| Scale caption on center. More... | |
| setRotationZ (angle) | |
| Set rotation angle for caption. More... | |
| getRotationZ () | |
| Get rotation angle for caption. More... | |
| rotateCaption (angle, anchor) | |
| Rotate caption. More... | |
| rotateCaption2 (angle) | |
| Rotates caption with the caption center point as the anchor point. More... | |
| getTextBoundingRect () | |
| Get caption text rectangle. More... | |
| getBoundingRectangleVertices () | |
| Get the vertex position of the original enclosing rectangle of the caption after transformation. More... | |
| getCaptionBoundingVertices (boundingType) | |
| Get the transformed vertices position of the original caption bounding. More... | |
| setZValue (value) | |
| Set caption Z value. More... | |
| getZValue () | |
| Get caption Z value. More... | |
| setRecordingUserOperation (recordingUserOperation) | |
| Set whether to record user actions. More... | |
| setOpacity (opacity) | |
| Set caption opacity. More... | |
| getOpacity () | |
| Get caption opacity. More... | |
| isFrameCaption () | |
| Determine if it is a border caption. More... | |
| isTextColorChanged () | |
| Determine if caption text color changed. More... | |
| isModular () | |
| Determines whether the current caption is a modular caption. More... | |
| setBackgroundColor (backgroundColor) | |
| Set text background color. More... | |
| getBackgroundColor () | |
| Get the current text background color value. More... | |
| setBackgroundRadius (radius) | |
| Set text background rectangle's corner radius. More... | |
| getBackgroundRadius () | |
| Get text background rectangle's corner radius. More... | |
| setCurrentKeyFrameTime (time) | |
| Set the caption current time values as key frame. More... | |
| setIsLyrics (isLyrics) | |
| Set caption lyrics type. More... | |
| isLyrics () | |
| Lyrics or not. More... | |
| enableSpeed (enable) | |
| enable speed More... | |
| isSpeedEnabled () | |
| is Enable speed More... | |
| setFrameCaptionMaxFontSize (maxFontSize) | |
| Set the max font size for border caption. Only border caption can use this method. More... | |
| setTextFrameOriginRect (rect) | |
| Set the original frame size of the frame caption. If the current caption is not a frame caption, this function has no effect. You can get origin frame size. More... | |
| getInPoint () | |
| Get the in-point of the caption on the timeline. More... | |
| getOutPoint () | |
| The out-point of the caption on the timeline. More... | |
| changeInPoint (newInPoint) | |
| Changes the in-point of the caption on the timeline. More... | |
| changeOutPoint (newOutPoint) | |
| Changes the out-point of the caption on the timeline. More... | |
| movePosition (offset) | |
| Changes the display position of the caption on the timeline (the in and out points are offset from the offset value at the same time). More... | |
| setTemplateAttachment (key, value) | |
| Adds additional template data to the NvsObject object to identify the NvsObject template object. More... | |
| getTemplateAttachment (key) | |
| Gets an template attachment to NvsObject. More... | |
| applyHighlightSpanList (spanList, timelineWidth, timelineHeight) | |
| Apply highlight span list. More... | |
| applyTimeFollowStyle (styleDirPath, timeline) | |
| Apply time follow style. More... | |
| setTimeFollowCaptionInfo (captionInfo, timeline) | |
| Set time follow caption info. More... | |
| resetTimelineSize (timelineWidth, timelineHeight) | |
| Reset timeline size. More... | |
Time follow caption.
|
inline |
Apply caption style.
| {String} | captionStylePackageId Caption style resource package ID. |
| {Number} | isUseDefaultAssetParam Whether to use the properties that come with the caption package. |
|
inline |
Apply highlight span list.
| {NvsVectorVal<NvsCaptionSpan>} | spanList Highlight span list |
| {Number} | timelineWidth Owner timeline width |
| {Number} | timelineHeight Owner timeline height |
|
inline |
Applys modular caption loop-animation style.
| {String} | captionAnimationPackageId caption animation package id |
|
inline |
Applys modular caption context style.
| {String} | captionContextPackageId Modular caption context style resource package ID. |
|
inline |
Applys modular caption in-animation style. Notes:please set loop-Animation to null before you set in-animation, otherwise it will NOT works.
| {String} | captionInAnimationPackageId caption in animation package id |
|
inline |
Applys modular caption out-animation style.Notes:please set loop-Animation to null before you set out-animation, otherwise it will NOT works.
| {String} | captionOutAnimationPackageId Modular caption out-animation style resource package ID. |
|
inline |
Applys modular caption render style.
| {String} | captionRendererPackageId Modular caption render style resource package ID. |
|
inline |
Apply time follow style.
| {String} | styleDirPath Style directory |
| {NvsTimeline} | timeline Owner timeline |
|
inline |
Changes the in-point of the caption on the timeline.
| {Number} | newInPoint The new in-point of the caption on the timeline (in microseconds). |
|
inline |
Changes the out-point of the caption on the timeline.
| {Number} | newOutPoint The new out-point of the caption on the timeline (in microseconds). |
|
inline |
@constructor
|
inline |
enable speed
| {Boolean} | enable |
|
inline |
Get caption anchor.
|
inline |
|
inline |
Get text background rectangle's corner radius.
|
inline |
Get the caption font bold state.
|
inline |
Get the vertex position of the original enclosing rectangle of the caption after transformation.
|
inline |
Get the transformed vertices position of the original caption bounding.
| {number} | boundingType (NvsCaptionTextBoundingTypeEnum) Bounding type |
|
inline |
Gets the caption style package ID.
|
inline |
Get the amount of caption translation.
|
inline |
Get caption stroke.
|
inline |
Get caption shadows.
|
inline |
Get compound caption font family name.
|
inline |
Get caption font family.
|
inline |
Get caption font file path.
|
inline |
Get caption font size.
|
inline |
Get the in-point of the caption on the timeline.
|
inline |
Get caption font italic.
|
inline |
Get caption letter spacing.
|
inline |
Get caption word spacing type.
|
inline |
Get line spacing.
|
inline |
Gets the modular caption animation style package ID.
|
inline |
Get modular caption Animation Peroid.
|
inline |
Gets the modular caption context style package ID.
|
inline |
Get modular caption in-animation duration.
|
inline |
Gets the modular caption in-animation style package ID.
|
inline |
Get modular caption out-animation duration.
|
inline |
Gets the modular caption out-animation style package ID.
|
inline |
Gets the modular caption context style package ID.
|
inline |
Get caption opacity.
|
inline |
|
inline |
Get the width of the caption stroke.
|
inline |
The out-point of the caption on the timeline.
|
inline |
Get rotation angle for caption.
|
inline |
Get horizontal scaling factor for caption.
|
inline |
Get vertical scaling factor for caption.
|
inline |
|
inline |
Get the feathering degree of the caption shadow.
|
inline |
Gets the offset of the current caption shadow.
|
inline |
Gets an template attachment to NvsObject.
| {String} | key the key that has been added attachment.(TEMPLATE_ASSET_KEY) |
|
inline |
Get caption horizontal alignment style.
|
inline |
Get caption text rectangle.
|
inline |
|
inline |
Gets caption vertical alignment style, valid for frame-caption only.
|
inline |
Get caption underline.
|
inline |
Gets whether to layout text vertically.
|
inline |
Get caption weight.
|
inline |
Get caption Z value.
|
inline |
Determine if it is a border caption.
|
inline |
Lyrics or not.
|
inline |
Determines whether the current caption is a modular caption.
|
inline |
is Enable speed
|
inline |
Determine if caption text color changed.
|
inline |
Changes the display position of the caption on the timeline (the in and out points are offset from the offset value at the same time).
| {Number} | offset Offset value for in and out points changes (in microseconds). |
|
inline |
Reset timeline size.
| {Number} | timelineWidth Owner timeline width |
| {Number} | timelineHeight Owner timeline height |
|
inline |
Rotate caption.
| {Number} | angle Angle of caption rotation. |
| {PointF} | anchor Anchor of caption rotation. |
|
inline |
Rotates caption with the caption center point as the anchor point.
| {Number} | angle Angle of caption rotation. |
|
inline |
Zooms caption.
| {Number} | scaleFactor Caption scaling factor. |
| {PointF} | anchor Caption zoom anchor. |
|
inline |
Scale caption on center.
| {Number} | scaleFactor scale factor |
|
inline |
Set caption anchor.
| {PointF} | anchor Anchor |
|
inline |
Set text background color.
| {NvsColor} | backgroundColor Background color value. |
|
inline |
Set text background rectangle's corner radius.
| {Number} | radius Corner radius value |
|
inline |
Set caption font bold.
| {Boolean} | bold Indicates whether the caption font is bold. True means the font is bold, false means the font is not bold. |
|
inline |
Set the amount of caption translation.
| {PointF} | translation The horizontal and vertical absolute translation of the caption. |
|
inline |
Set the caption current time values as key frame.
| {Number} | time time |
|
inline |
Set caption stroke.
| {Boolean} | drawOutline Whether to stroke the captions. True means it strokes the caption. False means it does not stroke the edges. |
|
inline |
Set caption shadows.
| {Boolean} | drawShadow Whether to set the caption shadow. True means to set the caption shadow, false means to not set. |
|
inline |
Set caption font by file path.
| {String} | filePath The file path of the caption font. If it is set to a null string, it is set as the default font. |
|
inline |
Set caption font family.
| {String} | family Caption font name. It will be set to default font if a null string which is given. |
|
inline |
Set caption font size.
| {Number} | fontSize Caption font size value |
|
inline |
Set the max font size for border caption. Only border caption can use this method.
| {Number} | maxFontSize max font size |
|
inline |
Set caption lyrics type.
| {Boolean} | isLyrics lyrics |
|
inline |
Set caption font italic.
| {Boolean} | italic Whether it is set to italic. True means that the caption font is set to italic, and false means the caption font is not set to italic. |
|
inline |
Set caption letter spacing.
| {Number} | letterSpacing Word spacing is expressed in percentage value by default. |
|
inline |
Set caption word spacing type.
| {Number} | letterSpacingType Word spacing type. |
|
inline |
Set line spacing.
| {} | lineSpacing line spacing is expressed in absolute value. |
|
inline |
Set modular caption Animation Peroid.
| {Number} | periodInMS Animation peroid in millisecond |
|
inline |
Set modular caption in-animation duration.
| {Number} | inAnimationDurationInMS in-animation duration in millisecond |
|
inline |
Set modular caption out-animation duration.
| {Number} | outAnimationDurationInMS out-animation duration in millisecond |
|
inline |
Set caption opacity.
| {Number} | opacity caption opacity. |
|
inline |
Set the color of the caption stroke.
| {NvsColor} | color Caption stroke color value. |
|
inline |
Set the width of the caption stroke.
| {Number} | outlineWidth The width of the caption stroke. |
|
inline |
Set whether to record user actions.
| {Boolean} | recordingUserOperation Record user actions or not |
|
inline |
Set rotation angle for caption.
| {Number} | angle Rotation angle. |
|
inline |
Set horizontal scaling factor for caption.
| {Number} | scale Horizontal scaling factor. |
|
inline |
Set vertical scaling factor for caption.
| {Number} | scale Vertical scaling factor. |
|
inline |
Set caption shadow color.
| {NvsColor} | shadowColor Caption shadow color value. |
|
inline |
Set the feathering degree of the caption shadow.
| {Number} | feather feathering degree |
|
inline |
Set caption shadow offset.
| {PointF} | offset Caption shadow offset. |
|
inline |
Adds additional template data to the NvsObject object to identify the NvsObject template object.
| {String} | key The key of the attachment to be added(TEMPLATE_ASSET_KEY) |
| {String} | value Attachment to be added |
|
inline |
Set caption horizontal alignment style.
| {Number} | textAlign Indicates the caption horizontal alignment style |
|
inline |
Set caption text color.
| {NvsColor} | color Caption text color value. |
|
inline |
Set the original frame size of the frame caption. If the current caption is not a frame caption, this function has no effect. You can get origin frame size.
| {NvsRectF} | rect New frame size. |
|
inline |
Set caption horizontal alignment style.
| {Number} | textAlign Indicates the caption horizontal alignment style |
|
inline |
Set time follow caption info.
| {NvsTimeFollowCaptionInfo} | captionInfo Caption info |
| {NvsTimeline} | timeline Owner timeline |
|
inline |
Set caption underline.
| {Boolean} | underline Whether it is set to under line. |
|
inline |
Sets whether to layout text vertically.
| {Boolean} | verticalLayout whether to layout text vertically |
|
inline |
Set caption weight.
| {Number} | weight the value in opentype weight integer. |
|
inline |
Set caption Z value.
| {Number} | value Z value |
|
inline |
Caption translation.
| {PointF} | translationOffset Horizontal and vertical offset values for caption. |