KSYGPUPipStreamerKit Class Reference

Inherits from KSYGPUStreamerKit : NSObject
Declared in KSYGPUPipStreamerKit.h

  pipTrack

画中画通道

@property (nonatomic, readonly) int pipTrack

Declared In

KSYGPUPipStreamerKit.h

  bgPicLayer

背景图片图层

@property (nonatomic, readonly) NSInteger bgPicLayer

Declared In

KSYGPUPipStreamerKit.h

  pipLayer

画中画图层

@property (nonatomic, readonly) NSInteger pipLayer

Declared In

KSYGPUPipStreamerKit.h

– startPipWithPlayerUrl:bgPic:

开启画中画 @param playerUrl:播放视频的url @param bgUrl:背景图片的url

- (void)startPipWithPlayerUrl:(NSURL *_Nullable)playerUrl bgPic:(NSURL *_Nullable)bgUrl

Declared In

KSYGPUPipStreamerKit.h

– stopPip

停止画中画 *

- (void)stopPip

Declared In

KSYGPUPipStreamerKit.h

  player

背景播放器

@property (nonatomic, readonly) KSYMoviePlayerController *player

Declared In

KSYGPUPipStreamerKit.h

  bgPic

背景图片

@property (nonatomic, strong) GPUImagePicture *bgPic

Declared In

KSYGPUPipStreamerKit.h

  yuvInput

画中画图像输入

@property (nonatomic, readonly) KSYGPUPicInput *yuvInput

Discussion

用于衔接画中画播放器和图像混合器 (KSYPicPipLayer = 1)

主要用于将图像的原始数据上传到GPU

Declared In

KSYGPUPipStreamerKit.h

  bgPicRect

背景图片的位置和大小

@property (nonatomic, readwrite) CGRect bgPicRect

Discussion

位置和大小的单位为预览视图的百分比, 左上角为(0,0), 右下角为(1.0, 1.0)

如果宽为0, 则根据图像的宽高比, 和设置的高度比例, 计算得到宽度的比例

如果高为0, 方法同上

Declared In

KSYGPUPipStreamerKit.h

  pipRect

画中画的位置和大小

@property (nonatomic, readwrite) CGRect pipRect

Discussion

位置和大小的单位为预览视图的百分比, 左上角为(0,0), 右下角为(1.0, 1.0)

如果宽为0, 则根据图像的宽高比, 和设置的高度比例, 计算得到宽度的比例

如果高为0, 方法同上

Declared In

KSYGPUPipStreamerKit.h

  cameraRect

相机的位置和大小

@property (nonatomic, readwrite) CGRect cameraRect

Discussion

位置和大小的单位为预览视图的百分比, 左上角为(0,0), 右下角为(1.0, 1.0)

如果宽为0, 则根据图像的宽高比, 和设置的高度比例, 计算得到宽度的比例

如果高为0, 方法同上

Declared In

KSYGPUPipStreamerKit.h

– getPipStateName:

获取状态对应的字符串

- (NSString *_Nonnull)getPipStateName:(MPMoviePlaybackState)stat

Parameters

stat

状态

Declared In

KSYGPUPipStreamerKit.h

– getCurPipStateName

获取当前状态对应的字符串

- (NSString *_Nonnull)getCurPipStateName

Declared In

KSYGPUPipStreamerKit.h

  PipState

播放状态

@property (nonatomic, readonly) MPMoviePlaybackState PipState

Declared In

KSYGPUPipStreamerKit.h