Repository: flutter
Issue: [video_player] Some videos play without audio on Android TV devices
Labels: e: device-specific,platform-android,p: video_player,package,P3,team-android,triaged-android

<details> 
<summary>flutter doctor -v</summary> 
	
```console
> [√] Flutter (Channel dev, 2.5.0-5.0.pre, on Microsoft Windows [Version 10.0.18363.1734], locale en-US)
>     • Flutter version 2.5.0-5.0.pre at C:\flutter
>     • Upstream repository https://github.com/flutter/flutter.git
>     • Framework revision 0f465e5b2a (3 weeks ago), 2021-08-04 18:59:50 -0400
>     • Engine revision a0d89b1a54
>     • Dart version 2.14.0 (build 2.14.0-377.0.dev)
> 
> [√] Android toolchain - develop for Android devices (Android SDK version 30.0.3) 
>     • Android SDK at C:\Users\diyar\AppData\Local\Android\Sdk
>     • Platform android-30, build-tools 30.0.3
>     • ANDROID_HOME = C:\Users\diyar\AppData\Local\Android\Sdk
>     • ANDROID_SDK_ROOT = C:\Users\diyar\AppData\Local\Android\Sdk
>     • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java       
>     • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
>     • All Android licenses accepted.
> 
> [√] Chrome - develop for the web
>     • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
> 
> [√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.10.1)
>     • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
>     • Visual Studio Community 2019 version 16.10.31402.337
>     • Windows 10 SDK version 10.0.19041.0
> 
> [√] Android Studio (version 4.1)
>     • Android Studio at C:\Program Files\Android\Android Studio
>     • Flutter plugin can be installed from:
>        https://plugins.jetbrains.com/plugin/9212-flutter
>     • Dart plugin can be installed from:
>        https://plugins.jetbrains.com/plugin/6351-dart
>     • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
> 
> [√] IntelliJ IDEA Community Edition (version 2021.1)
>     • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2021.1.2
>     • Flutter plugin can be installed from:
>        https://plugins.jetbrains.com/plugin/9212-flutter
>     • Dart plugin can be installed from:
>        https://plugins.jetbrains.com/plugin/6351-dart
> 
> [√] VS Code (version 1.55.2)
>     • VS Code at C:\Users\diyar\AppData\Local\Programs\Microsoft VS Code
>     • Flutter extension version 3.22.0
> 
> [√] Connected device (4 available)
>     • MiTV AESP0 (mobile) • 192.168.0.104:5555 • android-arm    • Android 9 (API 28)
>     • Windows (desktop)   • windows            • windows-x64    • Microsoft Windows [Version 10.0.18363.1734]
>     • Chrome (web)        • chrome             • web-javascript • Google Chrome 92.0.4515.159
>     • Edge (web)          • edge               • web-javascript • Microsoft Edge 92.0.902.78
> 
> • No issues found!
```

</details>

<

video metadatas
<html>
<body>
<!--StartFragment-->

System:FileName |  
-- | --
System:FileSize | 10145812
System:FileModifyDate | 2021:08:27 11:53:07+00:00
System:FileAccessDate | 2021:08:27 11:53:07+00:00
System:FileInodeChangeDate | 2021:08:27 11:53:07+00:00
System:FilePermissions | 100644
File:FileType | M2T
File:FileTypeExtension | M2T
File:MIMEType | video/mpeg
M2TS:AudioStreamType | 3
M2TS:Duration | 33.28
H264:ImageWidth | 720
H264:ImageHeight | 576
MPEG:MPEGAudioVersion | 3
MPEG:AudioLayer | 2
MPEG:AudioBitrate | 96000
MPEG:SampleRate | 1
MPEG:ChannelMode | 1
MPEG:ModeExtension | 0
MPEG:CopyrightFlag | 1
MPEG:OriginalMedia | 1
MPEG:Emphasis | 0
Composite:ImageSize | 720 576
Composite:Megapixels | 0.41472
Composite:Duration

<!--EndFragment-->
</body>
</html>

example

<details> 
<summary>minimal code sample</summary> 

```dart
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:video_player/video_player.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: MyVideoPlayer(),
    );
  }
}

class MyVideoPlayer extends StatefulWidget {
  const MyVideoPlayer({Key? key}) : super(key: key);
  @override
  _MyVideoPlayerState createState() => _MyVideoPlayerState();
}

class _MyVideoPlayerState extends State<MyVideoPlayer> {
  late final VideoPlayerController controller;

  @override
  void initState() {
    initVideo();

    super.initState();
  }

  void initVideo() {
    controller = VideoPlayerController.network(
        "mpegts url here");
    controller.addListener(() {
      listener();
    });
    controller.initialize().then((value) {
      controller.play();
      controller.setLooping(false);
    });
  }

  void listener() {
    if (mounted) {
      setState(() {});
    }
  }

  @override
  void dispose() {
    controller.removeListener(() {
      listener();
    });
    controller.dispose();
    debugPrint("Video Disposed");
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.black,
      body: AspectRatio(
          aspectRatio: 16 / 9,
          child: !controller.value.isInitialized
              ? const Center(child: CircularProgressIndicator())
              : VideoPlayer(
                  controller,
                )),
    );
  }
}
``` 
	
</details>

> console 
```console
I/ExoPlayerImpl(15144): Release cf8c8c3 [ExoPlayerLib/2.14.1] [aquaman, MiTV-AESP0, Xiaomi, 28] [goog.exo.core]
4
E/BufferQueueProducer(15144): [SurfaceTexture-0-15144-2] cancelBuffer: BufferQueue has been abandoned
W/ExoPlayer:Playb(15144): type=1400 audit(0.0:486): avc: denied { read } for name="u:object_r:media_prop:s0" dev="tmpfs" ino=2335 scontext=u:r:untrusted_app:s0:c144,c256,c512,c768 tcontext=u:object_r:media_prop:s0 tclass=file permissive=0
D/SurfaceUtils(15144): disconnecting from surface 0xe196b008, reason disconnectFromSurface
E/libc    (15144): Access denied finding property "media.metrics.enabled"
I/ExoPlayerImpl(15144): Init e0981b1 [ExoPlayerLib/2.14.1] [aquaman, MiTV-AESP0, Xiaomi, 28]
I/OMXClient(15144): IOmx service obtained
D/SurfaceUtils(15144): connecting to surface 0xe196b008, reason connectToSurface
I/MediaCodec(15144): [OMX.amlogic.avc.decoder.awesome] setting surface generation to 15507460
D/SurfaceUtils(15144): disconnecting from surface 0xe196b008, reason connectToSurface(reconnect)
D/SurfaceUtils(15144): connecting to surface 0xe196b008, reason connectToSurface(reconnect)
I/AmAVUtils(15144): AmAVUtils::getComponentRole isEncoder :0 mime:video/avc
```