mirror of
https://github.com/owncast/owncast.git
synced 2024-12-18 15:23:55 +03:00
25 lines
764 B
Go
25 lines
764 B
Go
package ffmpeg
|
|
|
|
import (
|
|
"github.com/owncast/owncast/models"
|
|
)
|
|
|
|
// HLSHandler gets told about available HLS playlists and segments.
|
|
type HLSHandler struct {
|
|
Storage models.StorageProvider
|
|
}
|
|
|
|
// SegmentWritten is fired when a HLS segment is written to disk.
|
|
func (h *HLSHandler) SegmentWritten(localFilePath string) {
|
|
h.Storage.SegmentWritten(localFilePath)
|
|
}
|
|
|
|
// VariantPlaylistWritten is fired when a HLS variant playlist is written to disk.
|
|
func (h *HLSHandler) VariantPlaylistWritten(localFilePath string) {
|
|
h.Storage.VariantPlaylistWritten(localFilePath)
|
|
}
|
|
|
|
// MasterPlaylistWritten is fired when a HLS master playlist is written to disk.
|
|
func (h *HLSHandler) MasterPlaylistWritten(localFilePath string) {
|
|
h.Storage.MasterPlaylistWritten(localFilePath)
|
|
}
|