Class: SC.AudioView
Extends
SC.View.
Renders a audioView
using different technologies like HTML5 audio tag,
quicktime and flash.
This view wraps the different technologies so you can use one standard and simple API to play audio.
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 audio in an audio 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: audio.js
- Since:
- SproutCore 1.1
Field Summary
- audioObject
- canPlay
- classNames
- degradeList
- displayProperties
- duration
- ended
- SC.AudioView.flashViews
- loaded
- paused
- 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
- addAudioDOMEvents()
- addQTDOMEvents()
- closedCaption()
- currentTime(key, value)
- didAppendToDocument()
- didCreateLayer()
- play()
- playPause()
- render(context, firstTime)
- seek()
- setVolume()
- stop()
- time()
- valueObserver()
Field Detail
audioObject ObjectArray 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 audio 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
- 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