From 85eea939e36e7abcb973a4e59122131877a8428d Mon Sep 17 00:00:00 2001 From: Sergey Chausov Date: Thu, 5 May 2022 14:49:08 +0300 Subject: [PATCH] FEC-11731 Verify OTTMediaAsset init?(json: Any) in PlayKitProviders --- Sources/OTT/KalturaOTTPlayer.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/OTT/KalturaOTTPlayer.swift b/Sources/OTT/KalturaOTTPlayer.swift index 62aaaa4..5909df7 100644 --- a/Sources/OTT/KalturaOTTPlayer.swift +++ b/Sources/OTT/KalturaOTTPlayer.swift @@ -106,7 +106,7 @@ import PlayKitKava var ovpEntryId = "" - if let entryId = mediaEntry.metadata?["entryId"] { + if let entryId = mediaEntry.metadata?["entryId"], !entryId.isEmpty { ovpEntryId = entryId } else if let options = mediaOptions as? OTTMediaOptions, let entryId = options.assetId { ovpEntryId = entryId