mirror of
https://github.com/Monibuca/plugin-rtsp.git
synced 2025-11-02 19:54:08 +08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a9cb4cd853 |
1
main.go
1
main.go
@@ -63,6 +63,7 @@ func runPlugin() {
|
||||
}
|
||||
})
|
||||
http.HandleFunc("/rtsp/pull", func(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Set("Access-Control-Allow-Origin", "*")
|
||||
targetURL := r.URL.Query().Get("target")
|
||||
streamPath := r.URL.Query().Get("streamPath")
|
||||
if err := new(RTSP).PullStream(streamPath, targetURL); err == nil {
|
||||
|
||||
Reference in New Issue
Block a user