diff --git a/ios/Video/Features/RCTVideoDRM.swift b/ios/Video/Features/RCTVideoDRM.swift index cea37a1a..d3cf2ec6 100644 --- a/ios/Video/Features/RCTVideoDRM.swift +++ b/ios/Video/Features/RCTVideoDRM.swift @@ -149,7 +149,9 @@ enum RCTVideoDRM { ) -> Promise { let url = loadingRequest.request.url - guard let contentId = contentId ?? url?.absoluteString.replacingOccurrences(of: "skd://", with: "") else { + let parsedContentId = contentId != nil && !contentId!.isEmpty ? contentId : nil + + guard let contentId = parsedContentId ?? url?.absoluteString.replacingOccurrences(of: "skd://", with: "") else { return Promise(RCTVideoError.invalidContentId as! Error) }