Skip to content

Commit

Permalink
feat(FEC-10686): move startTime config from playback to sources (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Ziv committed Jan 14, 2021
1 parent c9367a9 commit b24f0fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hls-adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ export default class HlsAdapter extends BaseMediaSourceAdapter {
pLoader.redirectExternalStreamsHandler = adapterConfig.redirectExternalStreamsHandler;
pLoader.redirectExternalStreamsTimeout = adapterConfig.redirectExternalStreamsTimeout;
}
if (Utils.Object.hasPropertyPath(config, 'playback.startTime')) {
const startTime = Utils.Object.getPropertyPath(config, 'playback.startTime');
if (Utils.Object.hasPropertyPath(config, 'sources.startTime')) {
const startTime = Utils.Object.getPropertyPath(config, 'sources.startTime');
if (startTime > -1) {
adapterConfig.hlsConfig.startPosition = config.playback.startTime;
adapterConfig.hlsConfig.startPosition = config.sources.startTime;
}
}
if (Utils.Object.hasPropertyPath(config, 'text.useNativeTextTrack')) {
Expand Down

0 comments on commit b24f0fd

Please sign in to comment.