tree: dcffbb0f33a8b999bd12d7fe18994ca19c334646
  1. core/
  2. demux/
  3. ffmpeg/
  4. fidl/
  5. graph/
  6. graph_create/
  7. meta/
  8. metrics/
  9. process/
  10. render/
  11. test/
  12. util/
  13. audio_consumer_impl.cc
  14. audio_consumer_impl.h
  15. BUILD.gn
  16. main.cc
  17. OWNERS
  18. player_impl.cc
  19. player_impl.h
  20. README.md
  21. source_impl.cc
  22. source_impl.h
src/media/playback/mediaplayer/README.md

Mediaplayer

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

Example

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