Skip to content

Instantly share code, notes, and snippets.

View sharish's full-sized avatar

Harish Sridharan sharish

View GitHub Profile
@sharish
sharish / dummy.json
Last active September 23, 2018 16:18
[
{
"name": "Ant",
"age": 26
},
{
"name": "Bear",
"age": 31
},
{
@sharish
sharish / temp
Created September 17, 2018 15:20
s
This file has been truncated, but you can view the full file.
========================================================
== dumpstate: 2017-10-09 17:46:37
========================================================
Build: MMB29M
Build fingerprint: 'Xiaomi/rolex/rolex:6.0.1/MMB29M/V8.5.5.0.MCCMIED:user/release-keys'
Bootloader: unknown
Radio: msm
Network: ,
Kernel: Linux version 3.18.24-perf-gdcca0a6 (builder@mi-server) (gcc version 4.9.x-google 20140827 (prerelease) (GCC) ) #1 SMP PREEMPT Tue Aug 29 11:36:51 WIB 2017

Issue description

Whenever a Widevine DRM encrypted video played on certain devices, the player throws android.media.MediaDrm$MediaDrmStateException: Failed to get provision request: DRM vendor-defined error: -2990

Reproduction steps

  1. Close the Exoplayer version v2.5.3
  2. Create a demo apk.
  3. Try playing the Widevine DRM videos in the demo app.

Link to test content

You can use any of the sample videos list in demo playlist in Widevine section

--------- beginning of main
10-09 17:30:16.200 609 609 W cnss_diag: type=1400 audit(0.0:39721): avc: denied { search } for name="user" dev="tmpfs" ino=10828 scontext=u:r:wcnss_service:s0 tcontext=u:object_r:mnt_user_file:s0 tclass=dir permissive=0
10-09 17:30:16.200 609 609 W cnss_diag: type=1400 audit(0.0:39722): avc: denied { search } for name="user" dev="tmpfs" ino=10828 scontext=u:r:wcnss_service:s0 tcontext=u:object_r:mnt_user_file:s0 tclass=dir permissive=0
10-09 17:30:16.200 609 609 W cnss_diag: type=1400 audit(0.0:39723): avc: denied { search } for name="user" dev="tmpfs" ino=10828 scontext=u:r:wcnss_service:s0 tcontext=u:object_r:mnt_user_file:s0 tclass=dir permissive=0
10-09 17:30:16.200 609 609 W cnss_diag: type=1400 audit(0.0:39724): avc: denied { search } for name="user" dev="tmpfs" ino=10828 scontext=u:r:wcnss_service:s0 tcontext=u:object_r:mnt_user_file:s0 tclass=dir permissive=0
10-09 17:30:16.200 609 609 W cnss_diag: type=1400 audit(0.0:39725): avc: denied { search } for n
@sharish
sharish / harish.exolist.json
Last active January 24, 2024 02:02
Sample Exo Playlist for Widevine Dash with HDCP v2.0
[
{
"name": "Widevine DASH: MP4,H264",
"samples": [
{
"name": "Sample Demo Video",
"drm_scheme": "widevine",
"uri": "https://drvideotest.streaming.mediaservices.windows.net/b56d4515-6604-4bbb-8465-87ce54759ca7/SampleVideo_1280x720_30mb.ism/manifest(format=mpd-time-csf)",
"drm_license_url": "https://drvideotest.keydelivery.southindia.media.azure.net/Widevine/?kid=604dbd46-3b6f-4cf8-84da-9ddb2a76a7b7",

###Sending the email over mailgun.com

For automatically sending the email after this animation is done, You can use mailgun.com services to autosend the email.

####STEPS:

  • Goto www.mailgun.com and create a new account.
  • Confirm your email address and verify the OTP over mobile SMS
@sharish
sharish / MainActivity.java
Last active March 9, 2016 07:26
Send Email Animation Along with sending of mail.
package com.cooltechworks.envelopeanimation;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Handler;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.Menu;
package com.cooltechworks.semicircletest;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
import android.text.TextPaint;
import android.util.AttributeSet;
import android.view.MotionEvent;
/**
* Copyright 2016 Harish Sridharan
* <p/>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* Unless required by applicable law or agreed to in writing, software