module JSDOM.Generated.VideoTrack
(getId, setKind, getKind, getLabel, setLanguage, getLanguage,
setSelected, getSelected, getSourceBuffer, VideoTrack(..),
gTypeVideoTrack)
where
import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))
import qualified Prelude (error)
import Data.Typeable (Typeable)
import Data.Traversable (mapM)
import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, asyncFunction, new, array, jsUndefined, (!), (!!))
import Data.Int (Int64)
import Data.Word (Word, Word64)
import JSDOM.Types
import Control.Applicative ((<$>))
import Control.Monad (void)
import Control.Lens.Operators ((^.))
import JSDOM.EventTargetClosures (EventName, unsafeEventName)
import JSDOM.Enums
getId ::
(MonadDOM m, FromJSString result) => VideoTrack -> m result
getId self = liftDOM ((self ^. js "id") >>= fromJSValUnchecked)
setKind ::
(MonadDOM m, ToJSString val) => VideoTrack -> val -> m ()
setKind self val = liftDOM (self ^. jss "kind" (toJSVal val))
getKind ::
(MonadDOM m, FromJSString result) => VideoTrack -> m result
getKind self = liftDOM ((self ^. js "kind") >>= fromJSValUnchecked)
getLabel ::
(MonadDOM m, FromJSString result) => VideoTrack -> m result
getLabel self
= liftDOM ((self ^. js "label") >>= fromJSValUnchecked)
setLanguage ::
(MonadDOM m, ToJSString val) => VideoTrack -> val -> m ()
setLanguage self val
= liftDOM (self ^. jss "language" (toJSVal val))
getLanguage ::
(MonadDOM m, FromJSString result) => VideoTrack -> m result
getLanguage self
= liftDOM ((self ^. js "language") >>= fromJSValUnchecked)
setSelected :: (MonadDOM m) => VideoTrack -> Bool -> m ()
setSelected self val
= liftDOM (self ^. jss "selected" (toJSVal val))
getSelected :: (MonadDOM m) => VideoTrack -> m Bool
getSelected self = liftDOM ((self ^. js "selected") >>= valToBool)
getSourceBuffer :: (MonadDOM m) => VideoTrack -> m SourceBuffer
getSourceBuffer self
= liftDOM ((self ^. js "sourceBuffer") >>= fromJSValUnchecked)