[JW8-12117] Update custom receiver app
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
:white_check_mark: Build for commit ea093b0af163080378fd5734d609dd3fad0dcf5c passed.
Take it for a spin https://jenkins-player.longtailvideo.com/job/jw7-pr-builder-cast-receiver/35/artifact/bin-debug/index.html?key=2BZ0H4uA%2B%2F7xZb0rKQSQ%2B6K%2FFZcUxEJbgZTEsQ%3D%3D
:video_game: On!