Skip to content

Instantly share code, notes, and snippets.

Harish Sridharan sharish

Block or report user

Report or block sharish

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View dummy.json
[
{
"name": "Ant",
"age": 26
},
{
"name": "Bear",
"age": 31
},
{
View Mi4_Adb_Bugreport.txt
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: ,
View Issue.md

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

View Mi4_Logcat.txt
--------- 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 Feb 20, 2019
Sample Exo Playlist for Widevine Dash with HDCP v2.0
View harish.exolist.json
[
{
"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",
View SendEmail.md

###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 Mar 9, 2016
Send Email Animation Along with sending of mail.
View MainActivity.java
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;
View SemiCircleView.java
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;
View FlipAnimator.java
/**
* 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
You can’t perform that action at this time.