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

[JW8-12117] Update custom receiver app #23

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Dawolee
Copy link

@Dawolee Dawolee commented Mar 28, 2022

This PR will...
Update this repo's older dependencies and build scripts. Also refactored some logic and updated cast receiver syntax as we are migrating to Web Receiver v3 https://developers.google.com/cast/docs/migrate_v2/receiver.

General list of things I did with this PR:

  • Update dependency versions in package.json
  • Update gulpfile commands as they were outdated after updating dependency version
  • Switch over the v2 syntax to v3 https://developers.google.com/cast/docs/migrate_v2/receiver
  • Fix existing logic to at least be able to properly cast the content and control it using the web player (play, pause, seek, mute, etc).

Although I tried to fix a lot of the basic core functionality, such as being able to control playback with the sender app player, there are still issues that need to be addressed such as:

  • Sender app player position is not in sync with the receiver app's jwplayer. (I tried calling jwplayer().getPosition() on the jwplayer in the web receiver app and the jwplayer on Desktop web app starting the cast session and they returned different values). This does not affect the controls (pause, play, volume setting, next playlist item, etc) but the time being out of sync seems to cause the sender app player to show a buffering state quite often. This might be something we have to adjust on our sender app side??
  • There is a volume issue with casting right now but it is unrelated to this PR. There is a separate PR here to fix this behavior: https://github.com/jwplayer/jwplayer-commercial/pull/8390
  • DRM is still not working. I will make a new JW8 ticket for this.
  • Discussion on whether to work off of this old project or start a whole new Chromecast receiver app.

Why is this Pull Request needed?
Spike ticket
Are there any points in the code the reviewer needs to double check?
Are there any Pull Requests open in other repos which need to be merged with this?
Addresses Issue(s):
https://jwplayer.atlassian.net/browse/JW8-12117

@Dawolee Dawolee changed the title [JW8-12223] Update custom receiver app [JW8-12117] Update custom receiver app Mar 28, 2022

// Start listening for messages.
// https://developers.google.com/cast/docs/web_receiver/core_features following CAF changes
this.playerManager.addEventListener(EventType.ALL, this.dispatchEvent.bind(this));
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was setting this to ALL for debugging but we should listen to specific events for the actual app.

Copy link

@jdunningjwp jdunningjwp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

3 participants