mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-19 16:47:01 +03:00
077ea2a0aa
Change-Id: Iaa390a4415e42f2e447ba1df4842dc7446471af5
21 lines
650 B
JavaScript
21 lines
650 B
JavaScript
/*! @license
|
|
* Shaka Player
|
|
* Copyright 2016 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
goog.require('shaka.media.ClosedCaptionParser');
|
|
goog.require('shaka.test.Util');
|
|
|
|
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 parser = new shaka.media.ClosedCaptionParser();
|
|
parser.init(initSegment);
|
|
parser.parseFrom(videoSegment);
|
|
});
|
|
});
|