Skip to content

Commit

Permalink
Merge pull request nareix#34 from netroby/master
Browse files Browse the repository at this point in the history
time import , but not usage. CROS must set
  • Loading branch information
nareix authored Jul 21, 2017
2 parents 4b82a8c + 44a5684 commit 261fd7f
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 261fd7f

Please sign in to comment.