https://github.com/ossrs/wordpress-plugin-srsplayer
SRS Player is a video streaming player, supports HLS/HTTP-FLV/WebRTC etc.
https://github.com/ossrs/wordpress-plugin-srsplayer
Last synced: 12 months ago
JSON representation
SRS Player is a video streaming player, supports HLS/HTTP-FLV/WebRTC etc.
- Host: GitHub
- URL: https://github.com/ossrs/wordpress-plugin-srsplayer
- Owner: ossrs
- License: mit
- Created: 2022-04-10T10:59:44.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-03-18T11:56:28.000Z (over 2 years ago)
- Last Synced: 2025-04-21T04:43:28.618Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://wordpress.org/plugins/srs-player/
- Size: 1.35 MB
- Stars: 16
- Watchers: 1
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WordPress-Plugin-SrsPlayer
[](https://twitter.com/srs_server)
[](https://discord.gg/UWHTZf9mPP)
[](https://cloud.digitalocean.com/droplets/new?appId=104916642&size=s-1vcpu-1gb®ion=sgp1&image=ossrs-srs&type=applications)
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](https://cloud.digitalocean.com/droplets/new?appId=104916642&size=s-1vcpu-1gb®ion=sgp1&image=ossrs-srs&type=applications)
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](https://ossrs.medium.com/how-to-setup-a-video-streaming-service-by-1-click-e9fe6f314ac6)
Next, visit your WordPress, install this plugin, and create a post with the following shortcodes, please follow the
[tutorial](https://blog.ossrs.io/publish-your-srs-livestream-through-wordpress-ec18dfae7d6f):
* 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](https://discord.gg/yZ4BnPmHAd)
## Options
You could specify options, for example, to limit the HLS:
```text
[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](#usage).
* `width`: (Optional) The width to limit the video, it's not required.
Winlin, 2022