How to Start Using the Watcher SDK
This SDK description is based on the demo application Flussonic isolated framework demo.
To start using the SDK:
Put the file
FlussonicSDK.framework to your project folder and add it to the project
After you've done it, your project will receive the necessary classes and protocols, such as
To embed the component into your app, you can use the
.storyboard) layout, or do it in your executable code.
You need to configure
FlussonicWatcherView by specifying a camera object (or the URL of video stream) and an adapter object.
The adapter object must execute the protocol
FlussonicPlayerAdapterProtocol and provide a drawable – UIView, to which the picture from a camera will be passed.
For rendering you can use any player, for example, VLC Media Player. This adapter can be used to pass events from the player via the protocol
For getting the state of the player
FlussonicWatcherView use delegates of the following protocols:
FlussonicBufferingListener– it monitors the state of buffering;
FlussonicDownloadRequestListener– it notifies when the downloading of a next video chunk begins.
FlussonicWatcherDelegateProtocol– it notifies about toolbar appearance;
FlussonicUpdateProgressEventListener– it notifies about changing of palyback parameters.
You can configure
PreviewMp4View in either of the ways: using
URLComponents, the object
You must also specify the key
cacheKey for caching the image (screenshot).
To track the status of image downloading, you can use the protocol