Skip to content

Commit

Permalink
Merge pull request #732 from glennguy/rework-new
Browse files Browse the repository at this point in the history
Buffering and adaptive bitrate switching
  • Loading branch information
glennguy authored Sep 28, 2021
2 parents 649891c + d69eb7f commit 26f2145
Show file tree
Hide file tree
Showing 19 changed files with 1,332 additions and 696 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ find_package(Kodi REQUIRED)
set(ADP_SOURCES
src/main.cpp
src/common/AdaptiveTree.cpp
src/common/RepresentationChooser.cpp
src/parser/DASHTree.cpp
src/parser/HLSTree.cpp
src/parser/SmoothTree.cpp
Expand All @@ -32,6 +33,7 @@ set(ADP_HEADERS
src/SSD_dll.h
src/common/AdaptiveStream.h
src/common/AdaptiveTree.h
src/common/RepresentationChooser.h
src/parser/DASHTree.h
src/parser/HLSTree.h
src/parser/SmoothTree.h
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,21 @@ msgctxt "#30102"
msgid "Max. Bandwidth (Bit/s)"
msgstr ""

# Assured buffer length duration (seconds)
msgctxt "#30200"
msgid "Assured Buffer Duration (sec)"
msgstr ""

# Max buffer length duration (seconds)
msgctxt "#30201"
msgid "Max Buffer Duration (sec)"
msgstr ""

# Ignore Window Display Resolution Change
msgctxt "#30202"
msgid "Ignore Window Change"
msgstr ""

# Absolute path to the folder containing the decrypters
msgctxt "#30103"
msgid "Decrypter path"
Expand Down
15 changes: 15 additions & 0 deletions inputstream.adaptive/resources/settings.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,21 @@
<default>0</default>
<control type="edit" format="integer" />
</setting>
<setting id="ASSUREDBUFFERDURATION" type="integer" label="30200">
<level>1</level>
<default>60</default>
<control type="edit" format="integer" />
</setting>
<setting id="MAXBUFFERDURATION" type="integer" label="30201">
<level>1</level>
<default>120</default>
<control type="edit" format="integer" />
</setting>
<setting id="IGNOREWINDOWCHANGE" type="boolean" label="30202">
<level>1</level>
<default>true</default>
<control type="toggle" />
</setting>
<setting id="MAXRESOLUTION" type="integer" label="30110">
<level>0</level>
<default>0</default>
Expand Down
3 changes: 2 additions & 1 deletion lib/libbento4/Core/Ap4FragmentSampleTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ AP4_FragmentSampleTable::AddTrun(AP4_TrunAtom* trun,

// dts and cts
sample.SetDts(dts);
if (trun_flags & AP4_TRUN_FLAG_SAMPLE_COMPOSITION_TIME_OFFSET_PRESENT) {
if (trun_flags & AP4_TRUN_FLAG_SAMPLE_COMPOSITION_TIME_OFFSET_PRESENT)
{
sample.SetCtsDelta(entry.sample_composition_time_offset);
}

Expand Down
Loading

0 comments on commit 26f2145

Please sign in to comment.