Getting a live video stream from Flussonic
On the streaming server side Flussonic you need to configure the authorization backend by specifying the StreamServiceTokenCheck API address (taking into account your Smarty address) in «Config» → «Config Editor». The following lines should be added:
auth_backend <Auth name> {
backend http://<smarty_ip>:<smarty_port>/tvmiddleware/api/streamservice/token/check/;
}Where — name of the backend.
If you plan to use the same authorization backend for all streams of this broadcast server, it is enough to indicate its use globally (without specifying in individual Streams):
# Stream templates:
Template globals currently applies to all streams without templates.
This will change in future, explicit template usage is recommended.
#template globals {
on_play auth://
#Setting up a live streaming service on the Smarty side
Creating a live streaming service
You need to configure a streaming service for LIVE broadcasting using Flussonic. To do this, go to «Settings streaming» → «Streaming services» → button «Create»:
- In «Name» you must specify the name of the streaming service
- In the drop-down list «Type» select «Live Unicast»
- Item «Mask URL» should look as follows:
http://<Flussonic IP Address>:<Flussonic Port>/$prefix/index.m3u8?token=$token - In «Availability Setting» tick at «Service enabled»
- In «Token generation option» in item « Content ID for token» select $prefix
Creation of Live TV Channel
You need to create a channel that will work with the streamer Flussonic. To do this, go to «Content Settings» → «Channels» → button «Create».
The following steps are to be taken:
- In «Names » specify the name of your channel
- In «Program EPG» you need to select the appropriate EPG Channel from which you will receive information about the current TV show
- B«Fare Packages» select the list of tariff packages in which this channel must be present
- In «Broadcasting Settings» in «Streaming Services» Select a newly created streaming service (and other streaming services that can broadcast this channel)
- In «URL-prefix» specify «Stream name» from channel settings in Flussonic. Attention! It is recommended to use Latin letters and/or numbers
Adding a streaming service to the tariff package
After the above actions, you need to add a streaming service to the corresponding tariff packages, otherwise the channel will not be displayed in the list of channels. To do this, go to «Billing» → «Tariff packages».
It is necessary to edit the tariff package to which you need to add (in section « Includes services» in item « Streaming services») the streaming service created above.
Flussonic setup with support for rewinding / viewing archive records
Attention! To view archival records/rewind, you need to configure the DVR for the channel in Flussonic!
On the streaming server side Flussonic you need to configure the authorization backend by specifying the StreamServiceTokenCheck API address (taking into account your Smarty address) in «Config» → «Config Editor». The following lines should be added:
auth_backend <Auth name> {
backend http://<smarty_ip>:<smarty_port>/tvmiddleware/api/streamservice/token/check/;
}Where — name of the backend.
If you plan to use the same authorization backend for all streams of this server, it is enough to indicate its use globally (without specifying in separate Streams):
# Stream templates:
Template globals currently applies to all streams without templates.
This will change in future, explicit template usage is recommended.
#template globals {
on_play auth://
#}Setting up PVR streaming service on the Smarty side
Creation of PVR streaming service
You need to configure a streaming service for PVR broadcasting using Flussonic. To do this, go to «Settings streaming» → «Streaming services» → button «Create».
The following steps will be taken:
- In «Name» you must specify the name of the streaming service
- In the drop-down list «Type» select «PVR Unicast»
- Item «Mask URL» should look as follows:
http://<Flussonic IP Address>:<Flussonic Port>/ $prefix/index-$flpbt-$flpdur.m3u8?token=$token - Item «The URL mask for preview images» should look as follows:
http://<Flussonic IP Address>:. Attention! It only works with the Sevstar template!<Flussonic Port>/$prefix/$frame_time.jpg?token=token - In «Availability Setting» tick in «Service enabled»
- In «Token generation option» in item « Content ID for token» select $prefix
- Specify in « Duration of recording storage » value according to the specified recording duration in the PVR settings in Flussonic (duration is used to sample the list of transmissions available for viewing from the TV program and is a limit for rewinding)
Editing a TV channel to add an archive
Now you need to change the settings of the channel, which will work with the Flussonic archive. To do this, go to «Content Settings» → «Channels» → select the desired channel.
The following steps are to be taken:
- In «Fare Packages» you need to select packages that allow the user to view the archive of the channel
- In «Broadcast Settings» in «Streaming Services» you need to select a newly created archival streaming service (with PVR Unicast type)
Adding a streaming service to the tariff package
It is necessary to add an archive streaming service to the tariff package to include the functionality of viewing the archive / rewind the channel. For this, go to «Billing» → «Tariff packages» and edit the tariff package to which you need to add (in the section «Includes services» in the paragraph «Streaming services») created above streaming service.
