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 (
|
||||
"sync"
|
||||
"io"
|
||||
"time"
|
||||
"net/http"
|
||||
"github.com/nareix/joy4/format"
|
||||
"github.com/nareix/joy4/av/avutil"
|
||||
@ -80,6 +79,7 @@ func main() {
|
||||
if ch != nil {
|
||||
w.Header().Set("Content-Type", "video/x-flv")
|
||||
w.Header().Set("Transfer-Encoding", "chunked")
|
||||
w.Header().Set("Access-Control-Allow-Origin", "*")
|
||||
w.WriteHeader(200)
|
||||
flusher := w.(http.Flusher)
|
||||
flusher.Flush()
|
||||
|
Loading…
x
Reference in New Issue
Block a user