-
Notifications
You must be signed in to change notification settings - Fork 20
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
Feature/new example encoding hlsv3 with aes #50
base: develop
Are you sure you want to change the base?
Conversation
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.
just two minor things, but lgtm
|
||
// AES - Configuration | ||
AesEncryptionDrm aesEncryptionDrm = new AesEncryptionDrm(); | ||
aesEncryptionDrm.setKey("<SET_YOUR_STRING_KEY>"); // 128 bit (16 bytes) ex.: cab5b529ae28d5cc5e3e7bc3fd4a544d |
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.
Maybe let's have this info as a const (err I mean static) at the top of the file, but it's a minor quibble.
// AES - Configuration | ||
AesEncryptionDrm aesEncryptionDrm = new AesEncryptionDrm(); | ||
aesEncryptionDrm.setKey("<SET_YOUR_STRING_KEY>"); // 128 bit (16 bytes) ex.: cab5b529ae28d5cc5e3e7bc3fd4a544d | ||
aesEncryptionDrm.setIv("<SET_YOUR_STRING_IV>"); // 128 bit (16 bytes) ex.: 08eecef4b026deec395234d94218273d |
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.
same
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.
only two minor code styling remarks.
|
||
// Encoding Configuration - Adding h264 Representations | ||
List<H264Representation> h264Representations = new ArrayList<>(); | ||
h264Representations.add ( new H264Representation(null, 240, null, 400L, ProfileH264.HIGH)); |
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.
Remove the whitespace between (
and new
).
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.
done
aacConfiguration.setRate(48000f); | ||
aacConfiguration = bitmovinApi.configuration.audioAAC.create(aacConfiguration); | ||
|
||
for (H264Representation representation : h264Representations) { |
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.
the {
goes to the next line.
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.
done
inputStreamVideo.setSelectionMode(StreamSelectionMode.AUTO); | ||
inputStreamVideo.setPosition(0); | ||
|
||
Stream audioStream = new Stream(); |
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.
Audio stream doesn't need to be added for every representation. It's sufficient to do it once.
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.
Done
|
||
// Encoding Configuration - Adding h264 Representations | ||
List<H264Representation> h264Representations = new ArrayList<>(); | ||
h264Representations.add (new H264Representation(null, 240, null, 400L, ProfileH264.HIGH)); |
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.
No space after add
No description provided.