Espacio de nombres: CodiumSDK.CPL.HTMLTags
Ensamblado: CodiumSDK.dll

Class that represent an “audio” tag. The audio tag is used to embed sound content in a document, such as music or other audio streams.
C#
public class Audio : CodiumSDK.CPL.HTMLTagBase

Métodos

NombreDescripción
GetAttribute(name)Get Attribute

Constructores

NombreDescripción
Audio()Audio
Audio(program, src, autoplay, controls, loop, muted, preload, innerHTML, style, className, id, title)Constructor for audio

GetAttribute(name)

Get Attribute
C#
public CodiumSDK.CPL.HTMLAttribute GetAttribute(System.String name);

Regresa

CodiumSDK.CPL.HTMLAttribute

Parámetros

NombreTipoDescripción
nameSystem.StringName of the Atrribute

Audio()

Audio
C#
public Audio();

Audio(program, src, autoplay, controls, loop, muted, preload, innerHTML, style, className, id, title)

Constructor for audio
C#
public Audio(CodiumSDK.CPL.ProgramDefinition program, System.String src, System.Boolean autoplay, System.Boolean controls, System.Boolean loop, System.Boolean muted, CodiumSDK.CPL.HTMLTags.Audio.Preload preload, System.String innerHTML, System.String style, System.String className, System.String id, System.String title);

Parámetros

NombreTipoDescripción
programCodiumSDK.CPL.ProgramDefinitionProgram Definition
srcSystem.StringSpecifies the URL of the audio file
autoplaySystem.BooleanSpecifies that the audio will start playing as soon as it is ready
controlsSystem.BooleanSpecifies that audio controls should be displayed (such as a play/pause button etc)
loopSystem.BooleanSpecifies that the audio will start over again, every time it is finished
mutedSystem.BooleanSpecifies that the audio output should be muted
preloadCodiumSDK.CPL.HTMLTags.Audio.PreloadSpecifies if and how the author thinks the audio should be loaded when the page loads
innerHTMLSystem.StringInner HTML
styleSystem.StringSpecifies an inline CSS style for an element
classNameSystem.StringSpecifies one or more classnames for an element (refers to a class in a style sheet)
idSystem.StringSpecifies a unique id for an element
titleSystem.StringSpecifies extra information about an element