CARVIEW |
Select Language
HTTP/2 200
date: Thu, 24 Jul 2025 04:05:34 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"1642b416411478fd892a62acc9744f11"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=RyPNm9JJBGVnFJNkQkHsixoHPbDYdsB2%2BSXJM%2FHtKaVuFvbQsTSuiZuynMxOb5m3r7RMeEdv9aAA3HLOmyZ7Ea0kKDPtJshxwF%2FpSa9XsfCu3YyTWtEinfpYbftrzJK%2BhNSEkUXWQtl41GhYyIPK8hAfQJn33gdjvX53Zs7IMlhTwAtWDnO%2FwIU31Y25ubJdP%2BXojrgK7dN0j4OBtPj%2F0qCj7aC1BKgVOeXD4slIpNF1A6oieufVA7O2yxKAjrBw6Eb%2BxCpoa6KwRJQRYk8pTQ%3D%3D--cW9iTC9NefJoS8sQ--6H%2BY%2BwahMfdh9g%2Fd9MzoEQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.619304641.1753329933; Path=/; Domain=github.com; Expires=Fri, 24 Jul 2026 04:05:33 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 24 Jul 2026 04:05:33 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: BD4C:9C104:2D7E8F:3FFE51:6881B10D
v1_CN_ServerSideScript · ossrs/srs Wiki · GitHub
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
v1_CN_ServerSideScript
winlin edited this page Jan 6, 2022
·
12 revisions
HOME > CN > Server-side Script
SRS不支持服务器端脚本,所谓服务器端脚本,指的是服务器可以加载外部脚本文件,解释并执行。
支持服务器脚本的服务器有FMS,语言是actionscript1.0;nginx支持的是lua。
SRS不支持服务器脚本的原因有:
- 不Simple:违反了SRS(Simple RTMP Server)的第一个S,支持扩展脚本,出错的几率也扩展了。
- 实际用处很小:我在国内知名的CDN公司工作时,所在部门就是用FMS,当然FMS不提供源码,所以只能支持服务器脚本来定制。结果商用起来很费劲,基本上每天出问题,而且还没法查原因。所以实际的用处很小。
- SRS支持HTTP调用:调用外部http,实际上也是一种扩展方式,SRS支持这种较好的方式。譬如当用户连接上SRS时,会调用HTTP接口,可以做验证。
- SRS开源:为何要定制脚本?重要的一个原因就是闭源,SRS开源,可以修改源码。
- SRS代码定制简单:SRS整个服务器实现代码才2万行,nginx-rtmp是3万行+nginx的14万行,定制SRS要简单很多。而且SRS是“同步”处理的,逻辑很少。
综上所述,SRS暂时不考虑支持扩展脚本,这个东西没啥用。
Winlin 2014.2
Welcome to SRS wiki!
Please select your language:
Please select your language:
Please select your language:
Please select your language:
Please select your language:
Clone this wiki locally
You can’t perform that action at this time.