From 23beaa80d13356bfbb5b1491a2e3321fe97335ea Mon Sep 17 00:00:00 2001 From: Greg Schoppe Date: Tue, 10 Dec 2024 07:13:35 -0800 Subject: [PATCH] Force unwrap the `streamURL` to resolve compilation error. PiperOrigin-RevId: 704697683 --- Swift/PodServingExample/app/ViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Swift/PodServingExample/app/ViewController.swift b/Swift/PodServingExample/app/ViewController.swift index 5d3afe3..2af4df2 100644 --- a/Swift/PodServingExample/app/ViewController.swift +++ b/Swift/PodServingExample/app/ViewController.swift @@ -130,10 +130,10 @@ class ViewController: UIViewController, IMAAdsLoaderDelegate, IMAStreamManagerDe let urlString = ViewController.customVTPParser(streamID!) let streamUrl = URL(string: urlString) if ViewController.requestType == StreamType.liveStream { - self.videoDisplay.loadStream(streamUrl?, withSubtitles: []) + self.videoDisplay.loadStream(streamUrl!, withSubtitles: []) self.videoDisplay.play() } else { - self.streamManager?.loadThirdPartyStream(streamUrl?, streamSubtitles: []) + self.streamManager?.loadThirdPartyStream(streamUrl!, streamSubtitles: []) // Skip calling self.videoDisplay.play() because the streamManager.loadThirdPartyStream() // function will play the stream as soon as loading is completed. }