I have a google TV emulator for android 3.1 (API 12) i am trying to play an hls file but I am getting the message "cannot play this video"
I am using the below code:
mVideoView = (VideoView) findViewById(R.id.videoView1);
mVideoView.setVideoURI(Uri.parse("http://vodmytvoriginrt-i.akamaihd.net/i/rotana/1RRCP0183_,500,1000,1800,.mp4.csmil/master.m3u8"));
mVideoView.setOnCompletionListener(this);
mVideoView.setOnErrorListener(this);
MediaController mc = new MediaController(this, true);
mc.setMediaPlayer(mVideoView);
mc.setAnchorView(mVideoView);
mVideoView.setMediaController(mc);
mVideoView.requestFocus();
mVideoView.start();
What could i be possibly missing? does anyone has a solution or suggestion for this problem?
emulator for Google TV does not support HLS. I will file a feature request for this. Thanks!