includes 5-10 chunks • Playlist needs to be refreshed every n seconds • Seek very, very limited (only inside Player buffer) VOD • Playlist includes all chunks • Playlist is downloaded once at the beginning • Seek possible (time inside asset points to .ts chunk remember: continues index between chunks
• HTTP/HTTPS progressive streaming • HTTP/HTTPS live streamingdraft protocol: • MPEG-2 TS media files only • Protocol version 3 (Android 4.0 and above) • Protocol version 2 (Android 3.x) • Not supported before Android 3.0
super.onCreate(savedInstanceState); setContentView(R.layout.activity_video_view); VideoView videoView = (VideoView) findViewById(R.id.view_video); // set media controller videoView.setMediaController(new MediaController(this)); // set video stream to play videoView.setVideoURI(Uri.parse(videoUri)); // start playback videoView.requestFocus(); videoView.start(); }
Customizable and extendable • Update the player with your app • Fewer device specific issues • Relies on Android’s MediaCodec api, which is available on Android 4.1, (API level 16) • 4.3 for Widevine DRM