Wowza Player, Wowza GoCoder SDK, and the technology powering the Ultra Low Latency (ULL) service in Wowza Streaming Cloud will no longer be available on August 31, 2021. Learn more.
Wowza Media Systems™ offers player software called Wowza™ Player, a lightweight HTML5 player that plays Apple HLS streams in any browser, on any device. This gem provides the Wowza Player in a friendly Rails wrapper.
A Wowza Player license is required. To obtain a license or learn more, see the Wowza Player webpage.
To install the Wowza Player Rails wrapper:
-
Add the following line to your application's Gemfile:
gem 'wowza_player', git: 'git@github.com:WowzaMediaSystems/wowza-player-rails.git'
-
Execute the following command:
$ bundle install -
Then use the built-in generator to inject the Wowza Player source script into your application layout:
$ rails generate wowza_player
This gem provides two helper methods available to your rails templates.
The 'wowza_player_script' helper enables you to manually locate the Wowza Player source script. This is not needed if you ran the generator during installation.
<%= wowza_player_script_tag %>
After installing the Wowza Player source script using either the generator or the helper above, the wowza_player_tag helper enables you to embed the Wowza Player in your views
<% = wowza_player_tag(license: <your-wowza-player-license>, sourceURL: <hls-source-url>) %>
This helper supports all of the Player Builder configuration settings for Wowza Player. To use these configuration options, convert the parameters from JSON notation to Ruby hash syntax and pass that to the wowza_player_tag helper.
How to get started with Wowza Player
This code is distributed under the Wowza Public License.