Beginning HTML5 media

Chapter 3

Listing 3-1 getting and setting content attributes

Listing 3-2 getting @currentSrc

Listing 3-3 getting @duration

Listing 3-4 getting and setting @volume

Listing 3-5 getting and setting @muted/@defaultMuted

Listing 3-6 getting and setting @videoWidth and @videoHeight

Listing 3-7 getting and setting @currentTime

Listing 3-8 getting @seeking

Listing 3-9 getting @paused and determine if playing

Listing 3-10 getting @ended

Listing 3-11 getting and setting @playbackRate/@defaultPlaybackRate

Listing 3-12 getting @networkState

Listing 3-13 getting @readyState

Listing 3-14 getting @error.code

Listing 3-15 getting @buffered

Listing 3-16 getting @played

Listing 3-17 getting @seekable

Listing 3-18 using pause() and play()

Listing 3-19 using JW Player

Listing 3-20 using video.js

Listing 3-21 custom video player