diff --git a/internal/core/hls_source_test.go b/internal/core/hls_source_test.go index 2d6b9856..27a2efa6 100644 --- a/internal/core/hls_source_test.go +++ b/internal/core/hls_source_test.go @@ -54,7 +54,7 @@ func (ts *testHLSServer) onPlaylist(ctx *gin.Context) { segment.ts ` - ctx.Writer.Header().Set("Content-Type", `audio/mpegURL`) + ctx.Writer.Header().Set("Content-Type", `application/x-mpegURL`) io.Copy(ctx.Writer, bytes.NewReader([]byte(cnt))) } diff --git a/internal/hls/client_test.go b/internal/hls/client_test.go index d575e0fe..c07ed3a4 100644 --- a/internal/hls/client_test.go +++ b/internal/hls/client_test.go @@ -122,7 +122,7 @@ func newTestHLSServer(ca string) (*testHLSServer, error) { #EXTINF:2, ` + segment + "\n" - ctx.Writer.Header().Set("Content-Type", `audio/mpegURL`) + ctx.Writer.Header().Set("Content-Type", `application/x-mpegURL`) io.Copy(ctx.Writer, bytes.NewReader([]byte(cnt))) }) diff --git a/internal/hls/muxer_primary_playlist.go b/internal/hls/muxer_primary_playlist.go index bcb307a8..c466008e 100644 --- a/internal/hls/muxer_primary_playlist.go +++ b/internal/hls/muxer_primary_playlist.go @@ -33,7 +33,7 @@ func (p *muxerPrimaryPlaylist) file() *MuxerFileResponse { return &MuxerFileResponse{ Status: http.StatusOK, Header: map[string]string{ - "Content-Type": `audio/mpegURL`, + "Content-Type": `application/x-mpegURL`, }, Body: func() io.Reader { var codecs []string diff --git a/internal/hls/muxer_variant_fmp4_playlist.go b/internal/hls/muxer_variant_fmp4_playlist.go index d932538b..beda273a 100644 --- a/internal/hls/muxer_variant_fmp4_playlist.go +++ b/internal/hls/muxer_variant_fmp4_playlist.go @@ -221,7 +221,7 @@ func (p *muxerVariantFMP4Playlist) playlistReader(msn string, part string, skip return &MuxerFileResponse{ Status: http.StatusOK, Header: map[string]string{ - "Content-Type": `audio/mpegURL`, + "Content-Type": `application/x-mpegURL`, }, Body: p.fullPlaylist(isDeltaUpdate), } @@ -247,7 +247,7 @@ func (p *muxerVariantFMP4Playlist) playlistReader(msn string, part string, skip return &MuxerFileResponse{ Status: http.StatusOK, Header: map[string]string{ - "Content-Type": `audio/mpegURL`, + "Content-Type": `application/x-mpegURL`, }, Body: p.fullPlaylist(isDeltaUpdate), } diff --git a/internal/hls/muxer_variant_mpegts_playlist.go b/internal/hls/muxer_variant_mpegts_playlist.go index 88a01a2a..a7762b34 100644 --- a/internal/hls/muxer_variant_mpegts_playlist.go +++ b/internal/hls/muxer_variant_mpegts_playlist.go @@ -101,7 +101,7 @@ func (p *muxerVariantMPEGTSPlaylist) playlistReader() *MuxerFileResponse { return &MuxerFileResponse{ Status: http.StatusOK, Header: map[string]string{ - "Content-Type": `audio/mpegURL`, + "Content-Type": `application/x-mpegURL`, }, Body: p.playlist(), }