Class: SC.VideoView
Extends
SC.View.
Renders a videoView
using different technologies like HTML5 video tag,
quicktime and flash.
This view wraps the different technologies so you can use one standard and simple API to play videos.
You can specify and array with the order of how the technologies will degrade
depending on availability. For example you can set degradeList
to be
['html5', 'flash'] and it will load your video in a video tag if the
technology is available otherwise flash and if neither of the technologies
are available it will show a message saying that your machine needs to install
one of this technologies.
Defined in: video.js
- Since:
- SproutCore 1.1
Field Summary
- canPlay
- captionsEnabled
- classNames
- degradeList
- displayProperties
- duration
- ended
- SC.VideoView.flashViews
- loaded
- paused
- videoHeight
- videoObject
- videoWidth
- volume
- Fields borrowed from SC.View:
- acceptsFirstResponder, acceptsMultitouch, ariaHidden, ariaRole, attributeBindings, autoMixins, backgroundColor, childViewLayout, childViewLayoutOptions, childViews, childViewsNeedLayout, classNameBindings, concatenatedProperties, createdByParent, designMode, enabledState, firstKeyView, hasLayout, hasTouch, hasVisibility, isBuildingIn, isBuildingOut, isChildViewLayoutLive, isEnabled, isFixedHeight, isFixedPosition, isFixedSize, isFixedWidth, isKeyResponder, isTextSelectable, isView, isVisible, lastKeyView, layerLocationNeedsUpdate, layerNeedsUpdate, layout, modeAdjust, nextKeyView, page, pane, parentView, previousKeyView, renderDelegateName, shouldInheritCursor, shouldInheritEnabled, tagName, themeName, toolTip, touchBoundary, transitionAdjust, transitionAdjustOptions, transitionHide, transitionHideOptions, transitionIn, transitionInOptions, transitionOut, transitionOutOptions, transitionShow, transitionShowOptions, useStaticLayout
- Fields borrowed from SC.Responder:
- hasFirstResponder, isFirstResponder, responderContext
- Fields borrowed from SC.Object:
- isDestroyed, isObject, nextProperty, object, property, target, toInvalidate
- Fields borrowed from SC.Observable:
- isObservable
Class Methods
Instance Methods
- addQTDOMEvents()
- addVideoDOMEvents()
- closedCaption()
- currentTime(key, value)
- didAppendToDocument()
- didCreateLayer()
- frameDidChange()
- fullScreen()
- play()
- playPause()
- render(context, firstTime)
- seek()
- setVolume()
- stop()
- time()
- updateQTVideoObjectLoadedTimeRanges(vid)
- updateVideoElementLoadedTimeRanges(videoElem)
- valueObserver()
Field Detail
canPlay BooleanArray containing the technologies and the order to load them depending availability
Properties that trigger a re render of the view. If the value changes, it means that the video url changed.
Class Method Detail
- Parameters:
- view
- Parameters:
- message
This function is called from flash to update the properties of the corresponding flash view.
- Parameters:
- scid
- property
- value
Instance Method Detail
- Returns:
- void
- Returns:
- void
- Returns:
- void
- Parameters:
- key
- value
- Returns:
- void
This function is called everytime the frame changes. This is done to get the right video dimensions for HTML5 video tag.
- Returns:
- void
- Returns:
- void
- Returns:
- void
- Returns:
- void
- Parameters:
- context SC.RenderContext
- the render context
- firstTime Boolean
- YES if this is creating a layer
- Returns:
- void
Called when currentTime
changes. Notifies the different technologies
then new currentTime
.
- Returns:
- void
- Returns:
- void
- Returns:
- void
- Parameters:
- vid
- Parameters:
- videoElem