Libraries.Web.Page.MediaAttributeAccepter Documentation
The MediaAttributeAccepter class is designed as a helper to ease adding and removing keyboard event attributes from particular WebTag objects. While there is no harm in creating an object of this type, it is used most commonly by sub-classes that need to use attributes. The example for this class shows how to subclass the MediaAttributeAccepter class.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
class audio is MediaAttributeAccepter, WebGenerator
action Generate returns text
text result = "<audio "
Attributes attributes = parent:WebTag:GetAttributes()
attributeText = attributes:Generate()
result = result + attributeText + ">"
result = result + me:GenerateNestedTags()
result = result + "</audio>"
return result
end
end
Inherits from: Libraries.Web.Page.AttributeAccepter, Libraries.Language.Object
Summary
Actions Summary Table
Actions | Description |
---|---|
Add(Libraries.Web.Page.Attribute attribute) | This action adds an attribute to this object. |
AddAttribute(text name, text value) | This action adds an attribute to this object. |
Compare(Libraries.Language.Object object) | This action compares two object hash codes and returns an integer. |
Equals(Libraries.Language.Object object) | This action determines if two objects are equal based on their hash code values. |
GenerateAttributes() | This action returns a text description of all attributes stored. |
GetAttribute(text name) | This action returns an attribute from this object's Attributes object. |
GetAttributeValue(text name) | This action returns an attribute from this object's Attributes object. |
GetAttributes() | Returns a list of all attributes on the system. |
GetHashCode() | This action gets the hash code for an object. |
GetIterator() | This action returns an iterator of all attributes stored in this object. |
GetNumberOfAttributes() | This action returns the number of attributes that are currently stored in this object. |
GetOnAbort() | Returns the OnAbort attribute. |
GetOnCanPlay() | Returns the OnCanPlay attribute. |
GetOnCanPlayThrough() | Returns the OnCanPlayThrough attribute. |
GetOnDurationChange() | Returns the OnDurationChange attribute. |
GetOnEmptied() | Returns the OnEmptied attribute. |
GetOnEnded() | Returns the OnEnded attribute. |
GetOnLoadStart() | Returns the OnLoadStart attribute. |
GetOnLoadedData() | Returns the OnLoadedData attribute. |
GetOnLoadedMetaData() | Returns the OnLoadedMetaData attribute. |
GetOnMediaError() | Returns the OnMediaError attribute. |
GetOnPause() | Returns the OnPause attribute. |
GetOnPlay() | Returns the OnPlay attribute. |
GetOnPlaying() | Returns the OnPlaying attribute. |
GetOnProgress() | Returns the OnProgress attribute. |
GetOnRateChange() | Returns the OnRateChange attribute. |
GetOnReadyStateChange() | Returns the OnReadyStateChange attribute. |
GetOnSeeked() | Returns the OnSeeked attribute. |
GetOnSeeking() | Returns the OnSeeking attribute. |
GetOnStalled() | Returns the OnStalled attribute. |
GetOnSuspend() | Returns the OnSuspend attribute. |
GetOnTimeUpdate() | Returns the OnTimeUpdate attribute. |
GetOnVolumeChange() | Returns the OnVolumeChange attribute. |
GetOnWaiting() | Returns the OnWaiting attribute. |
HasAttribute(text name) | This action returns whether or not an attribute exists for the key passed in as a parameter. |
RemoveAttribute(text name) | This action removes an attribute with a particular key. |
SetOnAbort(text value) | Sets the OnAbort attribute script when the OnAbort event is triggered. |
SetOnCanPlay(text value) | Sets the OnCanPlay attribute script when the OnCanPlay event is triggered. |
SetOnCanPlayThrough(text value) | Sets the OnCanPlayThrough attribute script when the OnCanPlayThrough event is triggered. |
SetOnDurationChange(text value) | Sets the OnDurationChange attribute script when the OnDurationChange event is triggered. |
SetOnEmptied(text value) | Sets the OnEmptied attribute script when the OnEmptied event is triggered. |
SetOnEnded(text value) | Sets the OnEnded attribute script when the OnEnded event is triggered. |
SetOnLoadStart(text value) | Sets the OnLoadStart attribute script when the OnLoadStart event is triggered. |
SetOnLoadedData(text value) | Sets the OnLoadedData attribute script when the OnLoadedData event is triggered. |
SetOnLoadedMetaData(text value) | Sets the OnLoadedMetaData attribute script when the OnLoadedMetaData event is triggered. |
SetOnMediaError(text value) | Sets the OnMediaError attribute script when the OnMediaError event is triggered. |
SetOnPause(text value) | Sets the OnPause attribute script when the OnPause event is triggered. |
SetOnPlay(text value) | Sets the OnPlay attribute script when the OnPlay event is triggered. |
SetOnPlaying(text value) | Sets the OnPlaying attribute script when the OnPlaying event is triggered. |
SetOnProgress(text value) | Sets the OnProgress attribute script when the OnProgress event is triggered. |
SetOnRateChange(text value) | Sets the OnRateChange attribute script when the OnRateChange event is triggered. |
SetOnReadyStateChange(text value) | Sets the OnReadyStateChange attribute script when the OnReadyStateChange event is triggered. |
SetOnSeeked(text value) | Sets the OnSeeked attribute script when the OnSeeked event is triggered. |
SetOnSeeking(text value) | Sets the OnSeeking attribute script when the OnSeeking event is triggered. |
SetOnStalled(text value) | Sets the OnStalled attribute script when the OnStalled event is triggered. |
SetOnSuspend(text value) | Sets the OnSuspend attribute script when the OnSuspend event is triggered. |
SetOnTimeUpdate(text value) | Sets the OnTimeUpdate attribute script when the OnTimeUpdate event is triggered. |
SetOnVolumeChange(text value) | Sets the OnVolumeChange attribute script when the OnVolumeChange event is triggered. |
SetOnWaiting(text value) | Sets the OnWaiting attribute script when the OnWaiting event is triggered. |
Actions Documentation
Add(Libraries.Web.Page.Attribute attribute)
This action adds an attribute to this object. If an attribute with the same name as
Example Code
use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute
Attribute attribute
attribute:SetName("src")
attribute:SetValue("http://www.google.com")
AttributeAccepter accept
accept:Add(attribute)
Parameters
- Libraries.Web.Page.Attribute: The attribute that will be stored.
AddAttribute(text name, text value)
This action adds an attribute to this object. This action is a helper action, which essentially does the same thing as the Add(Attribute) action. If an attribute with the same name as
Example Code
use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute
AttributeAccepter accept
accept:AddAttribute("src", "http://www.google.com")
Parameters
- text name: The name of the attribute functions as a key. For example, in a link, we might have a "src" and an actual address, like google.com. In this case, the name would be equivalent to the src.
- text value: As an example of link, imagine we have a value of "src" and an actual address, like google.com. In this case, the value would be equivalent to google.com.
Compare(Libraries.Language.Object object)
This action compares two object hash codes and returns an integer. The result is larger if this hash code is larger than the object passed as a parameter, smaller, or equal. In this case, -1 means smaller, 0 means equal, and 1 means larger. This action was changed in Quorum 7 to return an integer, instead of a CompareResult object, because the previous implementation was causing efficiency issues.
Example Code
Object o
Object t
integer result = o:Compare(t) //1 (larger), 0 (equal), or -1 (smaller)
Parameters
- Libraries.Language.Object: The object to compare to.
Return
integer: The Compare result, Smaller, Equal, or Larger.
Equals(Libraries.Language.Object object)
This action determines if two objects are equal based on their hash code values.
Example Code
use Libraries.Language.Object
use Libraries.Language.Types.Text
Object o
Text t
boolean result = o:Equals(t)
Parameters
- Libraries.Language.Object: The to be compared.
Return
boolean: True if the hash codes are equal and false if they are not equal.
GenerateAttributes()
This action returns a text description of all attributes stored.
Example Code
use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute
AttributeAccepter accept
accept:AddAttribute("src", "http://www.google.com")
text result = accept:GenerateAttributes()
Return
text:
GetAttribute(text name)
This action returns an attribute from this object's Attributes object. If no attribute exists for a given key, this action returns undefined.
Example Code
use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute
AttributeAccepter accept
//as we have not set any attribute, this would
//return undefined
Attribute attribute = accept:GetAttribute("src")
Parameters
Return
GetAttributeValue(text name)
This action returns an attribute from this object's Attributes object. If no attribute exists for a given key, this action returns undefined.
Example Code
use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute
AttributeAccepter accept
accept:AddAttribute("src", "http://www.google.com")
//This helper action would throw an error if "src" were not set.
text value = accept:GetAttributeValue("src")
Parameters
- text name: The key value in this case is described in more detail in the documentation for this class's Add actions.
Return
text:
GetAttributes()
Returns a list of all attributes on the system.
Example Code
use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attributes
AttributeAccepter accept
Attributes attributes = accept:GetAttributes()
Return
Libraries.Web.Page.Attributes: The attributes class contains all of the attributes that have been set for this object.
GetHashCode()
This action gets the hash code for an object.
Example Code
Object o
integer hash = o:GetHashCode()
Return
integer: The integer hash code of the object.
GetIterator()
This action returns an iterator of all attributes stored in this object.
Example Code
use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute
use Libraries.Containers.Iterator
AttributeAccepter accept
accept:AddAttribute("src", "http://www.google.com")
//output out all of the attributes
Iterator<Attribute> it = accept:GetIterator()
repeat while it:HasNext()
Attribute at = it:Next()
output at:Generate()
end
Return
Libraries.Containers.Iterator:
GetNumberOfAttributes()
This action returns the number of attributes that are currently stored in this object.
Example Code
use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute
AttributeAccepter accept
accept:AddAttribute("src", "http://www.google.com")
integer num = accept:GetNumberOfAttributes()
Return
integer:
GetOnAbort()
Returns the OnAbort attribute. If a on abort event occurs on a specified element a script is fired based on this attribute.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
Attribute attribute = accept:GetOnAbort()
Return
Libraries.Web.Page.Attribute: The current OnAbort attribute.
GetOnCanPlay()
Returns the OnCanPlay attribute. If a can play event (a file has buffered enough to play) occurs on a specified element a script is fired based on this attribute.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
Attribute attribute = accept:GetOnCanPlay()
Return
Libraries.Web.Page.Attribute: The current OnCanPlay attribute.
GetOnCanPlayThrough()
Returns the OnCanPlayThrough attribute. If a play all the way through (the file can play without pausing for buffering) event occurs on a specified element a script is fired based on this attribute.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
Attribute attribute = accept:GetOnCanPlayThrough()
Return
Libraries.Web.Page.Attribute: The current OnCanPlayThrough attribute.
GetOnDurationChange()
Returns the OnDurationChange attribute. If the durration of a a media file changes, this event will occur on a specified element a script is fired based on this attribute.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
Attribute attribute = accept:GetOnDurationChange()
Return
Libraries.Web.Page.Attribute: The current OnDurationChange attribute.
GetOnEmptied()
Returns the OnEmptied attribute. If the file becomes unavailable this event occurs on a specified element a script is fired based on this attribute.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
Attribute attribute = accept:GetOnEmptied()
Return
Libraries.Web.Page.Attribute: The current OnEmptied attribute.
GetOnEnded()
Returns the OnEnded attribute. If the media file reaches the end event occurs on a specified element a script is fired based on this attribute.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
Attribute attribute = accept:GetOnEnded()
Return
Libraries.Web.Page.Attribute: The current OnEnded attribute.
GetOnLoadStart()
Returns the OnLoadStart attribute. If a load event is about to start on a specified element a script is fired based on this attribute.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
Attribute attribute = accept:GetOnLoadStart()
Return
Libraries.Web.Page.Attribute: The current OnLoadStart attribute.
GetOnLoadedData()
Returns the OnLoadedData attribute. If a media loaded event occurs on a specified element a script is fired based on this attribute.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
Attribute attribute = accept:GetOnLoadedData()
Return
Libraries.Web.Page.Attribute: The current OnLoadedData attribute.
GetOnLoadedMetaData()
Returns the OnLoadedMetaData attribute. If the meta data is loaded event occurs on a specified element a script is fired based on this attribute.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
Attribute attribute = accept:GetOnLoadedMetaData()
Return
Libraries.Web.Page.Attribute: The current OnLoadedMetaData attribute.
GetOnMediaError()
Returns the OnMediaError attribute. If a load error event occurs on a specified element a script is fired based on this attribute.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
Attribute attribute = accept:GetOnMediaError()
Return
Libraries.Web.Page.Attribute: The current OnMediaError attribute.
GetOnPause()
Returns the OnPause attribute. If a pause event occurs on a specified element a script is fired based on this attribute.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
Attribute attribute = accept:GetOnPause()
Return
Libraries.Web.Page.Attribute: The current OnPause attribute.
GetOnPlay()
Returns the OnPlay attribute. If a play event occurs on a specified element a script is fired based on this attribute.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
Attribute attribute = accept:GetOnPlay()
Return
Libraries.Web.Page.Attribute: The current OnPlay attribute.
GetOnPlaying()
Returns the OnPlaying attribute. If a play event is currently firing on a specified element a script is fired based on this attribute.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
Attribute attribute = accept:GetOnPlaying()
Return
Libraries.Web.Page.Attribute: The current OnPlaying attribute.
GetOnProgress()
Returns the OnProgress attribute. If a on progress event occurs on a specified element a script is fired based on this attribute.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
Attribute attribute = accept:GetOnProgress()
Return
Libraries.Web.Page.Attribute: The current OnProgress attribute.
GetOnRateChange()
Returns the OnRateChange attribute. If a on play rate change event occurs on a specified element a script is fired based on this attribute.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
Attribute attribute = accept:GetOnRateChange()
Return
Libraries.Web.Page.Attribute: The current OnRateChange attribute.
GetOnReadyStateChange()
Returns the OnReadyStateChange attribute. If the ready state event changes on a specified element a script is fired based on this attribute.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
Attribute attribute = accept:GetOnReadyStateChange()
Return
Libraries.Web.Page.Attribute: The current OnReadyStateChange attribute.
GetOnSeeked()
Returns the OnSeeked attribute. If a seek event has occured on a specified element a script is fired based on this attribute.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
Attribute attribute = accept:GetOnSeeked()
Return
Libraries.Web.Page.Attribute: The current OnSeeked attribute.
GetOnSeeking()
Returns the OnSeeking attribute. If a seek event is currently occuring on a specified element a script is fired based on this attribute.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
Attribute attribute = accept:GetOnSeeking()
Return
Libraries.Web.Page.Attribute: The current OnSeeking attribute.
GetOnStalled()
Returns the OnStalled attribute. If a stall event occurs on a specified element a script is fired based on this attribute.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
Attribute attribute = accept:GetOnStalled()
Return
Libraries.Web.Page.Attribute: The current OnAbort OnStalled.
GetOnSuspend()
Returns the OnSuspend attribute. If a on suspend event occurs on a specified element a script is fired based on this attribute.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
Attribute attribute = accept:GetOnSuspend()
Return
Libraries.Web.Page.Attribute: The current OnSuspend attribute.
GetOnTimeUpdate()
Returns the OnTimeUpdate attribute. If the playing position changes on a specified element a script is fired based on this attribute.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
Attribute attribute = accept:GetOnTimeUpdate()
Return
Libraries.Web.Page.Attribute: The current OnTimeUpdate attribute.
GetOnVolumeChange()
Returns the OnVolumeChange attribute. If a volume change event occurs on a specified element a script is fired based on this attribute.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
Attribute attribute = accept:GetOnVolumeChange()
Return
Libraries.Web.Page.Attribute: The current OnVolumeChange attribute.
GetOnWaiting()
Returns the OnWaiting attribute. If a pause event occurs and it is expected to continue on a specified element a script is fired based on this attribute.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
Attribute attribute = accept:GetOnWaiting()
Return
Libraries.Web.Page.Attribute: The current OnWaiting attribute.
HasAttribute(text name)
This action returns whether or not an attribute exists for the key passed in as a parameter.
Example Code
use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute
AttributeAccepter accept
accept:AddAttribute("src", "http://www.google.com")
//This helper action would throw an error if "src" were not set.
boolean exists = accept:HasAttribute("src")
Parameters
- text name: The key value in this case is described in more detail in the documentation for this class's Add actions.
Return
boolean:
RemoveAttribute(text name)
This action removes an attribute with a particular key. If that attribute does not exist, then this action returns undefined.
Example Code
use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute
AttributeAccepter accept
accept:AddAttribute("src", "http://www.google.com")
//This helper action would throw an error if "src" were not set.
accept:RemoveAttribute("src")
Parameters
- text name: The name of the attribute that should be removed.
Return
SetOnAbort(text value)
Sets the OnAbort attribute script when the OnAbort event is triggered.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
accept:SetOnAbort("doSomething()")
Parameters
- text value: The current OnAbort attribute.
SetOnCanPlay(text value)
Sets the OnCanPlay attribute script when the OnCanPlay event is triggered.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
accept:SetOnCanPlay("doSomething()")
Parameters
- text value: The current OnCanPlay attribute.
SetOnCanPlayThrough(text value)
Sets the OnCanPlayThrough attribute script when the OnCanPlayThrough event is triggered.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
accept:SetOnCanPlayThrough("doSomething()")
Parameters
- text value: The current OnCanPlayThrough attribute.
SetOnDurationChange(text value)
Sets the OnDurationChange attribute script when the OnDurationChange event is triggered.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
accept:SetOnDurationChange("doSomething()")
Parameters
- text value: The current OnDurationChange attribute.
SetOnEmptied(text value)
Sets the OnEmptied attribute script when the OnEmptied event is triggered.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
accept:SetOnEmptied("doSomething()")
Parameters
- text value: The current OnEmptied attribute.
SetOnEnded(text value)
Sets the OnEnded attribute script when the OnEnded event is triggered.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
accept:SetOnEnded("doSomething()")
Parameters
- text value: The current OnEnded attribute.
SetOnLoadStart(text value)
Sets the OnLoadStart attribute script when the OnLoadStart event is triggered.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
accept:SetOnLoadStart("doSomething()")
Parameters
- text value: The current OnLoadStart attribute.
SetOnLoadedData(text value)
Sets the OnLoadedData attribute script when the OnLoadedData event is triggered.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
accept:SetOnLoadedData("doSomething()")
Parameters
- text value: The current OnLoadedData attribute.
SetOnLoadedMetaData(text value)
Sets the OnLoadedMetaData attribute script when the OnLoadedMetaData event is triggered.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
accept:SetOnLoadedMetaData("doSomething()")
Parameters
- text value: The current OnLoadedMetaData attribute.
SetOnMediaError(text value)
Sets the OnMediaError attribute script when the OnMediaError event is triggered.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
accept:SetOnMediaError("doSomething()")
Parameters
- text value: The current OnMediaError attribute.
SetOnPause(text value)
Sets the OnPause attribute script when the OnPause event is triggered.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
accept:SetOnPause("doSomething()")
Parameters
- text value: The current OnPause attribute.
SetOnPlay(text value)
Sets the OnPlay attribute script when the OnPlay event is triggered.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
accept:SetOnPlay("doSomething()")
Parameters
- text value: The current OnPlay attribute.
SetOnPlaying(text value)
Sets the OnPlaying attribute script when the OnPlaying event is triggered.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
accept:SetOnPlaying("doSomething()")
Parameters
- text value: The current OnPlaying attribute.
SetOnProgress(text value)
Sets the OnProgress attribute script when the OnProgress event is triggered.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
accept:SetOnProgress("doSomething()")
Parameters
- text value: The current OnProgress attribute.
SetOnRateChange(text value)
Sets the OnRateChange attribute script when the OnRateChange event is triggered.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
accept:SetOnRateChange("doSomething()")
Parameters
- text value: The current OnRateChange attribute.
SetOnReadyStateChange(text value)
Sets the OnReadyStateChange attribute script when the OnReadyStateChange event is triggered.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
accept:SetOnReadyStateChange("doSomething()")
Parameters
- text value: The current OnReadyStateChange attribute.
SetOnSeeked(text value)
Sets the OnSeeked attribute script when the OnSeeked event is triggered.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
accept:SetOnSeeked("doSomething()")
Parameters
- text value: The current OnSeeked attribute.
SetOnSeeking(text value)
Sets the OnSeeking attribute script when the OnSeeking event is triggered.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
accept:SetOnSeeking("doSomething()")
Parameters
- text value: The current OnSeeking attribute.
SetOnStalled(text value)
Sets the OnStalled attribute script when the OnStalled event is triggered.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
accept:SetOnStalled("doSomething()")
Parameters
- text value: The current OnStalled attribute.
SetOnSuspend(text value)
Sets the OnSuspend attribute script when the OnSuspend event is triggered.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
accept:SetOnSuspend("doSomething()")
Parameters
- text value: The current OnSuspend attribute.
SetOnTimeUpdate(text value)
Sets the OnTimeUpdate attribute script when the OnTimeUpdate event is triggered.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
accept:SetOnTimeUpdate("doSomething()")
Parameters
- text value: The current OnTimeUpdate attribute.
SetOnVolumeChange(text value)
Sets the OnVolumeChange attribute script when the OnVolumeChange event is triggered.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
accept:SetOnVolumeChange("doSomething()")
Parameters
- text value: The current OnVolumeChange attribute.
SetOnWaiting(text value)
Sets the OnWaiting attribute script when the OnWaiting event is triggered.
Example Code
use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute
MediaAttributeAccepter accept
accept:SetOnWaiting("doSomething()")
Parameters
- text value: The current OnWaiting attribute.