Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace .getManifest() call #101

Merged
merged 3 commits into from
Jun 15, 2021
Merged

Conversation

leticiafernandes
Copy link
Contributor

@leticiafernandes leticiafernandes commented Jun 11, 2021

Summary

The getManifest() method was deprecated by Shaka and was generating a ton of warnings at the DevTools console.

Shaka has a method to access directly the presentation start time (getPresentationStartTimeAsDate) and this PR is responsible for it's implementation.

Changes

  • clappr-dash-shaka-playback.js - Fix retrieving of presentation start time as a date.

How to test

  • Play any LIVE media;
  • Check the _onTimeUpdate method;
    • The value of firstFragDateTime key should be passed correctly and without warnings at the application console.
    • For VoD medias the sended value should be 0.

A picture is worth a thousand words

Before

Captura de Tela 2021-06-11 às 17 19 38

After

Captura de Tela 2021-06-11 às 17 22 06

@leticiafernandes leticiafernandes requested review from joaopaulovieira and jhonatangcavalcanti and removed request for joaopaulovieira June 11, 2021 20:48
@joaopaulovieira joaopaulovieira merged commit 5f00461 into master Jun 15, 2021
@joaopaulovieira joaopaulovieira deleted the improve-presentation-start-time branch June 15, 2021 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants