From 3828b71206e07d9393a1931c988e8954471652b2 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Sat, 14 Aug 2021 13:52:57 +0200 Subject: [PATCH] fix docs --- README.md | 2 +- internal/hls/muxer.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 79a031c8..089cd05b 100644 --- a/README.md +++ b/README.md @@ -332,7 +332,7 @@ The direct HLS URL, that can be used to read the stream with Javascript librarie http://localhost:8888/mystream/stream.m3u8 ``` -Please note that most browsers don't support HLS directly (except Safari); a Javascript library, like [hls.js](https://github.com/video-dev/hls.js/), must be used to load the stream. +Please note that most browsers don't support HLS directly (except Safari); a Javascript library, like [hls.js](https://github.com/video-dev/hls.js), must be used to load the stream. ### Publish from OBS Studio diff --git a/internal/hls/muxer.go b/internal/hls/muxer.go index 699726aa..9d83fdac 100644 --- a/internal/hls/muxer.go +++ b/internal/hls/muxer.go @@ -183,7 +183,7 @@ func (m *Muxer) WriteAAC(pts time.Duration, aus [][]byte) error { return nil } -// Playlist returns a reader to read the HLS playlist in M3U8 format. +// Playlist returns a reader to read the playlist. func (m *Muxer) Playlist() io.Reader { m.mutex.RLock() defer m.mutex.RUnlock() @@ -221,7 +221,7 @@ func (m *Muxer) Playlist() io.Reader { return bytes.NewReader([]byte(cnt)) } -// TSFile returns a reader to read a given MPEG-TS file. +// TSFile returns a reader to read a MPEG-TS file. func (m *Muxer) TSFile(fname string) io.Reader { base := strings.TrimSuffix(fname, ".ts")