Ensure your standard React Native Web project (basic-playback-web) is ready, and your Samsung HbbTV device is set up for development.
-
Create a project using the getting started guide at
https://necolas.github.io/react-native-web/docs/installation/
.
Make sure that the following dependencies are met:-
react: 16.13.1
-
react-dom: 16.13.1
-
react-native-web: 0.14.13
-
-
Extract and unzip the following files from the release bundle provided:
-
React Native OTVPlayer module (opy-react-native-<version>-react-otvplayer.zip).
-
React Native OTVPlayer examples (opy-react-native-<version>-examples.zip)
-
-
Add the React Native OTVPlayer to your RN project:
-
yarn add <filepath to extracted react-otvplayer>
-
-
Copy the files from extracted examples/basicPlaybackWeb as described in examples/README.md to your project.
-
Build the App using scripts provided by the CRA system or your custom scripts:
-
yarn build
-
-
Host the build on an HTTP(s) server. Launch the App from the HbbTV / PC browser (Use the Play/Pause RCU keys for TV OR p/space Keyboard keys on PC browser )
-
Add the following tags to the index.html file.