The Demo App
The demo app demonstrates the main ways of using the FlussonicWatcherView
and PreviewMp4View
components (please refer here for details on those components).
The demo app is available here. You will need Mac to build it.
Running the demo app:
- Install xCode and CocoaPods as described here. Make sure to select Development OS MacOS and Target OS iOS in order to see proper instructions.
-
Clone Flussonic Watcher SDK for iOS repo from GitHub:
git clone https://github.com/flussonic/flussonic-watcher-sdk-ios.git --depth 1
-
Go to demo app folder:
cd ./flussonic-watcher-sdk-ios/demoapp
-
Install dependencies:
pod install
-
Open FlussonicDemoApp.xcworkspace project in xCode.
-
Run FlussonicDemoApp by selecting Product => Run
In the demo app:
-
CamerasListIsoTVC
— the table that contains the list of cameras. Each cell contains an instance ofPreviewMp4View
, which is used for fetching and displying the preview image. -
PlayerIsoViewController
— a sceen with the player (FlussonicWatcherView
) and an adapterFlussonicVlcAdapter
. -
FlussonicVlcAdapter
— the adapter for using it in theVLCMediaPlayer
as a player.