WpStream – A WordPress Video Streaming Plugin

How to Enable Regular Users to Broadcast via the Front-End

About the feature

This feature allows your streamers on your website to go live through the Front End (not in wp-admin area), meaning that users who are not administrators can now independently broadcast videos.

We have added a new shortcode, WPBakery block, and Elementor widget. All these items are backed by the same code so their behavior is the same.

To begin, you must first head to WpStream ‘Settings’ in your WordPress admin:

There are 3 new settings here:

Extra Roles

From a list, you are now able to pick the roles of those whom you allow to broadcast. More specifically, if you would like your Editor, Author, Contributer, etc. to be able to create a channel and go live.

The type of channel 

Until now, only Administrators were capable of creating free or paid channels. Other users were unable to set up a channel (free or paid) to broadcast. Because of your requests and feedback, we have made it possible for the plugin to auto create one channel for each user. This setting allows you to choose the type of channel created – free or paid (alternatively, they can also have one free and one paid channel).

Default Price for streamers on your website

There is a default price that a paid channel will have upon creation. Only the administrator is able to change the price of this channel.

After you go through the above settings you can move on with the implementation of the Front-End streaming.

3 ways to do this:

  1. Classic WordPress Shortcode – [wpstream_go_live id =””] – if you leave the id blank, the plugin will auto discover the id of the first channel that belongs to the logged user and will automatically use that. If you add an id, the plugin will start broadcasting over that id.
  2. Visual Bakery – there is a new block called ‘WpStream Start Streaming’ Button. You will have an id parameter that acts as explained above.
  3. Elementor – there is a new widget called ‘WpStream Start Streaming’. You will have an id parameter that acts as explained above.

For Programmers, you can also use the do_shortcode function

echo do_shortcode( ‘[wpstream_go_live id=””]’ );

A few notes

  1. Finding out which user id “owns” that page
  2. Add the player using the do_shortcode
    echo do_shortcode( ‘[wpstream_go_live user_id=””]’ );

Styling the shortcode streamers on your website

In case you want to change the looks of WpStream elements, you can do this via css. The Front-End styles for ‘Start Streaming’ shortcode/blocks can be found in wpstream_style.css at the end of the file (around line 445) .

The Front-End block have the class .event_unit_style_front  so you can customize any css element by writing a selector that starts with .event_unit_style_front

For example  .event_unit_style_front .start_event.wpstream_button{ your css code here..

Final Words 

To conclude this tutorial on how to enable regular streamers on your website to go live via the Front-End.

One of the most popular ways that our clients use this feature is for their multivendor marketplace websites. Their websites are e-commerce websites where they sell products and services and they will often collaborate with influencers on these projects. Read more on Live Streaming on E-Commerce websites.

We are constantly updating and adding new features to the plugin to give you the best user experience. Please follow our documentation closely and add any feature requests that you would like to see implemented. Your suggestion may be in a future update!

Check out our YouTube Channel for all our Video Tutorials

Exit mobile version