Opening & Closing External Streams In Myriad 5 Playout

Modified on Tue, 24 Sep at 12:56 PM

This article replaces an original article published in 2019 that describes a method using the WMP Manager application. The WMP Manager has been replaced with the Stream Player applications which is part of the Audio Tools Pack  (which also include the Loop Thru application). Whilst the WMP Manager method will continue to work, no further updates to the WMP Manager will be published so you should consider switching to the method described below.

Basic principle

The Stream Player is a basic audio player tool that can connect to a stream URL and play the stream through a selected audio output channel (sound device). The Stream Player can be controlled by Command Media Items in Myriad 5 Playout that can be manually 'triggered' placed in the Log (either manually or as part of the schedule.

 

mceclip0.png

 

This allows you to:
  • Switch web streams into your live or automated playout.
  • Pre-load the stream to allow for connection buffer delays.
  • Gracefully fade in and fade out volume of stream to segue between local and streamed content.
  • Open and close WMP Manager application as required.

To help you get started, we have included a number of example Command Media Items which can be imported to your Media Wall as a Media Pack. These examples will show you how to perform all the steps outlined above although you will need to create new Command Media Items for each of the streams you wish to connect to.

Stream Player installation and setup

Download the Broadcast Radio Tools Pack from this location.

Visit: https://install.appcenter.ms/orgs/broadcastradio/apps/brtools/distribution_groups/public

Click on Download.

 

mceclip1.png

Once the .zip file has finished downloading, navigate to the folder you downloaded to, open the .zip file and double click on BRToolsINstaller.msi .

 

mceclip3.png

 

 

This will launch the BR Tools Pack installer. There are no options so just click on the Next button when prompted to walk through the installation process.

Once the installation is complete, run the Stream Player application from the Start menu.

 

mceclip4.png

 

This will open the Stream Player.

 

mceclip0.png

 

Whilst there are other potential uses for the Stream Player, in this scenario we will use Command Media Items in Myriad 5 Playout to set the stream URL so the only thing we need to do is select the output sound device you want to use.

Click on the Settings cog to access the settings.

mceclip5.png

 

Select the Sound Device you want to using the Output Device drop down.

 

mceclip6.png

 

You do not need to set the Stream URL as that will be done via the Command Media Item.

You may also wish to adjust the Buffer Size option depending on the speed of your PC and your internet connection but we recommend sticking with Medium unless you have issues.

 

mceclip7.png

Click on OK to close the Settings window.

You can actually close the Stream Player for now as the next step is to import the example Command Media Items into Myriad 5 Playout.

Import example Command Media Items into Myriad 5 Playout

With the Stream Player installed and configured, it is time to import the example Command Media Items into Myriad 5 Playout and look at how they can be used to control the Stream Player.

In Myriad 5 Playout, click on File Menu > Install Media Pack > Import Media Pack.

 

mceclip8.png

Navigate to the following location: C:\BroadcastRadioTools and select BRStreamPlayer5Command.zip

 

mceclip10.png

This will install 14 new Command Media Items in the next empty Media ID's in your Basic Items range.

 

mceclip12.png

There are a lot of examples including:

  • Launch Application - Opens the Stream Player (includes the stream URL to connect to).
  • Launch Application (Started) - Opens Stream Player and connects to the specified stream URL.
  • Launch Application (Started + Muted) - Opens Stream Player and connects to the specified stream URL but with the audio volume muted.
  • Launch Application (Started + Volume set to 0) - Opens Stream Player and connects to the specified stream URL but with the audio volume set to zero. Use this if you want to fade in the stream.
  • Start - This command will Start the Stream Player if it is not currently started (ie of you have launched but not started - Launch Application).
  • Stop - This command will Stop the Stream Player but not close it.
  • Set Volume To 50% - This will set the output volume of the Stream Player to 50% (jump not fade).
  • Fade Out Over 1 Second - This will fade the output volume of the Stream Player from whatever it currently is to zero over a 1 second period.
  • Fade In Over 1 Second - This will fade the output volume of the Stream Player from whatever it currently is to 100% over a 1 second period.
  • Fade To 75% Over 0.5 Seconds - Fades the output volume of the Stream Player to 75% over a 0.5 second period.
  • Fade To 100% Over 0.5 Seconds - Fades the output volume of the Stream Player to 100% over a 0.5 second period.
  • Mute - Immediately mutes the audio output of the Stream Player (but leaves it connected).
  • Un-mute - Immediately un-mutes the audio output of the Stream Player.
  • Close - Immediately closes the Stream Player application.

By modifying these Commands and combining them, you can achieve sequences such as:

 

  1. Start the Stream Player Muted - It will connected to the set URL but the output volume will be set to zero.
  2. Play a jingle - this gives time for the stream to connect and buffer if needed.
  3. Fade In Over 1 Second - fade up the audio volume on the stream.
  4. Wait for 30 minutes - using an Absolute Time.
  5. Fade Out Over 1 Second - fade at the stream.
  6. Start the next item in the Log.
  7. Close the Stream Player application.

A sequence like this would allow you to connect to an external stream, wait a period of time then disconnect from the stream with a smooth transition back to Log playout.

 

Modifying Commands

Let's take a closer look at a couple of those Commands.

 

mceclip13.png

 

The most useful example Command is the Launch Application (Started + Muted) as this Command will start the Stream Player, tell it to connect to a stream URL but with the output volume muted.

If you Edit the appropriate example Command you will see the following code in the details section on the Editor tab.

 

External.Open("C:\BroadcastRadioTools\BRStreamPlayer5\BRStreamPlayer5.exe","/Start /Mute /URL="http://streaming.broadcastradio.com:9110/PG48AAC")

 

mceclip14.png

So in this example, the Command will open a one of our test streams. 

You will need to make a copy of this Command Item and change the Stream URL to the stream you want to connected to.

You will also need to make a new Command Item for each additional Stream you want to connect to.

The Command above will open the Stream Player and connect it to your Stream URL but the volume will be muted. 

So you would also want to follow this with a second Command to either Un-Mute or Fade In the audio. Let's take a look at the Fade In Over 1 Second Command.

 

Remote.HttpGet("http://localhost:9180/BrStreamPlayer/v5/api/Audio/FadeIn?numberOfSeconds=1")

 

mceclip15.png

 

This Command sends an HTTPGet to the Stream Player telling it to fade up the volume over a 1 second period. There is no need to modify this Command or create multiple versions as the Command is not for a specific URL.

This Command uses the RESTAPI that is built into the Stream Player to control the Stream Player via an HTTPGET Command. You could also use this feature to control Stream Player from other applications.

For more details on the available RESTAPI options see - http://localhost:9180/BrStreamPlayer/v5/swagger/ui/index#/Audio

Give it a try

Before we see how to use these Commands in a scheduled Log to connect to a stream, it is a good idea to test it manually.

  1. Copy the Launch Application (Started + Muted) Command to an empty Media ID.
  2. Edit this item and change the Stream URL to the stream you want to connect to. 

    mceclip16.png

  3. Close the Media Item (save when prompted).
  4. Double click on the Media Item.
  5. The Stream Player will launch and connect to your stream with the audio volume muted.

    mceclip17.png

  6. Next, double click on the Unmute example Command.

    mceclip18.png

    This will un-mute the audio output on the Stream Player.

    mceclip19.png

    You should be able to hear the audio from your stream now!


  7. Try some of the other Example Commands to see what they do.

Putting it all together

Consider the Log Sequence bellow:

 

14_sequence.jpg

 
  1. This Command will launch the Stream Player and connect to the set stream with the volume muted. In practice, this will happen instantly and Myriad will move on to the next item in the Log.
  2. Play a standard jingle. This should be long enough to allow the Stream Player to connect to the Stream URL.
  3. At the Extro of the jingle, the Command will fire that will fade in the stream.
  4. With the stream playing, Myriad can now wait for the time set in the Absolute time. In this example the Myriad will wait until 11:59 and 54 seconds.
  5. At that time it will fade out the stream, the immediately move on to the next item in the Log.
  6. Finally we play a standard jingle to end the hour.

So this would provide you with an hour in your Log that included a jingle at the beginning and end with an external stream playing for the rest of the hour.

You could manually build a sequence like this but you can also build the same sequence in your Clocks on either Myriad Schedule or AutoTrack (Standard and Pro).

 

15_clock_in_schedule.jpg

 

Note that the specific Command Media Item ID;'s are used to trigger the desired events.

By combining Command in Myriad with the Broadcast Radio Stream Player, you can include external streams in you live or automated output for your station.

 

The Broadcast Radio Player is provided, free of charge, to all Myriad v5 customers. The Stream Player cannot be controlled by Myriad 4 so they will have to continue to use the WMP Manager.

 

Anything else?

You may also be interested in the Audio Loop Through application which is also included in the BR Tools Pack.

See - Broadcast Radio Tools Pack

 

 

 

 

 

 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article