Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


BackgroundMediaPlayback

Allows your application to continue media playback while the application is in the background.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Field
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
BackgroundMediaPlayback = 26

Remarks

Enabling this option changes the behavior of media-specific APIs like the MediaPlayer and AudioGraph classes to enable media playback while your application is in the background. If the application moves to the background, all active audio streams from the application continue to be audible. Additionally, the application lifetime extends while the audio plays.