Need help with playing video encrypted by Widevine
#1
Hello.
I'm trying play encrypted video, but have problems with it.

Service gives me three links:
"widevine": "http://videomore.ru/video/file/bcf0e1a848ca4fe399d49e55fd09c0f8/1523994846/627565.wvm",
"widevine_xml": "http://videomore.ru/api/widevine_url.json?app_id=VMCVTAndr&track_id=617829&sig=4bd879b42a975a3ae2f2e624bb11cc9d", - url content https://pastebin.com/p5mHQ4KH
"widevine_modular": "http://videomore.ru/video/file/1bdc0a481390986ee772ab22f3acda59/1523994846/627565.mpd" - url content https://pastebin.com/b26gHUmp

For playing video, official application send request to http://widevine.videomore.ru/cenc/getlic...svideomore

According all tips, that I found, I'm trying play video with this code:
python:
li = xbmcgui.ListItem(path='http://videomore.ru/video/file/667f2e0dbf3ce6b8d4473138c4226287/1523991890/627565.mpd')
li.setProperty('inputstream.adaptive.license_type', 'com.widevine.alpha')
li.setProperty('inputstream.adaptive.license_key', 'http://widevine.videomore.ru/cenc/getlicense/inventosvideomore||R{SSM}|')
li.setProperty('inputstream.adaptive.manifest_type', 'mpd')
li.setProperty('inputstreamaddon', 'inputstream.adaptive')
li.setMimeType('application/dash+xml')
xbmcplugin.setResolvedUrl(_handle, True, li)
But Widevine has problems with getting license:
Code:
DEBUG: AddOnLog: InputStream Adaptive: Entering encryption section
DEBUG: AddOnLog: InputStream Adaptive: Initializing stream with KID: 788B68EACADC54FA85181C8F9DFB79A5
ERROR: AddOnLog: InputStream Adaptive: Init_data with length: 294 seems not to be cenc init data!
ERROR: AddOnLog: InputStream Adaptive: Initialize failed (SingleSampleDecrypter)
DEBUG: AddOnLog: InputStream Adaptive: Session::~Session()
Full log: https://pastebin.com/98aaxHNi

Can someone tell me what I'm doing wrong?
My addons: Gismeteo
Reply
#2
Looks like this problem appears, when inputstream.adaptive uses external library on Windows and Linux.
My code works on the Android device.
My addons: Gismeteo
Reply

Logout Mark Read Team Forum Stats Members Help
Need help with playing video encrypted by Widevine0