mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Skip audio encoding bitrate setting test on API <= 23
The encoder output format on API 23 does not seem to contain bitrate, hence the test fails. PiperOrigin-RevId: 686047480
This commit is contained in:
parent
cb90bb38ee
commit
407bd49ed5
1 changed files with 2 additions and 0 deletions
|
|
@ -2280,6 +2280,8 @@ public class TransformerEndToEndTest {
|
||||||
@Test
|
@Test
|
||||||
public void export_setAudioEncodingBitrate_configuresEncoderWithRequestedBitrate()
|
public void export_setAudioEncodingBitrate_configuresEncoderWithRequestedBitrate()
|
||||||
throws Exception {
|
throws Exception {
|
||||||
|
// On API 23, the encoder output format does not seem to contain bitrate, hence the test fails.
|
||||||
|
assumeTrue(Util.SDK_INT > 23);
|
||||||
Context context = ApplicationProvider.getApplicationContext();
|
Context context = ApplicationProvider.getApplicationContext();
|
||||||
int requestedBitrate = 60_000;
|
int requestedBitrate = 60_000;
|
||||||
// The MediaMuxer is not writing the bitrate hence use the InAppMuxer.
|
// The MediaMuxer is not writing the bitrate hence use the InAppMuxer.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue