Skip to content

ossrs/WordPress-Plugin-SrsPlayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordPress-Plugin-SrsPlayer

SRS Player is a video streaming player, supports HLS/HTTP-FLV/WebRTC etc.

Usage

First, you should get your own video streaming server. Highly recommend to Create SRS Droplet by 1-Click.

Then, publish live streaming by OBS to your server, you should be able to play the stream by VLC, please follow the tutorial

Next, visit your WordPress, install this plugin, and create a post with the following shortcodes, please follow the tutorial:

  • For HLS: [srs_player url="https://your_server_ip/live/livestream.m3u8"]
  • For WebRTC: [srs_player url="webrtc://your_server_ip/live/livestream"]
  • For HTTP-FLV: [srs_player url="https://your_server_ip/live/livestream.flv"]

You could also use WebRTC to publish live stream:

  • For WebRTC: [srs_publisher url="webrtc://your_server_ip/live/livestream"]

If you are stuck, please get help from discord

Options

You could specify options, for example, to limit the HLS:

[srs_player url="https://your_server_ip/live/livestream.m3u8" width="720"]

The options of SRS player:

  • url: The url to play, supports HLS, HTTP-FLV and WebRTC, please see Usage.
  • width: (Optional) The width to limit the video, it's not required.

Winlin, 2022