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

Native video streaming support #90

Merged
merged 7 commits into from
Jul 2, 2020
Merged

Native video streaming support #90

merged 7 commits into from
Jul 2, 2020

Conversation

fdocr
Copy link
Contributor

@fdocr fdocr commented Jun 25, 2020

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Documentation Update

Description

This PR intends to override the HTML video tag problem from the WebViewClient. It uses the ExoPlayer PlayerView to stream the video in a separate Activity natively.

While working on it I started tweaking the directory, one thing led to another and ended up refactoring the project directory (following most of the ideas shared in #87).

In order to make this work an event must come from JavaScript. This is not implemented yet (PR to web repo coming soon). This can be tested by executing the following in Chrome's Developer Tools in order to have the video player pop-up manually:

AndroidBridge.playVideo("https://dw71fyauz7yz9.cloudfront.net/video-upload__fef924c4fad44dcdac1f53178b3ac9b0/video-upload__fef924c4fad44dcdac1f53178b3ac9b0.m3u8", 0)

Screen Shot 2020-06-24 at 17 10 23

Related Tickets & Documents

Fixes #86

Cleans up the directory a bit for #87

Screenshots/Recordings (if there are UI changes)

Might take a minute for the GIF to load:

videodemo3

[optional] What gif best describes this PR or how it makes you feel?

video

@fdocr fdocr changed the title Html video Native video streaming support Jun 25, 2020
@fdocr fdocr requested a review from maestromac June 25, 2020 01:23
Copy link
Contributor

@maestromac maestromac left a comment

Choose a reason for hiding this comment

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

Love the clean up! Tested locally and it's working great!

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't play video on google pixel
2 participants