react-native-windows icon indicating copy to clipboard operation
react-native-windows copied to clipboard

Support react-native-video on RNW vNext

Open stecrain opened this issue 7 years ago • 13 comments

@harinikmsft Here's the issue

I want to start experimenting with video support in a React Native Windows project. To stream play all of the content I'm interested in the video player would need to support mpeg dash and Microsoft smooth streaming.

There is an existing project that adds support for video to the C# React Native Windows implementation. I'm not sure if it makes more sense to update the existing react-native-video to work with RNWCPP or if it should live in this repo. Just wanted to point out that it exists :)

stecrain avatar Feb 28 '19 14:02 stecrain

I would recommend that we fork react-native-video and use this work item as an opportunity to flesh out the native component extensions model.

rozele avatar Feb 28 '19 16:02 rozele

Latest rnwcpp-preview has initial support for adding custom view managers, more work to do things nicely but its possible now.

ahimberg avatar Mar 06 '19 06:03 ahimberg

Excellent! So with the latest changes I should be able to just add a custom ViewManager for Video and map it to MediaPlayerElement? (for example)

stecrain avatar Mar 06 '19 15:03 stecrain

I believe that should be possible but I haven't actually confirmed I can use the custom viewmanager headers/types from outside the repo, we'll be trying that soon in our codebase and fixing up if there are any minor issues. Look at CustomViewManager and replace winrt::checkbox with the xaml control you are wrapping

ahimberg avatar Mar 06 '19 18:03 ahimberg

This should cover adding support to a community module

harinikmsft avatar Apr 25 '19 17:04 harinikmsft

Removing ready to dev until we have the proper model for native modules.

jonthysell avatar Aug 06 '19 16:08 jonthysell

Moving back to M3 as we'll want to use this as a test case for view managers.

chrisglein avatar Aug 30 '19 00:08 chrisglein

Camera has view manager coverage, so this can move to M4.

chrisglein avatar Oct 29 '19 20:10 chrisglein

@ddalp do you have a topic branch you can share? I'm looking into the versioning story and would like to see a working viewmanager.

kmelmon avatar Nov 27 '19 19:11 kmelmon

I am looking to incorporate a video player in my app. So far linking react-native-video still generates an error. Does anyone know how to embed and play a video with the current vnext release? Or point me to a sample react native windows app that has video embedded in it? Thanks.

feechin avatar Jan 30 '20 17:01 feechin

@feechin Our current plan is to release a Video native module soon after MVP release.

ddalp avatar Jan 30 '20 17:01 ddalp

React-Native-Video community module for windows Cpp/WinRT is now checked in, remaining issue #4157 (keyboard touch events not firing when in full window mode)will be addressed in RNW.

ddalp avatar Feb 25 '20 22:02 ddalp

Providing link to PR to help people looking back over the process of adding Windows support to existing native modules: https://github.com/react-native-community/react-native-video/pull/1893

chrisglein avatar Apr 08 '20 17:04 chrisglein