Implementing Live with DVR

In this topic, you will learn how to configure Brightcove Live using DVR functionality.

Introduction

Creating a live event with DVR enabled involves a number of steps. At a high-level these steps are:

  1. In Beacon Studio, create a live event in the Live module. In the creation of this event you ensure DVR functionality is enabled.
  2. Create a live stream. In this document the free software tool OBS Studio is used.
  3. In Beacon Classic, create an event linked to the live event created in Beacon Studio.
  4. In Beacon Studio, publish the live event by adding the event to an OTT playlist and placing that playlist on a Beacon app page.

Create a Live event in Studio

The steps in this section lead you through the process of creating a Live event in Beacon Studio.

  1. Log in to Beacon Studio and select the Live module.
  2. In the top-right of the page click Create Event.
  3. Give the event a Event Name.
  4. For the Live Ingest Profile select the appropriate value for your environment.
  5. By default, the Convert event to video asset when complete is checked. Uncheck this if you do not wish to have the live event as a VOD asset after the event concludes.
  6. Open the Advanced Options section.
  7. Check the Create Cloud DVR checkbox.
  8. Supply a value for the DVR Window. This value is in seconds with a maximum of 24 hours, which is 86400 seconds, allowed.
  9. Check the Enable stream status notifications checkbox.
  10. Enter a URL based on the form:
    https://YourBeaconClassicDomain/webhook/live_api_notification
    where, as indicated, the domain of the URL points to the location of your Beacon Classic domain.
  11. Check to be sure the two values are changed, with your values, for the Advanced Options:
    advanced options
  12. Click Create Event.
  13. Check to be sure you are taken to the Control Room for your live event. Note the event is in the Waiting status.
    control room
  14. Click on the Publish and Embed link to open that section of the page.
  15. In the Live Player Options details, be sure Allow DVR is checked.
    live player options
  16. In a text file, BE SURE to document from the Control Room main page the following properties and associated values:
    • Live with DVR Endpoint (RTMP URL)
    • Stream Name
    • Job ID
    • Video ID
    And from the Control Room's Publish and Embed page the following value:
    • Player URL - Note you use only part of this value later
    These values are needed later in the implementation steps.

Note that the event also appears in the Media module as VOD content:

event in media module

Stream a video

In this section you setup a live stream. These steps use the free video streaming tool OBS Studio. For more information on OBS Studio and its configuration, see the Step-by-Step: Using the Live Module with Open Broadcaster Software (OBS) document.

Of course, the setup depends upon the streaming hardware or software you are using.

  1. In OBS Studio, in the Sources panel, add your Video Capture Device.
  2. In the Controls panel, click Settings.
  3. In the Settings dialog, click Stream.
  4. From the Service dropdown, select Custom...
  5. For the Server value, paste in the Live with DVR Endpoint (RTMP URL) documented earlier.
  6. For the Stream Key paste in the Stream Name documented earlier.
  7. Click OK.
  8. Check to be sure OBS is streaming your video.

Create an event in Beacon Classic

You now create an event in Beacon Classic that can be added to an OTT playlist. Then that playlist is added to a page so the event appears in your Beacon app.

  1. Log in to Beacon Classic.
  2. In the top navigation, select Events.
  3. Click Ad new event.
  4. In the Basic Data tab, enter an event Name.
  5. Choose a date and time for the Event Start Date.
  6. For the Job ID paste in the Job ID documented earlier.
  7. Change to the Textual Data tab.
  8. Enter a Title.
  9. Change the Streams tab.
  10. Click Add new stream.
  11. In the Stream Video ID, paste in the value for Video ID documented earlier.
  12. Select all for the Devices to publish.
  13. From the Stream Type dropdown, select Live.
  14. View the value documented earlier for the Player URL.
  15. Look for the string adConfigId (highlighted in red) in the URL and then copy the remaining value (highlighted in yellow).
    playback query parameters
  16. In the Player Query Parameters, enter the string ad_config_id= then paste in the value just copied. The completed value in the form should resemble:
    ad_config_id=live.RxOHVhcnaQVSh2MgDow3phDndV_CZKYijFlfQlc1zFivy54hoqywi8xny3hukJzJmVAbZxcSngK037JgPMX1HEt5uHP5XQcO9b3SsSgHHfPWcao5LSW4BIk
  17. Check to be sure your form appears similar to the following:
    stream form complete
  18. Change to the Rights & Scheduling tab.
  19. Enter a Start Time for the event.
  20. Enter an End Time for the event.
  21. Select all for the Devices to publish.
  22. Select a geography for the Permitted locations.
  23. Check to be sure your form appears similar to the following:
    rights scheduling form complete
  24. Click Create New Event.

Publish live event

Once you have created your event in Beacon Classic, it needs to be published so it appears in your Beacon app. This process is dependant on if the page and/or playlist you wish to you use is/are already created. The steps below give a high level view of the process.

  1. Designate or create the page on which you wish the event created in Beacon Classic to appear.
  2. Designate or create the OTT playlist in which the event created in Beacon Classic is placed.
  3. Add the event created in Beacon Classic to your OTT playlist.
  4. Add the newly changed playlist to your designated page. Of course, if the playlist previously existed, it may already be assigned to a page.
  5. If you created a new page, be sure it is published.
  6. Refresh the app's cache.

That's it, you have now created and published a live event with DVR functionality enabled.