module JSDOM.Generated.HTMLVideoElement
(webkitEnterFullscreen, webkitExitFullscreen,
webkitEnterFullScreen, webkitExitFullScreen,
webkitSupportsPresentationMode, webkitSupportsPresentationMode_,
webkitSetPresentationMode, setWidth, getWidth, setHeight,
getHeight, getVideoWidth, getVideoHeight, setPoster, getPoster,
setPlaysInline, getPlaysInline, getWebkitSupportsFullscreen,
getWebkitDisplayingFullscreen,
setWebkitWirelessVideoPlaybackDisabled,
getWebkitWirelessVideoPlaybackDisabled, getWebkitDecodedFrameCount,
getWebkitDroppedFrameCount, getWebkitPresentationMode,
HTMLVideoElement(..), gTypeHTMLVideoElement)
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
webkitEnterFullscreen :: (MonadDOM m) => HTMLVideoElement -> m ()
webkitEnterFullscreen self
= liftDOM (void (self ^. jsf "webkitEnterFullscreen" ()))
webkitExitFullscreen :: (MonadDOM m) => HTMLVideoElement -> m ()
webkitExitFullscreen self
= liftDOM (void (self ^. jsf "webkitExitFullscreen" ()))
webkitEnterFullScreen :: (MonadDOM m) => HTMLVideoElement -> m ()
webkitEnterFullScreen self
= liftDOM (void (self ^. jsf "webkitEnterFullScreen" ()))
webkitExitFullScreen :: (MonadDOM m) => HTMLVideoElement -> m ()
webkitExitFullScreen self
= liftDOM (void (self ^. jsf "webkitExitFullScreen" ()))
webkitSupportsPresentationMode ::
(MonadDOM m) => HTMLVideoElement -> VideoPresentationMode -> m Bool
webkitSupportsPresentationMode self mode
= liftDOM
((self ^. jsf "webkitSupportsPresentationMode" [toJSVal mode]) >>=
valToBool)
webkitSupportsPresentationMode_ ::
(MonadDOM m) => HTMLVideoElement -> VideoPresentationMode -> m ()
webkitSupportsPresentationMode_ self mode
= liftDOM
(void
(self ^. jsf "webkitSupportsPresentationMode" [toJSVal mode]))
webkitSetPresentationMode ::
(MonadDOM m) => HTMLVideoElement -> VideoPresentationMode -> m ()
webkitSetPresentationMode self mode
= liftDOM
(void (self ^. jsf "webkitSetPresentationMode" [toJSVal mode]))
setWidth :: (MonadDOM m) => HTMLVideoElement -> Word -> m ()
setWidth self val = liftDOM (self ^. jss "width" (toJSVal val))
getWidth :: (MonadDOM m) => HTMLVideoElement -> m Word
getWidth self
= liftDOM (round <$> ((self ^. js "width") >>= valToNumber))
setHeight :: (MonadDOM m) => HTMLVideoElement -> Word -> m ()
setHeight self val = liftDOM (self ^. jss "height" (toJSVal val))
getHeight :: (MonadDOM m) => HTMLVideoElement -> m Word
getHeight self
= liftDOM (round <$> ((self ^. js "height") >>= valToNumber))
getVideoWidth :: (MonadDOM m) => HTMLVideoElement -> m Word
getVideoWidth self
= liftDOM (round <$> ((self ^. js "videoWidth") >>= valToNumber))
getVideoHeight :: (MonadDOM m) => HTMLVideoElement -> m Word
getVideoHeight self
= liftDOM (round <$> ((self ^. js "videoHeight") >>= valToNumber))
setPoster ::
(MonadDOM m, ToJSString val) => HTMLVideoElement -> val -> m ()
setPoster self val = liftDOM (self ^. jss "poster" (toJSVal val))
getPoster ::
(MonadDOM m, FromJSString result) => HTMLVideoElement -> m result
getPoster self
= liftDOM ((self ^. js "poster") >>= fromJSValUnchecked)
setPlaysInline :: (MonadDOM m) => HTMLVideoElement -> Bool -> m ()
setPlaysInline self val
= liftDOM (self ^. jss "playsInline" (toJSVal val))
getPlaysInline :: (MonadDOM m) => HTMLVideoElement -> m Bool
getPlaysInline self
= liftDOM ((self ^. js "playsInline") >>= valToBool)
getWebkitSupportsFullscreen ::
(MonadDOM m) => HTMLVideoElement -> m Bool
getWebkitSupportsFullscreen self
= liftDOM ((self ^. js "webkitSupportsFullscreen") >>= valToBool)
getWebkitDisplayingFullscreen ::
(MonadDOM m) => HTMLVideoElement -> m Bool
getWebkitDisplayingFullscreen self
= liftDOM ((self ^. js "webkitDisplayingFullscreen") >>= valToBool)
setWebkitWirelessVideoPlaybackDisabled ::
(MonadDOM m) => HTMLVideoElement -> Bool -> m ()
setWebkitWirelessVideoPlaybackDisabled self val
= liftDOM
(self ^. jss "webkitWirelessVideoPlaybackDisabled" (toJSVal val))
getWebkitWirelessVideoPlaybackDisabled ::
(MonadDOM m) => HTMLVideoElement -> m Bool
getWebkitWirelessVideoPlaybackDisabled self
= liftDOM
((self ^. js "webkitWirelessVideoPlaybackDisabled") >>= valToBool)
getWebkitDecodedFrameCount ::
(MonadDOM m) => HTMLVideoElement -> m Word
getWebkitDecodedFrameCount self
= liftDOM
(round <$>
((self ^. js "webkitDecodedFrameCount") >>= valToNumber))
getWebkitDroppedFrameCount ::
(MonadDOM m) => HTMLVideoElement -> m Word
getWebkitDroppedFrameCount self
= liftDOM
(round <$>
((self ^. js "webkitDroppedFrameCount") >>= valToNumber))
getWebkitPresentationMode ::
(MonadDOM m) => HTMLVideoElement -> m VideoPresentationMode
getWebkitPresentationMode self
= liftDOM
((self ^. js "webkitPresentationMode") >>= fromJSValUnchecked)