Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PruthiviRaj27 committed Nov 26, 2024
1 parent 765e0bc commit ff6271d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/TPAVPlayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ public class TPAVPlayer: AVPlayer {
if assetID.isEmpty {
fatalError("AssetID cannot be empty")
}

if (TPStreamsSDK.authToken?.isEmpty ?? true) && (accessToken?.isEmpty ?? true) {
fatalError("AccessToken cannot be nil or empty")
}
self.accessToken = accessToken
self.assetID = assetID
self.setupCompletion = completion
Expand Down

0 comments on commit ff6271d

Please sign in to comment.