Skip to content

Commit

Permalink
time import , but not usage. CROS must set
Browse files Browse the repository at this point in the history
  • Loading branch information
netroby authored Jul 13, 2017
1 parent 4b82a8c commit 44a5684
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/http_flv_and_rtmp_server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package main
import (
"sync"
"io"
"time"
"net/http"
"github.com/nareix/joy4/format"
"github.com/nareix/joy4/av/avutil"
Expand Down Expand Up @@ -79,7 +78,8 @@ func main() {

if ch != nil {
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)
flusher := w.(http.Flusher)
flusher.Flush()
Expand Down

0 comments on commit 44a5684

Please sign in to comment.