Documentation ¶
Index ¶
- Variables
- func BuildContentFeatures(mediaType string, seek string, transcode bool) (string, error)
- func BuildRequestHeader(soapAction string) http.Header
- func ClockTimeToSeconds(strtime string) (int, error)
- func FormatClockTime(strtime string) (string, error)
- func GetMimeDetails(f io.ReadCloser) (string, error)
- func SecondsToClockTime(secs int) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidSeekFlag = errors.New("invalid seek flag") ErrInvalidClockFormat = errors.New("invalid clock format") )
Functions ¶
func BuildContentFeatures ¶
BuildContentFeatures builds the content features string for the "contentFeatures.dlna.org" header.
func BuildRequestHeader ¶
func ClockTimeToSeconds ¶
ClockTimeToSeconds converts relative time to seconds.
func FormatClockTime ¶
FormatClockTime converts clock time to a more expected format of clock time.
func GetMimeDetails ¶
func GetMimeDetails(f io.ReadCloser) (string, error)
GetMimeDetails returns the media mime details.
func SecondsToClockTime ¶
SecondsToClockTime converts seconds to seconds relative time.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.