The Wayback Machine - https://web.archive.org/web/20151222151959/http://developer.lge.com/webOSTV/api/supported-standard-web-api/html5-standard/audio-video/
Go Contents Go Top Menu

Audio & Video

The HTML5 Audio, Video, Source, Track, and Media elements are used for playing media files such as audio, video, movies on the web without additional plug-ins.

 

Read "Supported Internet Media Type" to know the supported media types for video, audio and hls.

 

The tables below are written based on the HTML5 specifications supported by the webOS TV platform. Therefore, if the name of methods, attributes, and events for API is not listed up on the table, the webOS does not support it.

 

For the detailed guides on using Web Audio API and audio element in your app for playing multi-sound, see Playing multi-sound.

Supported Methods

 

Interface Name

Method Name

Supported in Emulator

HTMLMediaElement  load()  Yes
canPlayType()  Yes
play()  Yes
pause()  Yes
addTextTrack()  Yes
TextTrack  addCue()  Yes
removeCue()  No
AudioContext  createBufferSource()  No
createBuffer()  No
decodeAudioData()  No
getChannelData()  No
AudioNode  connect(audioNode)  No
disconnect()  No
AudioBufferSourceNode  createBufferSource()  No
start()  No
stop()  No
AudioBuffer  createBuffer()  No
decodeAudioData()  No
getChannelData()  No

 

Supported Attributes

 

Interface Name

Attribute Name

Value

Remarks

Supported in Emulator

HTMLVideoElement 

 

 

 

 

 

 

 

 

 

 

autoplay 

   

Yes

controls 

   

Yes

loop 

  

  Yes

loop 

  Yes

preload 

auto 

If "metadata" or "none" is set to preload, the "auto" is applied to preload by default instead of "metadata" or "none".  Yes

src 

 

http 

  Yes

file 

  No

width 

360 x 24 

 

Yes

height 

375 x 250 

  Yes

videoWidth 

480 x 320 

  Yes

videoHeight 

480 x 320 

  Yes

HTMLAudioElement 

  

 

 

 

 

 

 

autoplay 

    Yes

controls 

    Yes

poster 

    Yes

loop 

 

  Yes

loop 

  Yes

preload 

auto 

If "metadata" or "none" is set to preload, the "auto" is applied to preload by default instead of "metadata" or "none". Yes

src 

 

http 

  Yes

file 

  No

HTMLSourceElement

 

 

 

 

 

src

 

http

  Yes

file

  No

type

 

 

audio/mpeg

  Yes

audio/mp4

  Yes

video/mp4

  Yes

media

 

all

  Yes

screen

  Yes

HTMLTrackElement

 

 

 

 

 

 

 

 

 

 

default

default

  Yes

kind

 

 

 

 

captions

  No

chapters

  Yes

descriptions

  Yes

metadata

  Yes

subtitles

  No

label

label

  Yes

src

vtt

  No

srclang

language_code

  Yes

readyState

    No

track

    Yes

HTMLMediaElement

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

error

    Yes

src

    Yes

currentSrc

    Yes

networkState

    Yes

preload

  If "metadata" or "none" is set to preload, the "auto" is applied to preload by default instead of "metadata" or "none". Yes

buffered 

    Yes

readyState 

    Yes

seeking 

    Yes

controls 

   

Yes

currentTime 

   

Yes

duration

   

Yes

paused 

    Yes

ended 

    Yes

defaultPlaybackRate

    Yes

playbackRate 

    Yes

played

    Yes

seekable

    Yes

autoplay

    Yes

loop

   

Yes

mediaGroup

   

Yes

controller

    Yes

textTracks

   

Yes

audioTracks

   

Yes

videoTracks

   

Yes

TextTrackList

 

 

length

    Yes

TextTrack[ ]

    Yes

onaddTrack

    Yes

TextTrack

 

 

 

 

 

 

 

 

kind

    Yes

label

    Yes

language

    Yes

mode

    Yes

cues

    No

activeCues

    No

oncuechange

    No

TextTrackCueList

 

 

length

    No

TextTrackCue

    No

getCueById

    No

TextTrackCue

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

track

    No

id

    No

startTime

    No

endTime

    No

pauseOnExit

    No

vertical[growing right]

    No

vertical[growing left]

    No

vertical[horizontal]

    No

snapToLines

    Yes

line

    No

position

    No

size

    No

align[end]

    No

align[middle]

    No

align[start]

    No

text

    No

getCueAsHTML 

    No

oncenter 

    No

onexit 

    No

AudioContext 

 

 

sampleRate 

    No

length 

    No

numberOfChannels 

    No

AudioBufferSourceNode 

 

 

 

 

buffer 

    No

playbackRate 

    No

loop 

    No

loopStart

    No

loopEnd

    No

AudioBuffer

 

 

 

sampleRate

    No

length

    No

duration

    No

numberOfChannels

    No

 

Supported Events

 

Interface Name

Event Name

Supported in Emulator

HTMLMediaElement

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

loadstart

Yes

progress

Yes

suspend

Yes

abort

Yes

error

Yes

emptied

Yes

stalled

Yes

play

Yes

pause

Yes

loadedmetadata

Yes

loadeddata

Yes

waiting

Yes

playing

Yes

canplay

Yes

canplaythrough

Yes

seeking

Yes

seeked

Yes

timeupdate

Yes

ended

Yes

ratechange

Yes

durationchange

Yes

TextTrackCue

 

oncenter

Yes

onexit

Yes

TextTrack

oncuechange

No

AudioBufferSourceNode

onended

No

 

 

Supported Internet Media Type

Image for: Supported Internet Media Type

The following table describes internet media types.

CategorySupported Internet Media TypeSupported in Emulator
Video
  • video/mp4
  • video/x-m4v
  • video/x-ms-wmv
  • video/x-ms-asf
  • video/x-m2ts
  • video/m2ts
Yes
Audio
  • audio/aac
  • audio/mp4
  • audio/x-m4a
  • audio/mpeg
  • audio/x-mpeg
  • audio/x-mp3
  • audio/mp3
Yes
HLS
  • application/vnd.apple.mpegurl
  • application/vnd.apple.mpegurl.audio
  • application/mpegurl
  • application/x-mpegurl
  • audio/mpegurl
  • audio/x-mpegurl
Yes