Skip to content

Commit

Permalink
chore: remove deprecated API
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjl-mux committed Jun 11, 2024
1 parent 1bf2a19 commit 5bbab4f
Showing 1 changed file with 0 additions and 46 deletions.
46 changes: 0 additions & 46 deletions Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift
Original file line number Diff line number Diff line change
Expand Up @@ -204,52 +204,6 @@ public final class DirectUpload {
public let isPaused: Bool
}

/// Initializes a DirectUpload from a local file URL with
/// the given configuration
/// - Parameters:
/// - uploadURL: the URL of your direct upload, see
/// the [direct upload guide](https://docs.mux.com/api-reference#video/operation/create-direct-upload)
/// - videoFileURL: the file:// URL of the upload
/// input
/// - chunkSize: the size of chunks when uploading,
/// at least 8M is recommended
/// - retriesPerChunk: number of retry attempts for
/// a failed chunk request
/// - inputStandardization: enable or disable input
/// standardization by the SDK locally
/// - eventTracking: options to opt out of event
/// tracking
@available(*, deprecated, renamed: "init(uploadURL:inputFileURL:options:)")
public convenience init(
uploadURL: URL,
videoFileURL: URL,
chunkSize: Int = 8 * 1024 * 1024, // Google recommends at least 8M
retriesPerChunk: Int = 3,
inputStandardization: DirectUploadOptions.InputStandardization = .default,
eventTracking: DirectUploadOptions.EventTracking = .default
) {
let asset = AVURLAsset(url: videoFileURL)
self.init(
input: UploadInput(
asset: asset,
info: UploadInfo(
id: UUID().uuidString,
uploadURL: uploadURL,
options: DirectUploadOptions(
inputStandardization: inputStandardization,
transport: DirectUploadOptions.Transport(
chunkSizeInBytes: chunkSize,
retryLimitPerChunk: retriesPerChunk
),
eventTracking: eventTracking
)
)
),
uploadManager: .shared,
inputInspector: .shared
)
}

/// Initializes a DirectUpload from a local file URL
///
/// - Parameters:
Expand Down

0 comments on commit 5bbab4f

Please sign in to comment.