Merge pull request #34 from netroby/master
time import , but not usage. CROS must set
This commit is contained in:
commit
261fd7f9b0
@ -3,7 +3,6 @@ package main
|
|||||||
import (
|
import (
|
||||||
"sync"
|
"sync"
|
||||||
"io"
|
"io"
|
||||||
"time"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"github.com/nareix/joy4/format"
|
"github.com/nareix/joy4/format"
|
||||||
"github.com/nareix/joy4/av/avutil"
|
"github.com/nareix/joy4/av/avutil"
|
||||||
@ -80,6 +79,7 @@ func main() {
|
|||||||
if ch != nil {
|
if ch != nil {
|
||||||
w.Header().Set("Content-Type", "video/x-flv")
|
w.Header().Set("Content-Type", "video/x-flv")
|
||||||
w.Header().Set("Transfer-Encoding", "chunked")
|
w.Header().Set("Transfer-Encoding", "chunked")
|
||||||
|
w.Header().Set("Access-Control-Allow-Origin", "*")
|
||||||
w.WriteHeader(200)
|
w.WriteHeader(200)
|
||||||
flusher := w.(http.Flusher)
|
flusher := w.(http.Flusher)
|
||||||
flusher.Flush()
|
flusher.Flush()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user