Intel® Collaboration Suite for WebRTC  version 4.3.1
Open WebRTC Toolkit (OWT) Client SDK for iOS*
OWTFrameGeneratorProtocol.h
1 // Copyright (C) <2018> Intel Corporation
2 //
3 // SPDX-License-Identifier: Apache-2.0
4 #import <Foundation/Foundation.h>
5 #import <UIKit/UIKit.h>
6 #import <WebRTC/RTCMacros.h>
7 NS_ASSUME_NONNULL_BEGIN
13 RTC_OBJC_EXPORT
14 @protocol RTCAudioFrameGeneratorProtocol<NSObject>
24 - (NSUInteger)framesForNext10Ms:(uint8_t*)buffer capacity:(const NSUInteger)capacity;
26 - (NSUInteger)sampleRate;
28 - (NSUInteger)channelNumber;
29 @end
36 RTC_OBJC_EXPORT
37 @protocol RTCVideoFrameGeneratorProtocol<NSObject>
47 - (NSUInteger)nextFrame:(uint8_t*)buffer capacity:(const NSUInteger)capacity;
51 - (CGSize)resolution;
55 - (NSUInteger)frameRate;
56 @end
57 NS_ASSUME_NONNULL_END
CGSize resolution()
frame resolution
NSUInteger frameRate()
frame rate, unit: fps
Protocol for video frame generators RTCLocalCustomizedStream pulls video frames from an object implem...
Definition: OWTFrameGeneratorProtocol.h:37
NSUInteger channelNumber()
Get numbers of channel for frames generated.
NSUInteger sampleRate()
Get sample rate for frames generated.
frame generator interface for audio
Definition: OWTFrameGeneratorProtocol.h:14