1. Домой
  2. Документы
  3. Smarty (English version)
  4. Video servers integration
  5. Flussonic

Flussonic

Receiving Live Video Stream from Flussonic

Setting up the authorization backend on the Flussonic side

On the Flussonic streaming server side, you need to configure the authorization backend by specifying the API address of the StreamServiceTokenCheck method (taking into account the address of your Smarty) in «Config» → «Config Editor». You need to add the following lines:

auth_backend <Auth name> {

  backend http://<smarty_ip>:<smarty_port>/tvmiddleware/api/streamservice/token/check/;

}

Where <Auth name> is the name of the backend.

If the same authorization backend is planned to be used for all streams of the given broadcast server, then it is enough to specify its use globally (without specifying it in individual Streams):

# Stream templates:

# Template globals currently apply to all streams without templates.

# This will change in future, explicit template usage is recommended.

#template globals {

  on_play auth://<Auth name>;

#}

Setting up Live Streaming Service on Smarty Side

Creating a Live Streaming Service

You need to set up the streaming service for LIVE broadcasting using Flussonic. To do this, go to «Streaming settings» → «Streaming services» → «Create» button:

  1. In «Name» you must specify the name of the streaming service
  2. In the «Type» drop-down list, select «Live Unicast»
  3. The «URL Mask» item should look like this: http://<Flussonic IP Address>:<Flussonic Port>/$prefix/index.m3u8?token=$token
  4. In the “Accessibility Parameters” check the box next to “Service Enabled”
  5. In the «Token generation parameters» in the «Content ID for token» section, select $prefix

Creation of a Live TV channel

You need to create a channel that will work with the Flussonic streamer. To do this, go to «Content Settings» → «Channels» → «Create» button.

Next, you need to complete the following steps:

  1. In «Name» enter the name of your channel
  2. In the «EPG Program Guide» you need to select the appropriate EPG Channel from which you will receive information about the current TV program
  3. In «Tariff packages» select the list of tariff packages in which this channel must be present
  4. In the “Broadcasting Parameters” section, under “Streaming Services”, select the newly created streaming service (and other streaming services that can broadcast this channel)
  5. In «URL prefix» specify «Stream name» from the channel settings in Flussonic. It is recommended to use Latin letters and/or numbers

Adding the streaming service to your tariff plan

After the above steps, you need to add the streaming service to the corresponding tariff packages, otherwise the TV channel will not be displayed in the list of channels. To do this, go to «Billing» → «Tariff packages».

Необходимо отредактировать тарифный пакет, к которому нужно добавить (в разделе «Включает в себя услуги» в пункте «Стриминг-сервисы») созданный выше стриминг-сервис.

You need to edit the tariff package to which you need to add (in the “Includes services” section in the “Streaming services” item) the streaming service created above.

Setting up Flussonic with support for rewinding/viewing archived recordings

Setting up the authorization backend on Flussonic side

Attention! In order to view archive recordings or to rewind, you need to configure the DVR for a channel in Flussonic!

On the Flussonic streaming server side, you need to configure the authorization backend by specifying the API address of the StreamServiceTokenCheck method (taking into account the address of your Smarty) in «Config» → «Config Editor». You need to add the following lines:

auth_backend <Auth name> {

  backend http://<smarty_ip>:<smarty_port>/tvmiddleware/api/streamservice/token/check/;

}

Where <Auth name> is the name of the backend.

If you plan to use the same authorization backend for all streams of this server, then it is enough to specify its use globally (without specifying it in individual Streams):

# Stream templates:

# Template globals currently apply to all streams without templates.

# This will change in future, explicit template usage is recommended.

#template globals {

 on_play auth://<Auth name>;

#}

Setting up a PVR streaming service on Smarty side

Creation of a PVR streaming service

You need to set up a streaming service for PVR broadcasting using Flussonic. To do this, go to «Streaming settings» → «Streaming services» → «Create» button.

Let’s follow these steps:

  1. In «Name» you must specify the name of the streaming service
  2. In the «Type» drop-down list, select «PVR Unicast»
  3. The «URL Mask» item should look like this: http://<Flussonic IP Address>:<Flussonic Port>/$prefix/index-$flpbt-$flpdur.m3u8?token=$token
  4. The «URL mask for preview images» item should look like this: http://<Flussonic IP Address>:<Flussonic Port>/$prefix/$frame_time.jpg?token=$token.  Attention! Works only with the Sevstar template!
  5. In the “Accessibility Parameters” check the box next to “Service Enabled”
  6. In the «Token generation parameters» in the «Content ID for token» section, select $prefix
  7. Specify in «Record storage duration» a value according to the specified recording duration in the PVR settings in Flussonic (the duration is used to select the list of programs available for viewing from the TV program and is the limitation for rewinding)

Editing a TV channel to add archive

Now you need to change the settings of the channel that will work with the Flussonic archive. To do this, go to «Content Settings» → «Channels» → select the desired channel.

Next, you need to complete the following steps:

  1. In «Tariff packages» you need to select packages that allow a user to view the TV channel archive
  2. In the “Broadcasting Parameters” section, under “Streaming Services”, you need to select the newly created archive streaming service (with the PVR Unicast type)

Adding a streaming service to a tariff plan

It is necessary to add the archive streaming service to a tariff package to enable the functionality of viewing the archive or rewinding the TV channel. To do this, go to «Billing» → «Tariff packages» and edit the tariff package to which you need to add (in the «Includes services» section in the «Streaming services» item) the streaming service created above.