arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

Examples

Playback From Stream (2)

hashtag
livePlaybackWithBackPressure

livePlaybackWithBackPressurearrow-up-right

A very simple example showing how to play Live Data with back pressure. It feeds a live stream, waiting that the Futures are completed for each block.

This example get the data from an asset file, which is completely stupid : if an App wants to play an asset file he must use "StartPlayerFromBuffer().

If you do not need any back pressure, you can see another simple example : . This other example is a little bit simpler because the App does not need to await the playback for each block before playing another one.

The complete example source

LivePlaybackWithoutBackPressure.dartarrow-up-right
is therearrow-up-right