- data ContentType = ContentType {
- label :: String
- mime :: [String]
- identifyP :: ByteString -> Bool
- headers :: ByteString -> Int
- preroll :: Int
- granulerateF :: Maybe (ByteString -> Granulerate)
- granuleshiftF :: Maybe (ByteString -> Int)
- metadata :: ByteString -> MessageHeaders
- knownContentTypes :: [String]
- identify :: ByteString -> Maybe ContentType
- granulerate :: ContentType -> ByteString -> Maybe Granulerate
- granuleshift :: ContentType -> ByteString -> Maybe Int
- parseType :: String -> Maybe ContentType
- class ContentTyped a where
- contentTypeIs :: ContentType -> a -> Bool
- contentTypeOf :: a -> Maybe ContentType
- contentTypeEq :: (ContentTyped a, ContentTyped b) => a -> b -> Bool
- demuxByContentType :: ContentTyped a => [a] -> [[a]]
- skeleton :: ContentType
- cmml :: ContentType
- flac :: ContentType
- speex :: ContentType
- celt :: ContentType
- theora :: ContentType
- vorbis :: ContentType
Documentation
data ContentType Source
Data: ContentType
ContentType | |
|
granuleshift :: ContentType -> ByteString -> Maybe IntSource
class ContentTyped a whereSource
Typeclass: ContentTyped
contentTypeIs :: ContentType -> a -> BoolSource
contentTypeOf :: a -> Maybe ContentTypeSource
contentTypeEq :: (ContentTyped a, ContentTyped b) => a -> b -> BoolSource
demuxByContentType :: ContentTyped a => [a] -> [[a]]Source
Group a list of ContentTyped items by their Content-Type