ossrs / WordPress-Plugin-SrsPlayer

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

Home Page:https://wordpress.org/plugins/srs-player/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

https://wordpress.org/plugins/srs-player/

License:MIT License


Languages

Language:JavaScript 94.6%Language:PHP 4.3%Language:Shell 1.2%Language:CSS 0.0%