Smarty

  1. Home
  2. Docs
  3. Smarty
  4. Streaming setup
  5. Flussonic

Flussonic

Getting a live video stream from Flussonic

Setting up the authorization backend on the Flussonic side

On the streaming server side Flussonic you need to configure the authorization backend by specifying the StreamServiceTokenCheck API address (taking into account the address of your Smarty) 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 - the 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 “Streaming Settings” → “Streaming Services” → the “Create” button:

  1. In the “Name” you must specify the name of the streaming service
  2. In the drop-down list "Type" select "Live Unicast"
  3. The URL mask should look like this: http://<Flussonic IP Address>:<Flussonic Port>/$prefix/index.m3u8?token=$token
  4. In the "Availability Option" tick the item "Service is enabled"
  5. In the “Token generation option” in the “Content Identifier for the 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 → Create button.

The following steps are to be taken:

  1. In the “Name” list the name of your channel
  2. In the "EPG Transmission Program" you need to select the appropriate EPG Channel from which information about the current TV broadcast will be obtained
  3. In the "Tariff packages" select the list of tariff packages in which this channel must be present
  4. In the “Broadcasting Options” in the “Streaming Services” option, select the newly created streaming service (and other streaming services that can broadcast this channel)
  5. In the “URL prefix”, specify “Stream name” from the 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, it is necessary 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, you need to go to Billing → Tariff packages.

It is necessary to edit the tariff package to which you need to add (in the section “Includes services” in the paragraph “Streaming services”) the streaming service created above.

Flussonic setup with support for rewinding / viewing archive records

Setting up the authorization backend on the Flussonic side

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 the address of your Smarty) 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 - the 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 “Streaming Settings” → “Streaming Services” → the “Create” button.

The following steps will be taken:

  1. In the “Name” you must specify the name of the streaming service
  2. In the drop-down list "Type" select "PVR Unicast"
  3. The URL mask should look like this: http://<Flussonic IP Address>:<Flussonic Port>/ $prefix/index-$flpbt-$flpdur.m3u8?token=$token
  4. The URL mask for preview images should look like this: http://<Flussonic IP Address>:<Flussonic Port>/$prefix/$frame_time.jpg?token=token. Attention! It only works with the Sevstar template!
  5. In the "Availability Option" set a tick in the "Service enabled"
  6. In the “Token generation option” in the “Content Identifier for the Token” select $prefix
  7. Specify in “Record Storage Duration” the 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 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:

  1. In Tariff Packages, you need to select packages that allow the user to view the archive of the channel
  2. In the “Broadcasting Parameter” in the “Streaming Services” item, you must select a newly created archival streaming service (with the 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 / rewinding the channel.To do this, you need to 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”) the streaming service created above.