-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[video_player_avplay] Support ADAPTIVE_INFO property #656
[video_player_avplay] Support ADAPTIVE_INFO property #656
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added ADAPTIVE_INFO to mpd type streaming (DRM Widevine) and tested it.
In fact, I couldn't find any changes. Can you recommend a more appropriate sample?
--- a/packages/video_player_avplay/example/lib/main.dart
+++ b/packages/video_player_avplay/example/lib/main.dart
@@ -252,6 +252,10 @@ class _DrmRemoteVideoState extends State<_DrmRemoteVideo> {
_controller = VideoPlayerController.network(
'https://storage.googleapis.com/wvmedia/cenc/hevc/tears/tears.mpd',
+ streamingProperty: {
+ 'ADAPTIVE_INFO':
+ 'BITRATES=5000~10000|STARTBITRATE=HIGHEST|SKIPBITRATE=LOWEST'
+ },
drmConfigs: DrmConfigs(
type: DrmType.widevine,
licenseCallback: (Uint8List challenge) async {
You can test it with below codes: _NetworkVideo(
title: '0~5247438',
url:
'https://cph-p2p-msl.akamaized.net/hls/live/2000341/test/master.m3u8',
adaptiveInfo: 'BITRATES=0~5247438',
) You can refer to this sample code: |
Add streamingProperty at the time of initialization, only support ADAPTIVE_INFO now.
More detail, please refer to:
Playing Adaptive Streaming Media