Captions are custom text superimposed on the video. You can add and adjust the caption position. After adding caption, you can also set styles, including font size, color, shadow, stroke, etc.
More...
|
| constructor () |
| 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...
|
|
| setModularCaptionAnimationPeriod (periodInMS) |
| Set modular caption Animation Period. More...
|
|
| getModularCaptionAnimationPeriod () |
| Get modular caption Animation Period. 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...
|
|
| setText (text) |
| Sets caption text. More...
|
|
| getText () |
| Gets caption text. 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...
|
|
async | 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 (captionActualBoundingRect=false) |
| Get caption text rectangle. 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 KeyFrameTime. 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...
|
|
| setTextSpanList (spanList) |
| Set layout attributes from the start character to the end character of caption in list. More...
|
|
| getTextSpanList () |
| Get layout attributes list of caption. More...
|
|
| constructor () |
| The constructor of NveEffectInstance.
|
|
| release () |
| Release the instance of effect You must call release() if you won't use this effect instance object anymore, otherwise there will be severe internal resources leak!
|
|
| setIntVal (fxParam, val) |
| Set the integer parameter value of the effect. More...
|
|
| getIntVal (fxParam) |
| Get the integer parameter value of the effect. More...
|
|
| setFloatVal (fxParam, val) |
| Set the float parameter value of the effect. More...
|
|
| getFloatVal (fxParam) |
| Get the float parameter value of the effect. More...
|
|
| setBooleanVal (fxParam, val) |
| Set the boolean parameter value of the effect. More...
|
|
| getBooleanVal (fxParam) |
| Get the boolean parameter value of the effect. More...
|
|
| setMenuVal (fxParam, val) |
| Set the menu parameter value of the effect. More...
|
|
| getMenuVal (fxParam) |
| Get the menu parameter value of the effect. More...
|
|
| setStringVal (fxParam, val) |
| Set the string parameter value of the effect. More...
|
|
| getStringVal (fxParam) |
| Get the string parameter value of the effect. More...
|
|
| setColorVal (fxParam, val) |
| Set the color parameter value of the effect. More...
|
|
| getColorVal (fxParam) |
| Get the color parameter value of the effect. More...
|
|
| setFilterIntensity (intensity) |
| Set the intensity of the filter. More...
|
|
| getFilterIntensity () |
| Get the intensity of the filter. More...
|
|
| getARSceneManipulate () |
| Get the manipulate of ARScene. More...
|
|
| getInPoint () |
| Get in-point of effect. More...
|
|
| getOutPoint () |
| Get out point of effect. More...
|
|
| changeInPoint (newInPoint) |
| Changes in-point of effect. More...
|
|
| changeOutPoint (newOutPoint) |
| Changes out-point of effect. More...
|
|
Captions are custom text superimposed on the video. You can add and adjust the caption position. After adding caption, you can also set styles, including font size, color, shadow, stroke, etc.
- See also
- NveEffectInstance