Skip to content

Commit

Permalink
Add new request type TIMING for clock sync requests (#1489)
Browse files Browse the repository at this point in the history
Fixes #1488
  • Loading branch information
pcruiksh authored and joeyparrish committed Jul 16, 2018
1 parent b0a52a6 commit e312c3a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Mattias Wadman <mattias.wadman@gmail.com>
Morten Hansen <mimo@mimo-design.com>
Nick Desaulniers <nick@mozilla.com>
Oskar Arvidsson <oskar@irock.se>
Patrick Cruikshank <patrick.cruikshank@gmail.com>
Patrick Kunka <patrick@kunkalabs.com>
Philo Inc. <*@philo.com>
Robert Colantuoni <rgc@colantuoni.com>
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Natalie Harris <natalieharris@google.com>
Nick Desaulniers <nick@mozilla.com>
Niklas Korz <nk@alugha.com>
Oskar Arvidsson <oskar@irock.se>
Patrick Cruikshank <patrick.cruikshank@gmail.com>
Patrick Kunka <patrick@kunkalabs.com>
Robert Colantuoni <rgc@colantuoni.com>
Rohit Makasana <rohitbm@google.com>
Expand Down
2 changes: 1 addition & 1 deletion lib/dash/dash_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -1467,7 +1467,7 @@ shaka.dash.DashParser.prototype.requestForTiming_ =
let request = shaka.net.NetworkingEngine.makeRequest(
requestUris, this.config_.retryParameters);
request.method = method;
const type = shaka.net.NetworkingEngine.RequestType.MANIFEST;
const type = shaka.net.NetworkingEngine.RequestType.TIMING;

let operation = this.playerInterface_.networkingEngine.request(type, request);
this.operationManager_.manage(operation);
Expand Down
1 change: 1 addition & 0 deletions lib/net/networking_engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ shaka.net.NetworkingEngine.RequestType = {
'SEGMENT': 1,
'LICENSE': 2,
'APP': 3,
'TIMING': 4,
};


Expand Down
2 changes: 1 addition & 1 deletion test/dash/dash_parser_live_unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ describe('DashParser Live', function() {

describe('stop', function() {
const manifestRequestType = shaka.net.NetworkingEngine.RequestType.MANIFEST;
const dateRequestType = shaka.net.NetworkingEngine.RequestType.MANIFEST;
const dateRequestType = shaka.net.NetworkingEngine.RequestType.TIMING;
const manifestUri = 'dummy://foo';
const dateUri = 'http://foo.bar/date';

Expand Down

0 comments on commit e312c3a

Please sign in to comment.