HLSPlaylistGenerator
in package
implements
PlaylistGenerator
Table of Contents
Interfaces
Constants
- PLAYLIST_END = '#EXT-X-ENDLIST'
- PLAYLIST_START = '#EXTM3U'
Methods
- get() : string
- Loops through all segment playlists and generates a main playlist. It finds the relative paths to the segment playlists and adds the framerate when to each playlist.
- getStreamInfoLine() : string
- Return the line from the master playlist that references the given segment playlist.
Constants
PLAYLIST_END
public
mixed
PLAYLIST_END
= '#EXT-X-ENDLIST'
PLAYLIST_START
public
mixed
PLAYLIST_START
= '#EXTM3U'
Methods
get()
Loops through all segment playlists and generates a main playlist. It finds the relative paths to the segment playlists and adds the framerate when to each playlist.
public
get(array<string|int, mixed> $segmentPlaylists, PHPFFMpeg $driver) : string
Parameters
- $segmentPlaylists : array<string|int, mixed>
- $driver : PHPFFMpeg
Return values
stringgetStreamInfoLine()
Return the line from the master playlist that references the given segment playlist.
private
getStreamInfoLine(Media $segmentPlaylistMedia, string $key) : string
Parameters
- $segmentPlaylistMedia : Media
- $key : string