Skip to content
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_videohole] Problem reading a drm protected Dash format with token authorization #617

Open
IhabMks opened this issue Sep 5, 2023 · 3 comments

Comments

@IhabMks
Copy link

IhabMks commented Sep 5, 2023

Here's an example link of the video with the token:

videoLink = 'https://media.axprod.net/TestVectors/v7-MultiDRM-SingleKey/Manifest_1080p.mpd';
licenseUrl = '"https://drm-widevine-licensing.axtest.net/AcquireLicense",';
type: DrmType.widevine,
heeader : headers: {
'X-AxDRM-Message': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ2ZXJzaW9uIjoxLCJjb21fa2V5X2lkIjoiYjMzNjRlYjUtNTFmNi00YWUzLThjOTgtMzNjZWQ1ZTMxYzc4IiwibWVzc2FnZSI6eyJ0eXBlIjoiZW50aXRsZW1lbnRfbWVzc2FnZSIsImZpcnN0X3BsYXlfZXhwaXJhdGlvbiI6NjAsInBsYXlyZWFkeSI6eyJyZWFsX3RpbWVfZXhwaXJhdGlvbiI6dHJ1ZX0sImtleXMiOlt7ImlkIjoiOWViNDA1MGQtZTQ0Yi00ODAyLTkzMmUtMjdkNzUwODNlMjY2IiwiZW5jcnlwdGVkX2tleSI6ImxLM09qSExZVzI0Y3Iya3RSNzRmbnc9PSJ9XX19.FAbIiPxX8BHi9RwfzD7Yn-wugU19ghrkBFKsaCPrZmU',
},

Result: I get a response from license server without a problem, but the video _controller retruns the bellow error:

Video playback error: VideoPlayerValue(duration: 0:00:00.000000, size: Size(0.0, 0.0), position: 0:00:00.000000, caption: Caption(number: 0, start: 0:00:00.000000, end: 0:00:00.000000, text: ), captionOffset: 0:00:00.000000, buffered: 0, isInitialized: false, isPlaying: true, isLooping: false, isBuffering: false, volume: 1.0, playbackSpeed: 1.0, errorDescription: Error: Not supported format)

@hyue7
Copy link
Collaborator

hyue7 commented Sep 7, 2023

Hi, @IhabMks

heeader : headers: {
'X-AxDRM-Message': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ2ZXJzaW9uIjoxLCJjb21fa2V5X2lkIjoiYjMzNjRlYjUtNTFmNi00YWUzLThjOTgtMzNjZWQ1ZTMxYzc4IiwibWVzc2FnZSI6eyJ0eXBlIjoiZW50aXRsZW1lbnRfbWVzc2FnZSIsImZpcnN0X3BsYXlfZXhwaXJhdGlvbiI6NjAsInBsYXlyZWFkeSI6eyJyZWFsX3RpbWVfZXhwaXJhdGlvbiI6dHJ1ZX0sImtleXMiOlt7ImlkIjoiOWViNDA1MGQtZTQ0Yi00ODAyLTkzMmUtMjdkNzUwODNlMjY2IiwiZW5jcnlwdGVkX2tleSI6ImxLM09qSExZVzI0Y3Iya3RSNzRmbnc9PSJ9XX19.FAbIiPxX8BHi9RwfzD7Yn-wugU19ghrkBFKsaCPrZmU',
},

This header title X-AxDRM-Message , sorry that videohole plugin not support it temporary,but we are considering update the plugin to support.
May be you can try to use other authorization in your app.

@IhabMks
Copy link
Author

IhabMks commented Sep 7, 2023

Hi, @hyue7

The header X-AxDRM-Message is just an example of a test video i found online which is almost the same as what i'm trying to achieve, i'm using another header in which i provide a userAgent and another key value for authorization. Hence, the header i use in my app doesn't work as well.

@hemko2020
Copy link

hemko2020 commented Feb 19, 2024

Hello i facing a issue when i want to read a PLAYREADY flux in format DASH

VideoPlayerValue(duration: DurationRange(start: 0:00:00.000000, end: 0:00:00.000000), size: Size(0.0, 0.0), position: 0:00:00.000000, caption: Caption(number: 0, start: 0:00:00.000000, end: 0:00:00.000000, text: ), captionOffset: 0:00:00.000000, tracks: [], buffered: 0, isInitialized: false, isPlaying: true, isLooping: false, isBuffering: false, volume: 1.0, playbackSpeed: 1.0, errorDescription: Not supported format)

the licenseCallback isn't read in DrmConfigs
Failed to initialize video player: PlatformException(Media Player error, Not supported format, null, null)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants