tree: d2bc25e314bd322ef7313a53880d7d067b94e416 [path history] [tgz]
  1. config/
  2. core/
  3. demux/
  4. ffmpeg/
  5. fidl/
  6. graph/
  7. graph_create/
  8. meta/
  9. metrics/
  10. process/
  11. render/
  12. test/
  13. util/
  14. audio_consumer_impl.cc
  15. audio_consumer_impl.h
  16. BUILD.gn
  17. main.cc
  18. OWNERS
  19. player_impl.cc
  20. player_impl.h
  21. README.md
  22. source_impl.cc
  23. 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
//src/media/playback/bundles:config

Then run the following on your host machine:

FILE=some_movie.mp4
fx shell killall basemgr.cmx
fx shell mkdir /tmp/r/sys/fuchsia.com:mediaplayer_test_util:0#meta:mediaplayer_test_util.cmx
fx cp --to-target $FILE /tmp/r/sys/fuchsia.com:mediaplayer_test_util:0#meta:mediaplayer_test_util.cmx/tmpmediafile
fx shell present_view fuchsia-pkg://fuchsia.com/mediaplayer_test_util#meta/mediaplayer_test_util.cmx --play /tmp/tmpmediafile