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] DRM not decrypting (VMX) #572

Open
Tracked by #620
mhoeckner opened this issue May 11, 2023 · 7 comments
Open
Tracked by #620

[video_player_videohole] DRM not decrypting (VMX) #572

mhoeckner opened this issue May 11, 2023 · 7 comments

Comments

@mhoeckner
Copy link
Contributor

Hi all,

the license callback works fine and is called. Also the plugin gets the ey from license server, but player does not decrypt the stream.

I created an example code with our DRM provider here: https://github.com/mhoeckner/flutter_tizen_test

To start the streams you need a password - I will send it @haesik and @swift-kim

With the "standard" free google drms the examples work.

You got any ideas what's wrong here?

Thakn you
regards
Markus

flutter-tizen doctor -v
[!] Flutter (Channel unknown, 3.7.1, on macOS 13.3.1 22E261 darwin-x64, locale en-AT)
! Flutter version 3.7.1 on channel unknown at /Users/markushockner/development/flutter-tizen/flutter
Currently on an unknown channel. Run flutter channel to switch to an official channel.
If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install.
! Warning: flutter on your path resolves to /Users/markushockner/development/flutter/bin/flutter, which is not inside your current Flutter SDK checkout
at /Users/markushockner/development/flutter-tizen/flutter. Consider adding /Users/markushockner/development/flutter-tizen/flutter/bin to the front of
your path.
! Warning: dart on your path resolves to /Users/markushockner/development/flutter/bin/dart, which is not inside your current Flutter SDK checkout at
/Users/markushockner/development/flutter-tizen/flutter. Consider adding /Users/markushockner/development/flutter-tizen/flutter/bin to the front of your
path.
! Unknown upstream repository.
Reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install.
• Framework revision 7048ed95a5 (3 months ago), 2023-02-01 09:07:31 -0800
• Engine revision 800594f1f4
• Dart version 2.19.1
• DevTools version 2.20.1
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Tizen toolchain - develop for Tizen devices
• Framework revision e3fa9d40b4 (13 days ago), 2023-04-28 17:16:15 +0900
• Engine revision 3a1a4b0df0
• Tizen Studio 5.0 at /Users/markushockner/tizen-studio
• .NET SDK 7.0.200 at /usr/local/share/dotnet/dotnet

[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
• Android SDK at /Users/markushockner/Library/Android/sdk
• Platform android-33, build-tools 32.0.0
• ANDROID_HOME = /Users/markushockner/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 14B47b
• CocoaPods version 1.12.1

[✓] Chrome - develop for the web
• CHROME_EXECUTABLE = /usr/local/bin/chrome_unsafe

[✓] Android Studio (version 2020.3)
• Android Studio at /Applications/Android Studio.app/Contents
• 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 11.0.10+0-b96-7281165)

[✓] VS Code (version 1.78.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.64.0

[✓] Connected device (3 available)
• macOS (desktop) • macos • darwin-x64 • macOS 13.3.1 22E261 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 113.0.5672.92
• Tizen GU50AU8079UXZG (mobile) • 172.16.66.3:26101 • flutter-tester • Tizen 6.0

[✓] HTTP Host Availability
• All required HTTP hosts are available

@hyue7
Copy link
Collaborator

hyue7 commented May 12, 2023

Hi, @mhoeckner
Have you add the required privileges in tizen-manifest.xml?

@swift-kim
Copy link
Member

Hi. Thanks for reporting.

Do you know if this problem was present in the preview version of the plugin (hyue7's PR) or is it a regression introduced after switching to the released version?

@mhoeckner
Copy link
Contributor Author

Hi,

@hyue7 - sry - updated my code - available in https://github.com/mhoeckner/flutter_tizen_test

But after adaptations nothing changed - got the correct permissions in other local branch that I tested - sorry for confusion

@swift-kim - the problem already existed in preview version. We weren't sure if we caused the problem - until now - our DRM works in Shaka Web 4.3.5 and ExoPlayer with DASH / Widevine

@hyue7
Copy link
Collaborator

hyue7 commented May 16, 2023

Hi, @mhoeckner
The stream in your example can't play, and throw error:
[E] [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: DioError [bad response]: The request returned an invalid status code of 500.

@mhoeckner
Copy link
Contributor Author

Hi @hyue7

this i a dev env and so the contract has been revoked. I updated repo - please pull - should work now.

Sorry for the inconvenience,
regards
Markus

@xuelian-bai
Copy link

@mhoeckner hi, Markus, this bug is also tizen platform bug, it has been fixed, but now I'm not sure when OTN for this fix will be scheduled. Since this issue is caused by not supporting cbcs encryption mode, you can use cenc mode encryption in server side for now. Sorry for incovinience.

@mhoeckner
Copy link
Contributor Author

@xuelian-bai - hi Xuelian, thanks for investigation - we are looking forward for update.

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

No branches or pull requests

5 participants