Browse Source

fix docs

pull/509/head
aler9 4 years ago
parent
commit
3828b71206
  1. 2
      README.md
  2. 4
      internal/hls/muxer.go

2
README.md

@ -332,7 +332,7 @@ The direct HLS URL, that can be used to read the stream with Javascript librarie @@ -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

4
internal/hls/muxer.go

@ -183,7 +183,7 @@ func (m *Muxer) WriteAAC(pts time.Duration, aus [][]byte) error { @@ -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 { @@ -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")

Loading…
Cancel
Save