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

Video block #687

Closed
Tug opened this issue Feb 28, 2019 · 3 comments
Closed

Video block #687

Tug opened this issue Feb 28, 2019 · 3 comments
Assignees
Labels

Comments

@Tug
Copy link
Contributor

Tug commented Feb 28, 2019

Add support for Video block

@pinarol
Copy link
Contributor

pinarol commented Apr 11, 2019

TO DO items to go publicly available:

TODO items next:

@pinarol
Copy link
Contributor

pinarol commented May 10, 2019

Note about video playing differences between platforms

Currently on iOS we have a pull page video play, on Android we have inline.

This is because we have limitations on react-native-video level. Having control buttons(like play, pause etc) in the video block are messing up the layout on iOS, so I had to hide them and add our own play button which opens the video on full page. Once the video opens full page then there's no problem about control buttons. A bit of a technical insight: I think this is the line responsible for it, they are setting the frame (as a workaround for some issue) when controls=true
https://github.com/react-native-community/react-native-video/blob/c30f246f5694452f4f081ff30ac4523dfd89f41d/ios/Video/RCTVideo.m#L593
And by doing that they are messing up the y position of our page.

On the other hand on Android the full page preview just doesn’t work, the method call does nothing. But control buttons do work correctly. The video can play inline.

So now, we have different user experiences in both platforms in terms of video playing. If we want to make this equal in the future we'll need to either solve one of this:

  1. Android the full page preview doesn’t work
  2. iOS controls=true messing up the layout

@hypest
Copy link
Contributor

hypest commented Jul 22, 2019

The block has been released for both platforms. Closing this.

@hypest hypest closed this as completed Jul 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants