mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-16 16:16:40 +03:00
a489282ff2
Also added H265 support and a framework for future TS CEA parser support. Fixes #4605 Fixes #3659 Co-authored-by: Joey Parrish <joeyparrish@google.com>
19 lines
609 B
JavaScript
19 lines
609 B
JavaScript
/*! @license
|
|
* Shaka Player
|
|
* Copyright 2016 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
describe('ClosedCaptionParser', () => {
|
|
it('can handle empty caption packets', async () => {
|
|
const initSegment = await shaka.test.Util.fetch(
|
|
'base/test/test/assets/empty_caption_video_init.mp4');
|
|
const videoSegment = await shaka.test.Util.fetch(
|
|
'base/test/test/assets/empty_caption_video_segment.mp4');
|
|
const mimeType = 'video/mp4';
|
|
const parser = new shaka.media.ClosedCaptionParser(mimeType);
|
|
parser.init(initSegment);
|
|
parser.parseFrom(videoSegment);
|
|
});
|
|
});
|