Skip to content

Commit

Permalink
Force unwrap the streamURL to resolve compilation error.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 703946776
  • Loading branch information
gschoppe authored and IMA Developer Relations committed Dec 8, 2024
1 parent fcb0a86 commit dea8bd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Swift/PodServingExample/app/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}
Expand Down

0 comments on commit dea8bd7

Please sign in to comment.