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

NullPointerException when trying to play DASH Widevine content #12

Open
pM0n opened this issue Oct 21, 2015 · 0 comments
Open

NullPointerException when trying to play DASH Widevine content #12

pM0n opened this issue Oct 21, 2015 · 0 comments

Comments

@pM0n
Copy link

pM0n commented Oct 21, 2015

Trying to play: http://storage.googleapis.com/wvmedia/cenc/tears.mpd

Strange, but in some rare times it plays the video for a short time.

Code:

MediaPlayer mMediaPlayer = new MediaPlayer();
mMediaPlayer.setDataSource(getBaseContext(),Uri.parse("http://storage.googleapis.com/wvmedia/cenc/tears.mpd"));
mMediaPlayer.setDisplay(((SurfaceView) findViewById(R.id.video_surface)).getHolder());
mMediaPlayer.prepare();
mMediaPlayer.play();

Log:

10-21 16:11:16.277 22039-22129/drm.test.com.mystreamingapp E/AndroidRuntime: FATAL EXCEPTION: Player
10-21 16:11:16.277 22039-22129/drm.test.com.mystreamingapp E/AndroidRuntime: Process: drm.test.com.mystreamingapp, PID: 22039
10-21 16:11:16.277 22039-22129/drm.test.com.mystreamingapp E/AndroidRuntime: java.lang.NullPointerException
10-21 16:11:16.277 22039-22129/drm.test.com.mystreamingapp E/AndroidRuntime:     at com.sonymobile.android.media.internal.Player.access$200(Player.java:53)
10-21 16:11:16.277 22039-22129/drm.test.com.mystreamingapp E/AndroidRuntime:     at com.sonymobile.android.media.internal.Player$EventHandler.handleMessage(Player.java:774)
10-21 16:11:16.277 22039-22129/drm.test.com.mystreamingapp E/AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:102)
10-21 16:11:16.277 22039-22129/drm.test.com.mystreamingapp E/AndroidRuntime:     at android.os.Looper.loop(Looper.java:136)
10-21 16:11:16.277 22039-22129/drm.test.com.mystreamingapp E/AndroidRuntime:     at android.os.HandlerThread.run(HandlerThread.java:61)
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

1 participant