Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

PlantUML Macro
titlePlayback States
@startuml


hide empty description

state All {
	All				--> FAILURE:	Fatal error
	All				-->	[*]:			\~WebAudioPlayer()

		[*]			-->	IDLE:			createWebAudioPlayer()

	state Streaming {

		IDLE    --> PLAYING:	play()
		PLAYING --> PAUSED:		pause()
		PAUSED  --> PLAYING:	play()
	}

		PLAYING --> EOS:			Gstreamer notifies EOS
		EOS     --> PLAYING:  play()
}

@enduml


The above state machine UML is not rendering correctly so this is a snapshot from Sky Confluence:

Image Added

Shared Memory Region

If max_web_audio_playbacks>0 then max_web_audio_playbacks regions will be allocated in the shared memory buffer for web audio data. The module managing Web Audio should fetch that region data during initialisation and then manage the memory as a circular buffer into which audio frames can be written and from which they are read. The following diagrams show typical snapshots of how the buffer might look during Web Audio streaming and how the next WebAudioShmInfo parameter returned by getBufferAvailable() would look in such a case.

...