AliyunPlayer v7.11.0
Aliyun Player API Reference Manual for iOS Platforms
Loading...
Searching...
No Matches
VttLocationAttribute Class Reference

VTT字幕位置属性类 More...

#include "AliVttSubtitleView.h"

Inheritance diagram for VttLocationAttribute:

Class Methods

(int) + ALIGN_CENTER
 居中对齐常量
 
(int) + ALIGN_END
 右对齐常量
 
(int) + ALIGN_START
 左对齐常量
 

Properties

int mAlignment
 文本对齐方式,使用WEBVTT_ALIGN_*常量 Text alignment mode using WEBVTT_ALIGN_* constants
 
double mAngle
 旋转角度,单位为度 Rotation angle in degrees
 
int marginL
 左边距,单位为像素 Left margin in pixels
 
int marginR
 右边距,单位为像素 Right margin in pixels
 
int marginV
 垂直边距,单位为像素 Vertical margin in pixels
 
double mScaleX
 水平缩放比例,1.0为原始大小 Horizontal scale ratio, 1.0 is original size
 
double mScaleY
 垂直缩放比例,1.0为原始大小 Vertical scale ratio, 1.0 is original size
 
double posX
 X坐标位置,单位为像素 X coordinate position in pixels.
 
double posY
 Y坐标位置,单位为像素 Y coordinate position in pixels.
 

Detailed Description

VTT字幕位置属性类

封装字幕在屏幕上的位置、对齐方式、边距和变换信息。 支持WebVTT标准的位置控制功能。

Method Documentation

◆ ALIGN_CENTER

+ (int) ALIGN_CENTER

居中对齐常量

Returns
对齐方式常量值

◆ ALIGN_END

+ (int) ALIGN_END

右对齐常量

Returns
对齐方式常量值

◆ ALIGN_START

+ (int) ALIGN_START

左对齐常量

Returns
对齐方式常量值

Property Documentation

◆ mAlignment

- (int) mAlignment
readwritenonatomicassign

文本对齐方式,使用WEBVTT_ALIGN_*常量 Text alignment mode using WEBVTT_ALIGN_* constants

◆ mAngle

- (double) mAngle
readwritenonatomicassign

旋转角度,单位为度 Rotation angle in degrees

◆ marginL

- (int) marginL
readwritenonatomicassign

左边距,单位为像素 Left margin in pixels

◆ marginR

- (int) marginR
readwritenonatomicassign

右边距,单位为像素 Right margin in pixels

◆ marginV

- (int) marginV
readwritenonatomicassign

垂直边距,单位为像素 Vertical margin in pixels

◆ mScaleX

- (double) mScaleX
readwritenonatomicassign

水平缩放比例,1.0为原始大小 Horizontal scale ratio, 1.0 is original size

◆ mScaleY

- (double) mScaleY
readwritenonatomicassign

垂直缩放比例,1.0为原始大小 Vertical scale ratio, 1.0 is original size

◆ posX

- (double) posX
readwritenonatomicassign

X坐标位置,单位为像素 X coordinate position in pixels.

◆ posY

- (double) posY
readwritenonatomicassign

Y坐标位置,单位为像素 Y coordinate position in pixels.


The documentation for this class was generated from the following file: