Skip to content

Commit

Permalink
Add missing reference to cast session
Browse files Browse the repository at this point in the history
There was a crash when playing a video from the MediaTableViewController
using the action sheet Play Now action
  • Loading branch information
tiagomartinho committed Jun 14, 2019
1 parent c9f584d commit 7dc6ee1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CastVideos-swift/Classes/MediaTableViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ class MediaTableViewController: UITableViewController, GCKSessionManagerListener
} else {
let options = GCKMediaQueueLoadOptions()
options.repeatMode = remoteMediaClient.mediaStatus?.queueRepeatMode ?? .off
castSession = sessionManager.currentSession as? GCKCastSession
let request = castSession.remoteMediaClient?.queueLoad([item()], with: options)
request?.delegate = self
}
Expand Down

0 comments on commit 7dc6ee1

Please sign in to comment.