Mediaplayer is a service for playback of audio and video streams from a variety of sources and formats.
It implements the following FIDL services:
fuchsia.media.playback.Player fuchsia.media.SessionAudioConsumerFactory
Use the mediaplayer_test_util app to playback a file using the mediaplayer service.
For this example include the following in your build:
//src/media/playback/mediaplayer:tests //src/media/playback/bundles:services
Then run the following on your host machine:
FILE=some_movie.mp4 fx cp --to-target $FILE /tmp/tmpmediafile fx shell mediaplayer_test_util --play /tmp/tmpmediafile