From 317425d92fe54687d843bf2bde173460352da262 Mon Sep 17 00:00:00 2001 From: KongQun Yang Date: Wed, 16 May 2018 18:21:18 -0700 Subject: [PATCH] Fix TS mimetype in DASH Change-Id: I64235d02206bda9a7c18d396b2889bb28091ab5d --- packager/app/test/packager_test.py | 2 +- .../app/test/testdata/avc-aac-ts/output.mpd | 28 +++++++++++++++++++ packager/media/formats/mp2t/ts_muxer.cc | 2 +- 3 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 packager/app/test/testdata/avc-aac-ts/output.mpd diff --git a/packager/app/test/packager_test.py b/packager/app/test/packager_test.py index 4d6b5fe4a5..088e979131 100755 --- a/packager/app/test/packager_test.py +++ b/packager/app/test/packager_test.py @@ -660,7 +660,7 @@ class PackagerFunctionalTest(PackagerAppTest): segmented=True, hls=True, test_files=['bear-640x360.ts']), - self._GetFlags(output_hls=True)) + self._GetFlags(output_hls=True, output_dash=True)) self._CheckTestResults('avc-aac-ts') def testAvcAacTsLanguage(self): diff --git a/packager/app/test/testdata/avc-aac-ts/output.mpd b/packager/app/test/testdata/avc-aac-ts/output.mpd new file mode 100644 index 0000000000..fbaca67d46 --- /dev/null +++ b/packager/app/test/testdata/avc-aac-ts/output.mpd @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packager/media/formats/mp2t/ts_muxer.cc b/packager/media/formats/mp2t/ts_muxer.cc index 30d5f0ccf8..bd005afa04 100644 --- a/packager/media/formats/mp2t/ts_muxer.cc +++ b/packager/media/formats/mp2t/ts_muxer.cc @@ -50,7 +50,7 @@ void TsMuxer::FireOnMediaStartEvent() { if (!muxer_listener()) return; muxer_listener()->OnMediaStart(options(), *streams().front(), kTsTimescale, - MuxerListener::kContainerWebM); + MuxerListener::kContainerMpeg2ts); } void TsMuxer::FireOnMediaEndEvent() {