android - can anyone explain this code of media controller? -


can explain code of media controller?

   videoview = (videoview) findviewbyid(r.id.player);    videoview.setvideouri(uri.parse("android.resource://"+ getpackagename()+ "/" +r.raw.sample));    videoview.start();    mediacontroller controller = new mediacontroller(this);   controller.setmediaplayer(videoview);   videoview.setmediacontroller(controller); 

the code gets videoview id, sets uri of file play embedded resource , starts playback.

then attaches mediacontroller view renders progress bar , controls play / pause video.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -