-
Notifications
You must be signed in to change notification settings - Fork 2
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
4K standardization #139
4K standardization #139
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ import android.net.Uri | |
import androidx.annotation.MainThread | ||
import com.mux.video.upload.MuxUploadSdk | ||
import com.mux.video.upload.api.MuxUpload.Builder | ||
import com.mux.video.upload.internal.InputStandardization | ||
import com.mux.video.upload.internal.MaximumResolution | ||
import com.mux.video.upload.internal.UploadInfo | ||
import com.mux.video.upload.internal.update | ||
import kotlinx.coroutines.* | ||
|
@@ -330,7 +332,6 @@ class MuxUpload private constructor( | |
inputFile = videoFile, | ||
chunkSize = 8 * 1024 * 1024, // GCP recommends at least 8M chunk size | ||
retriesPerChunk = 3, | ||
standardizationRequested = true, | ||
optOut = false, | ||
uploadJob = null, | ||
statusFlow = null, | ||
|
@@ -344,13 +345,23 @@ class MuxUpload private constructor( | |
return this | ||
} | ||
|
||
/** | ||
* If requested, the Upload SDK will try to standardize the input file in order to optimize it | ||
* for use with Mux Video | ||
*/ | ||
@Suppress("unused") | ||
fun standardizationRequested(enabled: Boolean, maxResolution: MaximumResolution): Builder { | ||
uploadInfo.update(InputStandardization(enabled, maxResolution)) | ||
return this | ||
} | ||
|
||
/** | ||
* If requested, the Upload SDK will try to standardize the input file in order to optimize it | ||
* for use with Mux Video | ||
*/ | ||
@Suppress("unused") | ||
fun standardizationRequested(enabled: Boolean): Builder { | ||
uploadInfo.update(standardizationRequested = enabled) | ||
uploadInfo.update(InputStandardization(enabled)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And here as well, should this be updated to |
||
return this | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.mux.video.upload.internal.options | ||
|
||
class DirectUploadOptions { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If this isn't used, can we delete it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, yes, this is sufficient |
||
|
||
} |
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.
Should the parameter name be updated to
requested
here?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.
Will add in a separate PR, so we can get this merged.