How to Play and Test Your Stream Targets Using Wowza Player

August 10, 2018 by

Play and test stream targets with Wowza Player

 

When it comes to creating video playback experiences, the streaming server plays a significant role—but the media player and its configuration are almost as important. Great viewing experiences rely on the ability to play the formats and protocols provided by the streaming server, so the server and player must work together to provide live and on-demand streaming experiences.

Most popular media players, including Wowza Player, utilize the JavaScript programming language or JSON syntax. The more you understand it, the easier it’ll be to configure your player. Available with any Wowza Streaming Engine™ software license or Wowza Streaming Cloud™ service account, Wowza Player is an HTML5 embeddable media player which can be customized for a variety of playback conditions. This also includes support for Wowza Streaming Cloud with Ultra Low Latency playback, which utilizes the WOWZ™ protocol for lightning-fast video.

In this tutorial, you’ll learn how to test your configurations from creating a Stream Target in Wowza Streaming Engine using Wowza Player. This blog post complements my previous tutorial discussing how to create Stream Targets: “Set Up, Manage and Monitor Live Streams With Wowza Streaming Engine Manager.”

I’ll be using code taken from the Wowza Player Builder and inserted into TextWrangler, my authoring tool. First, we’ll configure the Wowza Player to play the Source Stream, and second, we’ll show you how to configure the player to play the Stream Target.

Let’s get started.

Tools Used: Wowza Player, Wowza Streaming Engine, TextWrangler, Wirecast

Here’s the information we’ll use from our previous tutorial:

Source Stream Server: rtmp://serveripaddress:1935/wowza_live Application: wowza_live Stream Name: eventsource

Stream Target Server: rtmp://serveripaddress:1935/wowza_live Application: wowza_target Stream Name: event_target

 

Testing Your Source Stream With Wowza Player

The first step in testing your Source Stream in Wowza Player is configuring your embed code.

Configuring Embed Code for Source Stream

First, you’ll need to navigate to Wowza Player Builder and select Get Embed Code.

Wowza Player Source Stream

Now, open your authoring tool and paste in the embed code. It should look similar to what you see in the screenshot above.

This embed code is using JSON syntax; because Wowza hosts Wowza Player for you, most of the information will already be populated.

First, add a title for your web page in between.

Second, you should see your Wowza Player License Key appear as the value for “license.”

Third, Add a value for “description”.

Lastly, add your value for the “sourceURL” similar to the information above. This is the URL to play your Source Stream.

Now, save your file and upload your .html page to a web server, placing the file in a directory called “wowzaplayer”.

Viewing Your Source Stream

This is a sample URL to test the Source Stream: http://websitetohostplayer/wowzaplayer/wowzaplayer_source_stream.html

To view the page, first make sure you’re sending a live stream to the Source Stream listed above. Next, open the URL to the Source Stream web page. If it plays properly, the Source Stream setup is working.

 

Testing Your Stream Target with Wowza Player

Wowza Player Stream Target Test

Configuring Embed Code for Stream Target

Create a new HTML page, copy the embed code used above and paste it into your authoring tool. It should look similar to what you see in the screenshot above.

Now, add a title for your web page in between.

Next, you should see your Wowza Player License Key appear as the value for “license.” This should be the same information from your Source Stream web page.

Add a value for “description.”

Finally, add your value for the “sourceURL,” similar to the information above. This is the URL to play your Stream Target.

Now, save your file and upload your .html page to a web server, placing the file in the same directory as before.

Viewing Your Stream Target

This is a sample URL to test the Stream Target:

http://websitetohostplayer/wowzaplayer/wowzaplayer_stream_target.html

To view the page, first make sure you’re sending a live stream to the Stream Target listed above. Next, open the URL to the Stream Target web page. If it plays properly, the Stream Target setup is working properly.

 

Key Considerations

  • Remember, you’ll need a Wowza Streaming Engine license and a Wowza account to be able to use Wowza Player.
  • The two tests above are to ensure your setup is working and configured properly using a web server to host your web pages. Additional adjustments can be made to your embed code if you’re using your project in production.
  • In this tutorial, you learned how to test your Source Stream and Stream Target using an authoring tool such as TextWrangler for Mac. Mac users can also use BBEdit. Windows users can use NotePad++ to author web pages.

Now you have a better understanding of how to test your Stream Targets configurations to ensure they are working properly.

To learn more about configuring your Wowza Player, or about customizations, visit our rich documentation library at: https://www.wowza.com/docs/getting-started-with-wowza-player. Wowza Player is available for anyone with an active Wowza Streaming Engine license, or Wowza Streaming Cloud account.

Don’t have Wowza Streaming Engine yet? Sign up for a free trial. Would you rather leverage a managed infrastructure? Try Wowza Streaming Cloud.