Portability | portable (depends on GHC) |
---|---|
Stability | alpha |
Maintainer | gtk2hs-devel\@lists.sourceforge.net |
An object describing events that are passed up and down a pipeline.
- data Event
- class MiniObjectClass o => EventClass o
- data EventType
- data SeekFlags
- data SeekType
- eventType :: EventClass event => event -> EventType
- eventNewCustom :: EventType -> Structure -> IO Event
- eventNewEOS :: IO Event
- eventNewFlushStart :: IO Event
- eventNewFlushStop :: IO Event
- eventNewLatency :: ClockTime -> IO Event
- eventNewNavigation :: Structure -> IO Event
- eventNewNewSegment :: Bool -> Double -> Format -> Int64 -> Int64 -> Int64 -> IO Event
- eventNewNewSegmentFull :: Bool -> Double -> Double -> Format -> Int64 -> Int64 -> Int64 -> IO Event
- eventNewQOS :: Double -> ClockTimeDiff -> ClockTime -> IO Event
- eventNewSeek :: Double -> Format -> [SeekFlags] -> SeekType -> Int64 -> SeekType -> Int64 -> IO Event
- eventNewTag :: TagList -> IO Event
- eventParseBufferSize :: EventClass event => event -> Maybe (Format, Int64, Int64, Bool)
- eventParseLatency :: EventClass event => event -> Maybe ClockTime
- eventParseNewSegment :: EventClass event => event -> Maybe (Bool, Double, Format, Int64, Int64, Int64)
- eventParseNewSegmentFull :: EventClass event => event -> Maybe (Bool, Double, Double, Format, Int64, Int64, Int64)
- eventParseQOS :: EventClass event => event -> Maybe (Double, ClockTimeDiff, ClockTime)
- eventParseSeek :: EventClass event => event -> Maybe (Double, Format, [SeekFlags], SeekType, Int64, SeekType, Int64)
- eventParseTag :: EventClass event => event -> Maybe TagList
- eventTypeGetName :: EventType -> String
- eventTypeGetFlags :: EventType -> [EventTypeFlags]
Detail
An Event
is a message that is passed up and down a pipeline.
There are a number of predefined events and functions returning
events. To send an event an application will usually use
Media.Streaming.GStreamer.Core.Element.elementSendEvent
, and
elements will use
Media.Streaming.GStreamer.Core.Pad.padSendEvent
or
Media.Streaming.GStreamer.Core.padPushEvent
.
Types
class MiniObjectClass o => EventClass o Source
The event types that may occur in a pipeline.
EventUnknown | an unknown event |
EventFlushStart | start a flush operation |
EventFlushStop | stop a flush operation |
EventEOS | end of stream |
EventNewSegment | a new segment follows in the dataflow |
EventTag | a new set of metadata tags has been found |
EventBufferSize | notification of buffering requirements |
EventQOS | quality of service notification |
EventSeek | a request for a new playback position and rate |
EventNavigation | notification of user request |
EventLatency | notification of latency adjustment |
EventCustomUpstream | custom upstream event |
EventCustomDownstream | custom downstream event |
EventCustomDownstreamOOB | custom downstream out-of-band event |
EventCustomBoth | custom bidirectional event |
EventCustomBothOOB | custom bidirectional out-of-band event |
Event Operations
eventType :: EventClass event => event -> EventTypeSource
eventNewNewSegmentFull :: Bool -> Double -> Double -> Format -> Int64 -> Int64 -> Int64 -> IO EventSource
eventNewQOS :: Double -> ClockTimeDiff -> ClockTime -> IO EventSource
eventNewSeek :: Double -> Format -> [SeekFlags] -> SeekType -> Int64 -> SeekType -> Int64 -> IO EventSource
eventNewTag :: TagList -> IO EventSource
eventParseBufferSize :: EventClass event => event -> Maybe (Format, Int64, Int64, Bool)Source
eventParseLatency :: EventClass event => event -> Maybe ClockTimeSource
eventParseNewSegment :: EventClass event => event -> Maybe (Bool, Double, Format, Int64, Int64, Int64)Source
eventParseNewSegmentFull :: EventClass event => event -> Maybe (Bool, Double, Double, Format, Int64, Int64, Int64)Source
eventParseQOS :: EventClass event => event -> Maybe (Double, ClockTimeDiff, ClockTime)Source
eventParseSeek :: EventClass event => event -> Maybe (Double, Format, [SeekFlags], SeekType, Int64, SeekType, Int64)Source
eventParseTag :: EventClass event => event -> Maybe TagListSource
eventTypeGetFlags :: EventType -> [EventTypeFlags]Source