Exemplo n.º 1
0
static bool
HavePlatformMPEGDecoders()
{
  return Preferences::GetBool("media.fragmented-mp4.use-blank-decoder") ||
#ifdef XP_WIN
         // We have H.264/AAC platform decoders on Windows Vista and up.
         IsVistaOrLater() ||
#endif
         IsAndroidAvailable() ||
         IsFFmpegAvailable() ||
         IsAppleAvailable() ||
         IsGonkMP4DecoderAvailable() ||
         // TODO: Other platforms...
         false;
}
Exemplo n.º 2
0
static bool
HavePlatformMPEGDecoders()
{
#ifdef XP_WIN
  // We always have H.264/AAC platform decoders on Windows.
  return true;
#else
  return Preferences::GetBool("media.use-blank-decoder") ||
         IsAndroidAvailable() ||
         IsFFmpegAvailable() ||
         IsAppleAvailable() ||
         IsGonkMP4DecoderAvailable() ||
         IsGMPDecoderAvailable() ||
         // TODO: Other platforms...
         false;
#endif
}