summaryrefslogtreecommitdiff
path: root/docs/Classes/SDLStreamingMediaConfiguration.html
blob: ab2674319213f61b856b99d12f43e9233accf5dd (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
<h1>SDLStreamingMediaConfiguration Class Reference</h1>

<h3>Section Contents</h3>

<ul>
  <li><a href="#section-maximumDesiredEncryption">maximumDesiredEncryption</a></li>
  <li><a href="#section-customVideoEncoderSettings">customVideoEncoderSettings</a></li>
  <li><a href="#section-dataSource">dataSource</a></li>
  <li><a href="#section-rootViewController">rootViewController</a></li>
  <li><a href="#section-carWindowRenderingType">carWindowRenderingType</a></li>
  <li><a href="#section-enableForcedFramerateSync">enableForcedFramerateSync</a></li>
  <li><a href="#section-allowMultipleViewControllerOrientations">allowMultipleViewControllerOrientations</a></li>
  <li><a href="#section-supportedLandscapeStreamingRange">supportedLandscapeStreamingRange</a></li>
  <li><a href="#section-supportedPortraitStreamingRange">supportedPortraitStreamingRange</a></li>
  <li><a href="#section-delegate">delegate</a></li>
  <li><a href="#section--init">-init</a></li>
  <li><a href="#section-+secureConfiguration">+secureConfiguration</a></li>
  <li><a href="#section--initWithEncryptionFlag:videoSettings:dataSource:rootViewController:">-initWithEncryptionFlag:videoSettings:dataSource:rootViewController:</a></li>
  <li><a href="#section--initWithEncryptionFlag:videoSettings:supportedLandscapeRange:supportedPortraitRange:dataSource:delegate:rootViewController:">-initWithEncryptionFlag:videoSettings:supportedLandscapeRange:supportedPortraitRange:dataSource:delegate:rootViewController:</a></li>
  <li><a href="#section-+insecureConfiguration">+insecureConfiguration</a></li>
  <li><a href="#section-+autostreamingInsecureConfigurationWithInitialViewController:">+autostreamingInsecureConfigurationWithInitialViewController:</a></li>
  <li><a href="#section-+autostreamingSecureConfigurationWithInitialViewController:">+autostreamingSecureConfigurationWithInitialViewController:</a></li>
</ul>

<h3>Overview</h3>

<p>The streaming media configuration. Use this class to configure streaming media information.</p>


<section class="section task-group-section">
  <h3 id="section-maximumDesiredEncryption">
      maximumDesiredEncryption
  </h3>
  
  <p>What encryption level video/audio streaming should be. The default is SDLStreamingEncryptionFlagAuthenticateAndEncrypt.</p>

  
  
  <h4>Objective-C</h4>
  <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">nonatomic</span><span class="p">)</span> <span class="n"><a href="../Enums/SDLStreamingEncryptionFlag.html">SDLStreamingEncryptionFlag</a></span> <span class="n">maximumDesiredEncryption</span><span class="p">;</span></code></pre>

  
  <h4>Swift</h4>
  <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">maximumDesiredEncryption</span><span class="p">:</span> <span class="kt"><a href="../Enums/SDLStreamingEncryptionFlag.html">SDLStreamingEncryptionFlag</a></span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>

  
  
  
  <h3 id="section-customVideoEncoderSettings">
      customVideoEncoderSettings
  </h3>
  
  <p>Properties to use for applications that utilize the video encoder for streaming. See VTCompressionProperties.h for more details. For example, you can set kVTCompressionPropertyKey_ExpectedFrameRate to set your framerate. Setting the framerate this way will also set the framerate if you use CarWindow automatic streaming.</p>

<p>Other properties you may want to try adjusting include kVTCompressionPropertyKey_AverageBitRate and kVTCompressionPropertyKey_DataRateLimits.</p>

  
  
  <h4>Objective-C</h4>
  <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">nonatomic</span><span class="p">,</span> <span class="n">copy</span><span class="p">,</span> <span class="n">nullable</span><span class="p">)</span> <span class="n">NSDictionary</span><span class="o">&lt;</span><span class="n">NSString</span> <span class="o">*</span><span class="p">,</span> <span class="n">id</span><span class="o">&gt;</span> <span class="o">*</span><span class="n">customVideoEncoderSettings</span><span class="p">;</span></code></pre>

  
  <h4>Swift</h4>
  <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">customVideoEncoderSettings</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span> <span class="p">:</span> <span class="kt">Any</span><span class="p">]?</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>

  
  
  
  <h3 id="section-dataSource">
      dataSource
  </h3>
  
  <p>Usable to change run time video stream setup behavior. Only use this and modify the results if you <em>really</em> know what you&rsquo;re doing. The head unit defaults are generally good.</p>

  
  
  <h4>Objective-C</h4>
  <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">nonatomic</span><span class="p">,</span> <span class="n">weak</span><span class="p">,</span> <span class="n">nullable</span><span class="p">)</span> <span class="n">id</span><span class="o">&lt;</span><span class="n"><a href="../Protocols/SDLStreamingMediaManagerDataSource.html">SDLStreamingMediaManagerDataSource</a></span><span class="o">&gt;</span> <span class="n">dataSource</span><span class="p">;</span></code></pre>

  
  
  
  
  <h3 id="section-rootViewController">
      rootViewController
  </h3>
  
  <p>Set the initial view controller your video streaming content is within.</p>

<p>Activates the haptic view parser and CarWindow systems when set. This library will also use that information to attempt to return the touched view to you in <code><a href="../Protocols/SDLTouchManagerDelegate.html">SDLTouchManagerDelegate</a></code>.</p>
<div class="aside aside-note">
    <p class="aside-title">Note</p>
    <p>If you wish to alter this <code>rootViewController</code> while streaming via CarWindow, you must set a new <code>rootViewController</code> on <code><a href="../Classes/SDLStreamingMediaManager.html">SDLStreamingMediaManager</a></code> and this will update both the haptic view parser and CarWindow.</p>

</div><div class="aside aside-warning">
    <p class="aside-title">Warning</p>
    <p>Apps using views outside of the <code>UIView</code> hierarchy (such as OpenGL) are currently unsupported. If you app uses partial views in the hierarchy, only those views will be discovered. Your OpenGL views will not be discoverable to a haptic interface head unit and you will have to manually make these views discoverable via the <code><a href="../Classes/SDLSendHapticData.html">SDLSendHapticData</a></code> RPC request.</p>

</div><div class="aside aside-warning">
    <p class="aside-title">Warning</p>
    <p>If the <code>rootViewController</code> is app UI and is set from the <code>UIViewController</code> class, it should only be set after viewDidAppear:animated is called. Setting the <code>rootViewController</code> in <code>viewDidLoad</code> or <code>viewWillAppear:animated</code> can cause weird behavior when setting the new frame.</p>

</div><div class="aside aside-warning">
    <p class="aside-title">Warning</p>
    <p>If setting the <code>rootViewController</code> when the app returns to the foreground, the app should register for the <code>UIApplicationDidBecomeActive</code> notification and not the <code>UIApplicationWillEnterForeground</code> notification. Setting the frame after a notification from the latter can also cause weird behavior when setting the new frame.</p>

</div><div class="aside aside-warning">
    <p class="aside-title">Warning</p>
    <p>While <code>viewDidLoad</code> will fire, appearance methods will not.</p>

</div>

  
  
  <h4>Objective-C</h4>
  <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">nonatomic</span><span class="p">,</span> <span class="n">strong</span><span class="p">,</span> <span class="n">nullable</span><span class="p">)</span> <span class="n">UIViewController</span> <span class="o">*</span><span class="n">rootViewController</span><span class="p">;</span></code></pre>

  
  <h4>Swift</h4>
  <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">rootViewController</span><span class="p">:</span> <span class="kt">UIViewController</span><span class="p">?</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>

  
  
  
  <h3 id="section-carWindowRenderingType">
      carWindowRenderingType
  </h3>
  
  <p>Declares if CarWindow will use layer rendering or view rendering. Defaults to layer rendering.</p>

  
  
  <h4>Objective-C</h4>
  <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">nonatomic</span><span class="p">)</span> <span class="n"><a href="../Enums/SDLCarWindowRenderingType.html">SDLCarWindowRenderingType</a></span> <span class="n">carWindowRenderingType</span><span class="p">;</span></code></pre>

  
  <h4>Swift</h4>
  <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">carWindowRenderingType</span><span class="p">:</span> <span class="kt"><a href="../Enums/SDLCarWindowRenderingType.html">SDLCarWindowRenderingType</a></span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>

  
  
  
  <h3 id="section-enableForcedFramerateSync">
      enableForcedFramerateSync
  </h3>
  
  <p>When YES, the StreamingMediaManager will run a CADisplayLink with the framerate set to the video encoder settings kVTCompressionPropertyKey_ExpectedFrameRate. This then forces TouchManager (and CarWindow, if used) to sync their callbacks to the framerate. If using CarWindow, this <em>must</em> be YES. If NO, <code>enableSyncedPanning</code> on SDLTouchManager will be set to NO. Defaults to YES.</p>

  
  
  <h4>Objective-C</h4>
  <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">nonatomic</span><span class="p">)</span> <span class="n">BOOL</span> <span class="n">enableForcedFramerateSync</span><span class="p">;</span></code></pre>

  
  <h4>Swift</h4>
  <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">enableForcedFramerateSync</span><span class="p">:</span> <span class="kt">Bool</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>

  
  
  
  <h3 id="section-allowMultipleViewControllerOrientations">
      allowMultipleViewControllerOrientations
  </h3>
  
  <p>When YES, the StreamingMediaManager will disable its internal checks that the <code><a href="../Classes/SDLStreamingMediaConfiguration.html#/c:objc(cs)SDLStreamingMediaConfiguration(py)rootViewController">rootViewController</a></code> only has one <code>supportedOrientation</code>. Having multiple orientations can cause streaming issues. If you wish to disable this check, set it to YES. Defaults to NO.</p>

  
  
  <h4>Objective-C</h4>
  <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">nonatomic</span><span class="p">)</span> <span class="n">BOOL</span> <span class="n">allowMultipleViewControllerOrientations</span><span class="p">;</span></code></pre>

  
  <h4>Swift</h4>
  <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">allowMultipleViewControllerOrientations</span><span class="p">:</span> <span class="kt">Bool</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>

  
  
  
  <h3 id="section-supportedLandscapeStreamingRange">
      supportedLandscapeStreamingRange
  </h3>
  
  <p>Set a landscape image dimension range and/or aspect ratio range that your rootViewController supports. If the module&rsquo;s screen size for your app changes during streaming (i.e. to a collapsed view, split screen, preview mode or picture-in-picture), your rootViewController will be resized to the new screen size. If left unset or set to <code>nil</code>, the default is to support all landscape streaming ranges. If you wish to disable support for streaming in landscape mode, set a <code>disabled</code> video streaming range.
If desired, you can subscribe to screen size updates via the SDLStreamingVideoDelegate.</p>
<div class="aside aside-warning">
    <p class="aside-title">Warning</p>
    If you disable both the supportedLandscapeStreamingRange and supportedPortraitStreamingRange, video will not stream

</div>

  
  
  <h4>Objective-C</h4>
  <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">nonatomic</span><span class="p">,</span> <span class="n">strong</span><span class="p">,</span> <span class="n">nullable</span><span class="p">)</span> <span class="n"><a href="../Classes/SDLVideoStreamingRange.html">SDLVideoStreamingRange</a></span> <span class="o">*</span><span class="n">supportedLandscapeStreamingRange</span><span class="p">;</span></code></pre>

  
  <h4>Swift</h4>
  <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">supportedLandscapeStreamingRange</span><span class="p">:</span> <span class="kt"><a href="../Classes/SDLVideoStreamingRange.html">SDLVideoStreamingRange</a></span><span class="p">?</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>

  
  
  
  <h3 id="section-supportedPortraitStreamingRange">
      supportedPortraitStreamingRange
  </h3>
  
  <p>Set a portrait image dimension range and/or aspect ratio range that your rootViewController supports. If the module&rsquo;s screen size for your app changes during streaming (i.e. to a collapsed view, split screen, preview mode or picture-in-picture), your rootViewController will be resized to the new screen size. If left unset or set to <code>nil</code>, the default is to support all portrait streaming ranges. If you wish to disable support for streaming in portrait mode, set a <code>disabled</code> video streaming range.
If desired, you can subscribe to screen size updates via the SDLStreamingVideoDelegate.</p>
<div class="aside aside-warning">
    <p class="aside-title">Warning</p>
    If you disable both the supportedLandscapeStreamingRange and supportedPortraitStreamingRange, video will not stream

</div>

  
  
  <h4>Objective-C</h4>
  <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">nonatomic</span><span class="p">,</span> <span class="n">strong</span><span class="p">,</span> <span class="n">nullable</span><span class="p">)</span> <span class="n"><a href="../Classes/SDLVideoStreamingRange.html">SDLVideoStreamingRange</a></span> <span class="o">*</span><span class="n">supportedPortraitStreamingRange</span><span class="p">;</span></code></pre>

  
  <h4>Swift</h4>
  <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">supportedPortraitStreamingRange</span><span class="p">:</span> <span class="kt"><a href="../Classes/SDLVideoStreamingRange.html">SDLVideoStreamingRange</a></span><span class="p">?</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>

  
  
  
  <h3 id="section-delegate">
      delegate
  </h3>
  
  <p>The configuration delegate, this is an object conforming to the SDLStreamingVideoDelegate protocol. If video streaming parameters change then this object will be called on.</p>

  
  
  <h4>Objective-C</h4>
  <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">nonatomic</span><span class="p">,</span> <span class="n">weak</span><span class="p">,</span> <span class="n">nullable</span><span class="p">)</span> <span class="n">id</span><span class="o">&lt;</span><span class="n"><a href="../Protocols/SDLStreamingVideoDelegate.html">SDLStreamingVideoDelegate</a></span><span class="o">&gt;</span> <span class="n">delegate</span><span class="p">;</span></code></pre>

  
  
  
  
  <h3 id="section--init">
      -init
  </h3>
  
  <p>Create an insecure video streaming configuration. No security managers will be provided and the encryption flag will be set to None. If you&rsquo;d like custom video encoder settings, you can set the property manually.</p>

  
  
  <h4>Objective-C</h4>
  <pre class="highlight objective_c"><code><span class="k">-</span> <span class="p">(</span><span class="n">nonnull</span> <span class="n">instancetype</span><span class="p">)</span><span class="n">init</span><span class="p">;</span></code></pre>

  
  <h4>Swift</h4>
  <pre class="highlight swift"><code><span class="nf">init</span><span class="p">()</span></code></pre>

  
  
  <div>
    <h4>Return Value</h4>
    <p>The configuration</p>
  </div>
  
  <h3 id="section-+secureConfiguration">
      +secureConfiguration
  </h3>
  
  <p>Create a secure video streaming configuration. Security managers will be provided from SDLEncryptionConfiguration and the encryption flag will be set to SDLStreamingEncryptionFlagAuthenticateAndEncrypt. If you&rsquo;d like custom video encoder settings, you can set the property manually.</p>

  
  
  <h4>Objective-C</h4>
  <pre class="highlight objective_c"><code><span class="k">+</span> <span class="p">(</span><span class="n">nonnull</span> <span class="n">instancetype</span><span class="p">)</span><span class="n">secureConfiguration</span><span class="p">;</span></code></pre>

  
  <h4>Swift</h4>
  <pre class="highlight swift"><code><span class="kd">class</span> <span class="kd">func</span> <span class="nf">secure</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="k">Self</span></code></pre>

  
  
  <div>
    <h4>Return Value</h4>
    <p>The configuration</p>
  </div>
  
  <h3 id="section--initWithEncryptionFlag:videoSettings:dataSource:rootViewController:">
      -initWithEncryptionFlag:videoSettings:dataSource:rootViewController:
  </h3>
  
  <p>Manually set all the properties to the streaming media configuration</p>

  
  
  <h4>Objective-C</h4>
  <pre class="highlight objective_c"><code><span class="k">-</span> <span class="p">(</span><span class="n">nonnull</span> <span class="n">instancetype</span><span class="p">)</span>
    <span class="nf">initWithEncryptionFlag</span><span class="p">:(</span><span class="n"><a href="../Enums/SDLStreamingEncryptionFlag.html">SDLStreamingEncryptionFlag</a></span><span class="p">)</span><span class="nv">encryptionFlag</span>
             <span class="nf">videoSettings</span><span class="p">:</span>
                 <span class="p">(</span><span class="n">nullable</span> <span class="n">NSDictionary</span><span class="o">&lt;</span><span class="n">NSString</span> <span class="o">*</span><span class="p">,</span> <span class="n">id</span><span class="o">&gt;</span> <span class="o">*</span><span class="p">)</span><span class="nv">videoSettings</span>
                <span class="nf">dataSource</span><span class="p">:</span>
                    <span class="p">(</span><span class="n">nullable</span> <span class="n">id</span><span class="o">&lt;</span><span class="n"><a href="../Protocols/SDLStreamingMediaManagerDataSource.html">SDLStreamingMediaManagerDataSource</a></span><span class="o">&gt;</span><span class="p">)</span><span class="nv">dataSource</span>
        <span class="nf">rootViewController</span><span class="p">:(</span><span class="n">nullable</span> <span class="n">UIViewController</span> <span class="o">*</span><span class="p">)</span><span class="nv">rootViewController</span><span class="p">;</span></code></pre>

  
  
  
  <h4>Parameters</h4>
  <dl>
      <dt>encryptionFlag</dt>
      <dd><p>The maximum encryption supported. If the connected head unit supports less than set here, it will still connect, but if it supports more than set here, it will not connect.</p></dd>
      <dt>videoSettings</dt>
      <dd><p>Custom video encoder settings to be used in video streaming.</p></dd>
      <dt>rootViewController</dt>
      <dd><p>The UIViewController with the content that is being streamed on, to use for haptics if needed and possible (only works for UIViews)</p></dd>
  </dl>
  <div>
    <h4>Return Value</h4>
    <p>The configuration</p>
  </div>
  
  <h3 id="section--initWithEncryptionFlag:videoSettings:supportedLandscapeRange:supportedPortraitRange:dataSource:delegate:rootViewController:">
      -initWithEncryptionFlag:videoSettings:supportedLandscapeRange:supportedPortraitRange:dataSource:delegate:rootViewController:
  </h3>
  
  <p>Manually set all the properties to the streaming media configuration</p>

  
  
  <h4>Objective-C</h4>
  <pre class="highlight objective_c"><code><span class="k">-</span> <span class="p">(</span><span class="n">nonnull</span> <span class="n">instancetype</span><span class="p">)</span>
     <span class="nf">initWithEncryptionFlag</span><span class="p">:(</span><span class="n"><a href="../Enums/SDLStreamingEncryptionFlag.html">SDLStreamingEncryptionFlag</a></span><span class="p">)</span><span class="nv">encryptionFlag</span>
              <span class="nf">videoSettings</span><span class="p">:</span>
                  <span class="p">(</span><span class="n">nullable</span> <span class="n">NSDictionary</span><span class="o">&lt;</span><span class="n">NSString</span> <span class="o">*</span><span class="p">,</span> <span class="n">id</span><span class="o">&gt;</span> <span class="o">*</span><span class="p">)</span><span class="nv">videoSettings</span>
    <span class="nf">supportedLandscapeRange</span><span class="p">:(</span><span class="n">nullable</span> <span class="n"><a href="../Classes/SDLVideoStreamingRange.html">SDLVideoStreamingRange</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">landscapeRange</span>
     <span class="nf">supportedPortraitRange</span><span class="p">:(</span><span class="n">nullable</span> <span class="n"><a href="../Classes/SDLVideoStreamingRange.html">SDLVideoStreamingRange</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">portraitRange</span>
                 <span class="nf">dataSource</span><span class="p">:</span>
                     <span class="p">(</span><span class="n">nullable</span> <span class="n">id</span><span class="o">&lt;</span><span class="n"><a href="../Protocols/SDLStreamingMediaManagerDataSource.html">SDLStreamingMediaManagerDataSource</a></span><span class="o">&gt;</span><span class="p">)</span><span class="nv">dataSource</span>
                   <span class="nf">delegate</span><span class="p">:(</span><span class="n">nullable</span> <span class="n">id</span><span class="o">&lt;</span><span class="n"><a href="../Protocols/SDLStreamingVideoDelegate.html">SDLStreamingVideoDelegate</a></span><span class="o">&gt;</span><span class="p">)</span><span class="nv">delegate</span>
         <span class="nf">rootViewController</span><span class="p">:(</span><span class="n">nullable</span> <span class="n">UIViewController</span> <span class="o">*</span><span class="p">)</span><span class="nv">rootViewController</span><span class="p">;</span></code></pre>

  
  
  
  <h4>Parameters</h4>
  <dl>
      <dt>encryptionFlag</dt>
      <dd><p>The maximum encryption supported. If the connected head unit supports less than set here, it will still connect, but if it supports more than set here, it will not connect</p></dd>
      <dt>videoSettings</dt>
      <dd><p>Custom video encoder settings to be used in video streaming</p></dd>
      <dt>landscapeRange</dt>
      <dd><p>Set a landscape image dimension range and/or aspect ratio range that your app supports</p></dd>
      <dt>portraitRange</dt>
      <dd><p>Set a portrait image dimension range and/or aspect ratio range that your rootViewController supports</p></dd>
      <dt>dataSource</dt>
      <dd><p>Allows you to respond with preferred resolutions and/or formats</p></dd>
      <dt>delegate</dt>
      <dd><p>Provides a delegate with notifications about changes to the audio stream</p></dd>
      <dt>rootViewController</dt>
      <dd><p>A view controller that should be automatically streamed</p></dd>
  </dl>
  
  <h3 id="section-+insecureConfiguration">
      +insecureConfiguration
  </h3>
  
  <p>Create an insecure video streaming configuration. No security managers will be provided and the encryption flag will be set to None. If you&rsquo;d like custom video encoder settings, you can set the property manually. This is equivalent to <code>init</code>.</p>

  
  
  <h4>Objective-C</h4>
  <pre class="highlight objective_c"><code><span class="k">+</span> <span class="p">(</span><span class="n">nonnull</span> <span class="n">instancetype</span><span class="p">)</span><span class="n">insecureConfiguration</span><span class="p">;</span></code></pre>

  
  
  
  <div>
    <h4>Return Value</h4>
    <p>The configuration</p>
  </div>
  
  <h3 id="section-+autostreamingInsecureConfigurationWithInitialViewController:">
      +autostreamingInsecureConfigurationWithInitialViewController:
  </h3>
  
  <p>Create a CarWindow insecure configuration with a view controller</p>

  
  
  <h4>Objective-C</h4>
  <pre class="highlight objective_c"><code><span class="k">+</span> <span class="p">(</span><span class="n">nonnull</span> <span class="n">instancetype</span><span class="p">)</span>
    <span class="nf">autostreamingInsecureConfigurationWithInitialViewController</span><span class="p">:</span>
        <span class="p">(</span><span class="n">nonnull</span> <span class="n">UIViewController</span> <span class="o">*</span><span class="p">)</span><span class="nv">initialViewController</span><span class="p">;</span></code></pre>

  
  <h4>Swift</h4>
  <pre class="highlight swift"><code><span class="kd">class</span> <span class="kd">func</span> <span class="nf">autostreamingInsecureConfiguration</span><span class="p">(</span><span class="n">withInitialViewController</span> <span class="nv">initialViewController</span><span class="p">:</span> <span class="kt">UIViewController</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="k">Self</span></code></pre>

  
  
  <h4>Parameters</h4>
  <dl>
      <dt>initialViewController</dt>
      <dd><p>The initial view controller that will be streamed</p></dd>
  </dl>
  <div>
    <h4>Return Value</h4>
    <p>The configuration</p>
  </div>
  
  <h3 id="section-+autostreamingSecureConfigurationWithInitialViewController:">
      +autostreamingSecureConfigurationWithInitialViewController:
  </h3>
  
  <p>Create a CarWindow secure configuration with a view controller.</p>

  
  
  <h4>Objective-C</h4>
  <pre class="highlight objective_c"><code><span class="k">+</span> <span class="p">(</span><span class="n">nonnull</span> <span class="n">instancetype</span><span class="p">)</span>
    <span class="nf">autostreamingSecureConfigurationWithInitialViewController</span><span class="p">:</span>
        <span class="p">(</span><span class="n">nonnull</span> <span class="n">UIViewController</span> <span class="o">*</span><span class="p">)</span><span class="nv">initialViewController</span><span class="p">;</span></code></pre>

  
  <h4>Swift</h4>
  <pre class="highlight swift"><code><span class="kd">class</span> <span class="kd">func</span> <span class="nf">autostreamingSecureConfiguration</span><span class="p">(</span><span class="n">withInitialViewController</span> <span class="nv">initialViewController</span><span class="p">:</span> <span class="kt">UIViewController</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="k">Self</span></code></pre>

  
  
  <h4>Parameters</h4>
  <dl>
      <dt>initialViewController</dt>
      <dd><p>The initial view controller that will be streamed, this can be a basic <code>UIViewController</code> if you need to set your actual streaming view controller at a later time on <code>SDLManager.streamingManager.rootViewController</code>.</p></dd>
  </dl>
  <div>
    <h4>Return Value</h4>
    <p>The configuration</p>
  </div>
  
</section>