blob: aaed77b354d1338bcdccc2bca2bc5a53a3bd0922 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
//
// SDLCarWindow.h
//
// Created by Muller, Alexander (A.) on 10/6/16.
// Copyright © 2016 Ford Motor Company. All rights reserved.
//
#import <UIKit/UIKit.h>
@class SDLStreamingMediaConfiguration;
@class SDLStreamingVideoLifecycleManager;
NS_ASSUME_NONNULL_BEGIN
/**
SDLCarWindow is a class somewhat mimicking a `UIWindow` in that it has a `UIViewController` root, but it takes that ViewController, listens for a start to Video Streaming, and streams whatever is on that view controller to the head unit.
*/
@interface SDLCarWindow : NSObject
/**
Initialize the CarWindow automatic streamer.
@param streamManager The stream manager to use for retrieving head unit dimension details and forwarding video frame data
@param configuration The streaming media configuration
@return An instance of this class
*/
- (instancetype)initWithStreamManager:(SDLStreamingVideoLifecycleManager *)streamManager configuration:(SDLStreamingMediaConfiguration *)configuration;
/**
* View Controller that will be streamed.
*/
@property (strong, nonatomic, nullable) UIViewController *rootViewController;
- (void)syncFrame;
@end
NS_ASSUME_NONNULL_END
|