Minor fixes (semantic proposal)

This commit is contained in:
Darío Hereñú 2017-10-27 22:43:42 -03:00 committed by GitHub
parent ad836a5cf1
commit 46aa68013c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
#Design overview# # Design overview #
Major modules are described below: Major modules are described below:
@ -27,7 +27,7 @@ specified in ISO/IEC 23009-1 DASH MPD spec.
API document is available at https://google.github.io/shaka-packager/docs. API document is available at https://google.github.io/shaka-packager/docs.
##Creating Demuxer## ## Creating Demuxer ##
```C++ ```C++
// Create a demuxer from |input_media_file|. // Create a demuxer from |input_media_file|.
@ -38,14 +38,14 @@ API document is available at https://google.github.io/shaka-packager/docs.
Demuxer demuxer(input_media_file); Demuxer demuxer(input_media_file);
``` ```
##Creating KeySource for source content decryption## ## Creating KeySource for source content decryption ##
```C++ ```C++
// A KeySource is required if the source content is encrypted, since the media // A KeySource is required if the source content is encrypted, since the media
// must be decrytped prior to further processing. // must be decrytped prior to further processing.
``` ```
###WidevineKeySource### ### WidevineKeySource ###
```C++ ```C++
// Users may use WidevineKeySource to fetch keys from Widevine // Users may use WidevineKeySource to fetch keys from Widevine
@ -65,7 +65,7 @@ muxer->SetKeySource(widevine_decryption_key_source.Pass());
``` ```
##Creating MpdBuilder## ## Creating MpdBuilder ##
```C++ ```C++
// |mpd_type| indicates whether the mpd should be for VOD or live profile. // |mpd_type| indicates whether the mpd should be for VOD or live profile.
@ -117,7 +117,7 @@ for (size_t i = 0; i < n; ++i)
mpd_writer.WriteMpdToFile("output_file_name.mpd"); mpd_writer.WriteMpdToFile("output_file_name.mpd");
``` ```
##Creating Muxer## ## Creating Muxer ##
```C++ ```C++
// See below for muxer options. // See below for muxer options.
@ -177,14 +177,14 @@ muxer_options.temp_dir = …;
muxer_options.bandwidth = 0; muxer_options.bandwidth = 0;
``` ```
##Creating KeySource for content encryption## ## Creating KeySource for content encryption ##
```C++ ```C++
// A KeySource is optional. The stream wont be encrypted if an // A KeySource is optional. The stream wont be encrypted if an
// KeySource is not provided. // KeySource is not provided.
``` ```
###WidevineKeySource### ### WidevineKeySource ###
```C++ ```C++
// Users may use WidevineKeySource to fetch keys from Widevine // Users may use WidevineKeySource to fetch keys from Widevine
@ -215,7 +215,7 @@ muxer->SetKeySource(
clear_lead, crypto_period_duration); clear_lead, crypto_period_duration);
``` ```
##Connecting Demuxer and Muxer## ## Connecting Demuxer and Muxer ##
```C++ ```C++
// Initialize the demuxer. // Initialize the demuxer.
@ -230,7 +230,7 @@ muxer->SetKeySource(
if (!status.ok()) { … } if (!status.ok()) { … }
``` ```
##Starting Remuxing## ## Starting Remuxing ##
```C++ ```C++
// Starts remuxing process. It runs until completion or abort due to error. // Starts remuxing process. It runs until completion or abort due to error.