Ocyss/srs-auth / .agents/skills/internal-docs-for-srs
internal-docs-for-srs
FlaggedRoute SRS and Oryx tasks to the smallest relevant set of trusted project documentation and maintain the project documentation bundled with this skill. Use whenever support or development work requires locating, choosing, reading, creating, updating, or reviewing SRS documentation, or whenever Oryx work requires project documentation for deployment, streaming, authentication, recording to local or S3-compatible storage, restreaming, virtual live, camera, transcoding, HTTPS, APIs, callbacks, AI features, or development. Includes the C++ media server documentation, Oryx project documentation, website pages, changelog, executable API examples, and next-generation Go server and performance documentation.
references/oryx/2022-04-15-Oryx-WordPress-Plugin.md
View on GitHub---
slug: WordPress-Plugin
title: Oryx - How to Publish Your SRS Livestream Through WordPress
authors: []
tags: [tutorial, wordpress, streaming]
custom_edit_url: null
---
# How to Publish Your SRS Livestream Through WordPress
## Introduction
After you have set up your own live streaming server through the [SRS Droplet](https://blog.ossrs.io/how-to-setup-a-video-streaming-service-by-1-click-e9fe6f314ac6)
you received multiple links to publish your stream. You can use the build in players or use the links in [VLC](https://www.videolan.org/)
for example for the various sources.
But what if you would like to embed your HTTP-FLV, HLS or WebRTC stream straight into your WordPress site?
In this tutorial, I will show you how you set up your WordPress and SRS Player plugin to stream right through your
website for viewers to watch.
<!--truncate-->
## Prerequisites
To complete this guide, you need:
1. OBS installed, following the instructions [here](https://obsproject.com/) to download and install OBS.
1. Having your SRS Server set up, following the instructions [here](https://blog.ossrs.io/how-to-setup-a-video-streaming-service-by-1-click-e9fe6f314ac6).
1. Having your WordPress website [set up](https://medium.com/@kindlepublishingservices/setting-up-a-wordpress-website-8ed1911d3831).
This guide will use placeholder `your_public_ipv4` and `your_domain_name` throughout for streaming URLs. Please replace
them with your own IP address or domain name.
## Step 1: Download the SRS WordPress Plugin
After you logged in your WordPress website, navigate to Plugins, click the `Add New` button.

Search for `SRS Player` or follow this [link](https://wordpress.org/plugins/srs-player/).

Click the `Install Now` button and after the Installing prompt, click Activate. The plugin should now be active.
## Step 2: Embed the WordPress Plugin shortcode into your post or page.
Copy the shortcode from your SRS server of the protocol you wish to embed.

Within WordPress, create a new Post or Page.

Create a new shortcode on your post or page.



Use the shortcode of the protocol you would like to embed by using one of the following shortcodes:
1. HLS `[srs_player url="https://your_public_ipv4/live/livestream.m3u8"]`
1. FLV `[srs_player url="https://your_public_ipv4/live/livestream.flv"]`
1. WebRTC `[srs_player url="webrtc://your_public_ipv4/live/livestream"]`
Click the Publish button and check your new page.

Your player should show up on your WordPress post or page.
> Note: Basic setup of the SRS server does not activate HTTPS. If your WordPress website is HTTPS, it will be unable to
> show the video coming from a HTTP server. Setting up HTTPS on your server requires additional steps, please follow
> [set-up HTTPS for SRS](./2022-04-12-Oryx-HTTPS.md) tutorial.
Step 3: Resize the player on your post or page.
By default the player has the size of the output size you determined in your OBS stream settings. This can cause your
WordPress layout to look off. To resize your player add `width="your chosen width"` in your shortcode.
For example, if I want my player to have a width of 320, your shortcode would look like this:
```text
[srs_player url="https://ip/live/livestream.m3u8" width="320"]
```
Your player should have a width of 320 and a height with the corresponding aspect ratio of your stream.
## Step 4: Set up your SRS server as HTTPS (optional)
If your WordPress website is protected by a SSL certificate and your initial setup of your SRS server is not, your video
will not play on your website.
Please follow [these instructions](./2022-04-12-Oryx-HTTPS.md) to
setup an SSL certificate for your SRS streaming server. After this setup your video will play on your website.
## Cloud Service
At SRS, our goal is to establish a non-profit, open-source community dedicated to creating an all-in-one,
out-of-the-box, open-source video solution for live streaming and WebRTC online services.
Additionally, we offer a [Cloud](../cloud) service for those who prefer to use cloud service instead of building from
scratch. Our cloud service features global network acceleration, enhanced congestion control algorithms,
client SDKs for all platforms, and some free quota.
To learn more about our cloud service, click [here](../cloud).
## Conclusion
In this tutorial you’ve learned to set up the SRS WordPress plugin and embedded a stream on your post or page. If you
have further questions about SRS, [the wiki](../docs/v4/doc/introduction) is a good place to start.
## Contact
If you’d like to discuss with SRS, you are welcome to [discord](https://discord.gg/yZ4BnPmHAd).

Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |