module Data.ByteString.IsoBaseFileFormat.Boxes.ProgressiveDownloadInformation
where
import Data.ByteString.IsoBaseFileFormat.Boxes.Box
type ProgressiveDownloadInformationBox = Box "pdin"
instance BoxRules "pdin"
progressiveDownloadInformationBox
:: ProgressiveDownloadInformation -> ProgressiveDownloadInformationBox
progressiveDownloadInformationBox = fullBox (BoxVersion 0) zeroBits
data ProgressiveDownloadInformation =
ProgressiveDownloadInformation {pdinRate :: Word32
,pdinDelay :: Word32
}
instance IsBoxContent ProgressiveDownloadInformation where
boxSize _ = 8
boxBuilder pdin = word32BE (pdinRate pdin) <> word32BE (pdinDelay pdin)