You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Project Input standardization (#17) (#41) (#46) (#48) (#57) (#77)
Add AVFoundation and PhotosKit initializers
Add internal and external state mapping
Remove duplicate status enum and add inline docs to external status
Add inline API docs to PHAsset-based MuxUpload constructor
Consolidate all `MuxUpload` options into a single struct `UploadOptions`
Declare asynchronous MuxUpload constructor in PHAsset extension
Place extension methods into dedicated directories
Polish inline API documentation
Add new API documentation and note the placeholder implementation
Add option variants as static members: defaults, disabled inputStandardization
Deprecate existing initializer, normally this API should be removed prior to GA, but since it was the only initializer exposed up to this point removing it would break everybody. Instead deprecate and remove at a later date.
Store all MuxUpload-related options in UploadInfo
Use correct starting byte parameter when restarting upload
If input standardized, standardized input URL is passed to UploadInfo
instead of the original input URL used for initializer
Note: SDK probably needs to re-export a high quality asset anyway so
possibly need a bridging status
Add dedicated internal initializer for MuxUpload error with unknown error code
Request local and remote assets
Standardize via AVFoundation asset export session
Expose hook for client to cancel upload if standardization failed
Call cancellation hook if inspection fails. We're not sure if the input is standard or not so better to be safe
and confirm
Export based on maximum resolution set by client
Cleaner non standard input handler invocation
Add CustomStringConvertible conformance to maximum resolution (#56)
Only mark upload as started if its ready
Safe storage for MuxUpload (#71)
Intended to prevent a crash if MuxUpload is extended by the SDK client to conform to Equatable or Hashable protocols
Switch order of operations to avoid long pause on fetching duration
AVAsset sometimes hangs when asked to asynchronously fetch
duration when there aren't audio or video tracks present.
To avoid this after starting the upload, the inspection step will
get the video tracks first and get the duration afterwards.
---------
Co-authored-by: Emily Dixon <edixon@mux.com>
* Minor example app renaming (#29)
* Use a UUID string as MuxUpload internal identifier (#30)
* Display a more specific error message when the direct upload POST request fails (#32)
* Use MuxUpload id instead if the input URL when looking up or writing state in the SDK (#33)
* Change upload creation example app method to use discardableResult (#34)
* Add dedicated internal initializer for MuxUpload error with unknown error code (#35)
* Rename enum and adjust to camel casing (#36)
* Adhere to Swift formatting guidelines, remove snake casing (#37)
* Fix potential crash in ChunkedFile (#38)
* Include Cloud shared asset sources when requesting assets (#40)
* Prevent arithmentic overflow when setting chunk content range value (#45)
* Remove force unwrap that can cause a crash (#47)
* Make internal class methods internal (#51)
Copy file name to clipboardExpand all lines: README.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ let videoInputURL: URL = /* File URL to your video file. See Test App for how to
40
40
41
41
let upload =MuxUpload(
42
42
uploadURL: directUploadURL,
43
-
videoFileURL: videoInputURL,
43
+
inputFileURL: videoInputURL,
44
44
)
45
45
46
46
upload.progressHandler= { state in
@@ -63,7 +63,7 @@ self.upload = upload
63
63
upload.start()
64
64
```
65
65
66
-
A simple example usage can be found in our [Test App](https://github.com/muxinc/swift-upload-sdk/blob/main/apps/Test%20App/Test%20App/Screens/UploadScreenViewModel.swift)
66
+
A simple example of how to use the SDK in a realistic app can be found [here](https://github.com/muxinc/swift-upload-sdk/blob/main/Examples/)
0 commit comments