mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2026-10-21 05:26:51 +00:00
22 lines
393 B
Go
22 lines
393 B
Go
//go:build cgo
|
|
|
|
package plg_video_transcoder
|
|
|
|
import (
|
|
"github.com/gorilla/mux"
|
|
|
|
"github.com/mickael-kerjean/filestash/server/plugin/plg_video_transcoder/libav"
|
|
)
|
|
|
|
func isActive() bool {
|
|
return true
|
|
}
|
|
|
|
func servePlaylist(cacheName string) string {
|
|
return libav.MasterPlaylist(cacheName)
|
|
}
|
|
|
|
func serveHLSChunks(r *mux.Router) {
|
|
libav.RegisterRoutes(r, VIDEO_CACHE_PATH, video_encoder())
|
|
}
|