Question:Consider the code snippet below:
MediaPlayer mp = new MediaPlayer();
mp.setDataSource(PATH_TO_FILE);
<Some code here>
mp.start();
Which of the following should be placed at <Some code here>? 

A mp.prepare(); 

B mp.prepareAsync(); 

C mp.loadMedia(); 

D mp.loadSource(); 

E mp.loadSource(); mp.prepare(); 

F No code is required at <Some code here> to start playback. 

+ Answer
+ Report
Total Preview: 3619

Copyright © 2024. Powered by Intellect Software Ltd