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

Subtitle rendering context. More...

#include "AliVttSubtitleView.h"

Inheritance diagram for RenderContext:

Properties

CGFloat contentsScale
 内容缩放比例(像素到点的转换比例) Content scale ratio (pixel to point conversion ratio)
 
CGFloat maxTextWidth
 字幕文本的最大允许宽度 Maximum allowed width of subtitle text
 
CGSize parentSize
 父视图的尺寸(容器大小) Parent view size (container size)
 
CGSize textDisplaySize
 字幕文本的显示尺寸 Display size of subtitle text
 
CGFloat textX
 字幕文本的X坐标位置 X coordinate position of subtitle text
 
CGFloat textY
 字幕文本的Y坐标位置 Y coordinate position of subtitle text
 
CGSize videoDisplaySize
 视频内容的显示尺寸 Display size of video content
 
CGFloat videoOffsetX
 视频显示区域相对于父视图的X偏移 X offset of video display area relative to parent view
 
CGFloat videoOffsetY
 视频显示区域相对于父视图的Y偏移 Y offset of video display area relative to parent view
 

Detailed Description

Subtitle rendering context.

Encapsulates various size and position information needed during subtitle rendering, used to pass calculation results in the rendering pipeline.

Property Documentation

◆ contentsScale

- (CGFloat) contentsScale
readwritenonatomicassign

内容缩放比例(像素到点的转换比例) Content scale ratio (pixel to point conversion ratio)

◆ maxTextWidth

- (CGFloat) maxTextWidth
readwritenonatomicassign

字幕文本的最大允许宽度 Maximum allowed width of subtitle text

◆ parentSize

- (CGSize) parentSize
readwritenonatomicassign

父视图的尺寸(容器大小) Parent view size (container size)

◆ textDisplaySize

- (CGSize) textDisplaySize
readwritenonatomicassign

字幕文本的显示尺寸 Display size of subtitle text

◆ textX

- (CGFloat) textX
readwritenonatomicassign

字幕文本的X坐标位置 X coordinate position of subtitle text

◆ textY

- (CGFloat) textY
readwritenonatomicassign

字幕文本的Y坐标位置 Y coordinate position of subtitle text

◆ videoDisplaySize

- (CGSize) videoDisplaySize
readwritenonatomicassign

视频内容的显示尺寸 Display size of video content

◆ videoOffsetX

- (CGFloat) videoOffsetX
readwritenonatomicassign

视频显示区域相对于父视图的X偏移 X offset of video display area relative to parent view

◆ videoOffsetY

- (CGFloat) videoOffsetY
readwritenonatomicassign

视频显示区域相对于父视图的Y偏移 Y offset of video display area relative to parent view


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