HTML+TIME: Media | DHTML文档教程 |
introduction to html+time provides extensive support for media playback through media container elements, a unified timeline model, a variety of media-specific attributes and properties, and system test attributes. these features make it easy for web authors to provide tightly synchronized multimedia presentations, and to coordinate media with animation, without using script.
the following links provide access to the object model exposed by the time2 behavior.
about content selection: system test attributes and t:switchhtml+time 2.0 provides authors with the option to display different elements based on system settings.
Seeking With HTML+TIMEIn HTML+TIME (Timed Interactive Multimedia Extensions) various types of media, animation, and other time elements can be played over a period of time. It is often desirable to be able to jump to any point on this time line. This process of jumping to different points on a time element's time line is called seeking.
Using the HTML+TIME Document Object Model (DOM)All HTML+TIME objects are accessible through script at run time. This article introduces you to the HTML+TIME objects, methods, events, and properties available to your Web pages.
Incorporate the time2 BehaviorThis tutorial explains how to incorporate the time2 behavior in your Web pages so you can begin using timelines, multimedia, and animation with HTML elements.
animationDefines a timed animation element in an HTML document.
audioDefines a timed audio element in an HTML document.
currTimeStateContains information about an HTML+TIME timeline.
imgDefines a timed image element in an HTML document.
mediaDefines a generic, timed media element in an HTML document.
playItemRepresents an individual media file in a playlist collection.
refDefines a reference to a generic timed element in an HTML document.
videoDefines a timed video element in an HTML document.
abstractRetrieves a description of the media file.
AbstractRetrieves the Abstract content of the entry banner in an Advanced Stream Redirector (ASX) file using the event object.
accelerateSets or retrieves a value that applies an acceleration to an element's timeline.
activeDurRetrieves the total duration of the timeline.
activeTimeRetrieves the current point in time along the total active timeline, including repeats and time spent in reverse mode.
activeTrackSets or retrieves the track, or playitem object, that is currently active in the playlist collection.
authorRetrieves the name of the media file's author.
autoReverseSets or retrieves whether the timeline on an element begins playing in reverse immediately after completing in the forward direction.
BannerRetrieves the Banner content of an entry in an ASX file using the event object.
BannerRetrieves the Banner content of an entry in an ASX file.
BannerAbstractRetrieves the BannerAbstract content of an entry in an ASX file.
BannerMoreInfoRetrieves the bannermoreinfo content of an entry in an asx file.
beginSets or retrieves the delay time before the timeline begins playing on the element.
bufferingProgressRetrieves a value that indicates the current percentage of buffering completed.
canPauseRetrieves a value that indicates whether the media file can be paused.
canSeekRetrieves a value that indicates whether the media file is capable of locating a specific time in the media's duration.
clipBeginSets or retrieves the beginning point of a sub-clip of a continuous media object.
clipEndSets or retrieves the end point of a sub-clip of a continuous media object.
copyrightRetrieves the copyright information associated with a media file.
currentFrameRetrieves a value that indicates the currentframe of the object.
decelerateSets or retrieves a value that applies a deceleration to the end of a simple duration.
downloadCurrentRetrieves a value that indicates the current number of bytes downloaded from streaming content.
downloadTotalRetrieves a value that indicates the total size of the file (in bytes) downloaded.
durSets or retrieves a value indicating the amount of time the element remains active or displayed.
endSets or retrieves a value indicating the end time for the element, or the end of the simple duration when the element is set to repeat.
fillSets or retrieves the action an element takes if its timeline ends before the timeline on its parent element ends.
hasAudioRetrieves a Boolean value that indicates whether the media contains audio.
hasDownloadProgressRetrieves a Boolean value that indicates whether a media file has begun to download.
hasMediaRetrieves a Boolean value that indicates whether the element is an Introduction to HTML+TIME media element.
hasPlayListRetrieves a Boolean value that indicates whether the element has a playList collection.
hasVisualRetrieves a Boolean value that indicates whether the element can draw on the screen.
indexRetrieves the index value of the playItem object in the playList collection.
isActiveRetrieves a value that indicates whether the element is currently active on the timeline.
isMutedRetrieves a value indicating whether the element's audio is currently muted.
isOnRetrieves a value that specifies whether the element is active or holding on the timeline in its current state.
isPausedRetrieves a value that specifies whether the element is paused on the timeline.
latestMediaTimeRetrieves a value that indicates the amount of time it takes for a media object to begin playing.
mediaDurRetrieves the duration of the element's media file.
mediaHeightRetrieves the height of the element.
mediaWidthRetrieves the width of the element.
mimeTypeRetrieves the MIME content-type of the object.
MoreInfoRetrieves the MoreInfo content of an entry banner in an ASX file through the event object.
muteSets or retrieves a value that indicates whether the audio is turned on or off.
parentTimeBeginRetrieves the current element's begin time as an offset from the parent element's begin time.
parentTimeEndRetrieves the current element's end time as an offset from the parent element's begin time.
playerSets or retrieves the object used to render the media associated with this element.
playerObjectRetrieves the object that plays media files.
progressRetrieves the current progress of the element's timeline.
ratingRetrieves the rating of the media file.
repeatCountRetrieves the current iteration in the repetition loop.
repeatCountSets or retrieves the number of times an element's timeline repeats.
repeatDurSets or retrieves the number of seconds that an element's timeline repeats.
restartSets or retrieves the conditions under which an element can be restarted on a timeline.
segmentDurRetrieves the duration of an element on a timeline in seconds, including autoreverse.
segmentTimeRetrieves the current point in time along a segment of time.
simpleDurRetrieves the duration of a repeat iteration.
simpleTimeRetrieves an object's current point along its timeline from zero to its dur value.
speedSets or retrieves the playback speed of an element relative to its parent time container.
speedRetrieves the playback speed of an element at run time, which includes the cascading effect of the speed set for the parent time container.
srcSets or retrieves the source URL of the media.
stateRetrieves the current state of the element's timeline.
stateStringRetrieves the current state of the element's timeline.
syncBehaviorSets or retrieves a value that indicates the synchronization rules for the element's timeline.
syncMasterSets or retrieves whether the time container must synchronize playback to this element.
syncToleranceSets or retrieves the time variance allowed on a timeline with locked synchronization.
timeActionSets or retrieves what action is taken on the element while the timeline is active.
timeContainerSets or retrieves the type of timeline associated with an element.
timeParentRetrieves the parent time container element of the current element.
titleRetrieves the title of the media file.
typeSets or retrieves the MIME type of the media object referenced by the src attribute.
updateModeSpecifies or retrieves a value that indicates how the object is to be updated.
URLRetrieves the URL specified by the Advanced Streaming Format (ASF) file script command after the onurlflip event is fired.
volumeSets or retrieves the volume of the media file.
volumeRetrieves the playback volume of an element at run time.
activeTimeToParentTimeConverts a value in the element's active timeline to the corresponding point in the parent timeline.
activeTimeToSegmentTimeConverts a value in the element's active timeline to the corresponding point in the segment timeline.
beginElementStarts the element on the timeline.
beginElementAtStarts an element's timeline at the specified time.
documentTimeToParentTimeConverts a value in the document timeline to the corresponding point in the element's parent timeline.
endElementStops the element on the timeline.
endElementAtEnds an element's timeline at the specified time.
parentTimeToActiveTimeConverts a value in the parent timeline to the corresponding point in the element's active timeline.
parentTimeToDocumentTimeConverts a value in the element's parent timeline to the corresponding point in the document timeline.
pauseElementStops playing an element's timeline at the current point.
resetElementRemoves any changes made to the element and returns the element to its original state.
resumeElementRestarts the element's timeline from a paused state.
seekActiveTimeLocates a specified point on the element's active timeline and begins playing from that point.
seekToLocates a specified point on the element's segment timeline, including repetitions, and begins playing from that point.
seekToFrameLocates a specified frame in the object.
segmentTimeToActiveTimeConverts a value in the element's segment timeline to the corresponding point in the element's active timeline.
segmentTimeToSimpleTimeConverts a value in the element's segment timeline to the corresponding point in the element's simple timeline.
simpleTimeToSegmentTimeConverts a value in the element's simple timeline to the corresponding point in the element's segment timeline.
onbeginFires when the timeline starts on an element.
onendFires when the timeline stops on an element.
onmediacompleteFires when the element's associated media finish loading.
onmediaerrorFires when an element's media file causes any error.
onoutofsyncFires when the element loses synchronization with its associated timeline.
onpauseFires when the timeline on an element pauses.
onrepeatFires when the timeline repeats on an element, beginning with the second iteration.
onresetFires when the timeline reaches the value of the begin attribute or when the resetelement method is called on the element.
onresumeFires when an element's timeline resumes from a paused state.
onreverseFires when the timeline on an element begins to play backward.
onseekFires whenever a seek operation is performed on the element.
onsyncrestoredFires when synchronization is resumed between the element and its associated timeline.
ontimeerrorFires whenever a time-specific error occurs, usually as a result of setting a property to an invalid value.
ontrackchangeThe event fires when a track changes in a playList defined in an ASX file.
onURLFlipThis event fires when an ASF file, played by a HTML+TIME?A href="../time2/elements/media.html">media tag, processes script commands embedded in the asf file.
playListRetrieves a collection of playItem objects.