A react native millicast sample application for integration and test of custom libWebRTC packages
The application is meant to run on Android mobiles, Android TV's and iOS devices
- We recommend using
yarn
, if you don't have it installed execute:
npm install --global yarn
- For iOS bundler is required
gem install bundler
- Bundler installed
- Yarn installed
- Xcode 15.2
- Cocoapods installed (Tested on versions > 1.14.3)
Update the STREAM_NAME
and ACCOUNT_ID
variable in the .env
file with your choice of Dolby.io Stream Name and Account ID to view
The steps 1 and 2 are common for all devices.
- Install the dependencies:
yarn cache clean
yarn install
- Start the metro dev server, execute:
yarn start
export GITHUB_PERSONAL_ACCESS_TOKEN=<Your personal access token>
cd ios && bundler install
bundle exec pod install --repo-update
To run from terminal:
yarn ios
Note: YOUR_PERSONAL_ACCESS_TOKEN
gives you access to the private release artifacts in this repository
To run from Xcode:
- Open Xcode.
- Select
Open a project from a file
and then select../ios/RNSampleMillicast.xcworkspace
. - Select
RNSampleMillicast
target. - Run the project.
yarn android
This project uses a custom version of react-native-webrtc from the repository -> https://github.com/millicast/react-native-webrtc. For consuming this fixes in another react native project, the following changes should be done:
Please refer to package.json
file:
"react-native-webrtc": "github:millicast/react-native-webrtc#{commit-hash}"