Skip to content
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

Merged
merged 14 commits into from
Nov 21, 2024

Conversation

PruthiviRaj27
Copy link
Contributor

@PruthiviRaj27 PruthiviRaj27 commented Nov 11, 2024

  • This commit introduces the functionality to download and play DRM-protected videos.

Comment on lines 43 to 46
// 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)
// }
// }
}
Copy link
Contributor

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?

@PruthiviRaj27 PruthiviRaj27 force-pushed the add_drm_offline_download_support branch from 12c504b to 1f7d0e0 Compare November 18, 2024 05:23
@PruthiviRaj27 PruthiviRaj27 force-pushed the add_drm_offline_download_support branch from 1f7d0e0 to a705347 Compare November 18, 2024 07:38
import Foundation
import M3U8Parser

public class M3U8ParseUtil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public class M3U8ParseUtil {
public class M3U8Parser {


public class M3U8ParseUtil {

static func extractContentIDFromMasterURL(masterURL: URL, completion: @escaping (Result<String, Error>) -> Void) {
Copy link
Contributor

@Karthik-0 Karthik-0 Nov 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
static func extractContentIDFromMasterURL(masterURL: URL, completion: @escaping (Result<String, Error>) -> Void) {
static func extractContentID(url: URL, completion: @escaping (Result<String, Error>) -> Void) {

@PruthiviRaj27 PruthiviRaj27 merged commit 469807e into main Nov 21, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants