-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add DRM video download support #88
Conversation
PruthiviRaj27
commented
Nov 11, 2024
•
edited
Loading
edited
- This commit introduces the functionality to download and play DRM-protected videos.
// TPStreamsSDK.provider.API.getAsset(assetID, accessToken) { [weak self] asset, error in | ||
// guard let self = self else { return } | ||
// if let asset = asset { | ||
// //TODO Create video quality object (dummy for now, can be implemented later) | ||
// let videoQuality = VideoQuality.init(resolution: resolution, bitrate: 4611200) | ||
// startDownload(asset: asset, videoQuality: videoQuality) | ||
// } else if let error = error{ | ||
// print (error) | ||
// } | ||
// } | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why these are commented out?
12c504b
to
1f7d0e0
Compare
1f7d0e0
to
a705347
Compare
Source/Utils/M3U8Util.swift
Outdated
import Foundation | ||
import M3U8Parser | ||
|
||
public class M3U8ParseUtil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public class M3U8ParseUtil { | |
public class M3U8Parser { |
Source/Utils/M3U8Util.swift
Outdated
|
||
public class M3U8ParseUtil { | ||
|
||
static func extractContentIDFromMasterURL(masterURL: URL, completion: @escaping (Result<String, Error>) -> Void) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static func extractContentIDFromMasterURL(masterURL: URL, completion: @escaping (Result<String, Error>) -> Void) { | |
static func extractContentID(url: URL, completion: @escaping (Result<String, Error>) -> Void) { |