iOS SDK API Reference

SKWVideo.h
Go to the documentation of this file.
1 // SKWVideo.h
3 // SkyWay SDK
5 #import <Foundation/Foundation.h>
6 #if TARGET_OS_IPHONE
7 #import <UIKit/UIKit.h>
8 #define ViewRoot UIView
9 #elif TARGET_OS_MAC
10 #import <AppKit/AppKit.h>
11 #define ViewRoot NSView
12 #else
13 #define ViewRoot NSObject
14 #endif
15 #import "SKWCommon.h"
16 
21 typedef NS_ENUM(NSUInteger, SKWVideoScalingEnum)
25 {
34 };
35 
36 @class SKWMediaStream;
37 
47 @interface SKWVideo : ViewRoot
48 
52 @property (nonatomic) SKWVideoScalingEnum scaling;
53 
82 - (BOOL)addSrc:(SKWMediaStream* __nonnull)stream track:(NSUInteger)trackNo SKYWAY_API_DEPRECATED;
83 
111 - (BOOL)removeSrc:(SKWMediaStream* __nonnull)stream track:(NSUInteger)trackNo SKYWAY_API_DEPRECATED;
112 
128 - (void)setDidChangeVideoSizeCallback:(void (^ __nonnull)(CGSize))callback;
129 
138 - (void)setMirrorViewing:(BOOL)mirror;
139 
140 @end
SKWVideoScalingEnum
SKWVideoScalingEnum
Scaling type enum.
Definition: SKWVideo.h:24
SKWMediaStream
Media stream.
Definition: SKWMediaStream.h:18
SKWVideo::scaling
SKWVideoScalingEnum scaling
Scaling type.
Definition: SKWVideo.h:52
SKW_VIDEO_SCALING_ASPECT_FIT
@ SKW_VIDEO_SCALING_ASPECT_FIT
Video keep aspect and fit to view.
Definition: SKWVideo.h:29
SKWVideo
Video view.
Definition: SKWVideo.h:47
SKW_VIDEO_SCALING_ASPECT_FILL
@ SKW_VIDEO_SCALING_ASPECT_FILL
Video keep aspect and fill to view.
Definition: SKWVideo.h:33