我想打從火力地堡存儲的視頻與videoview我想是這樣的:加載視頻到videoView
storageReference.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {
@Override
public void onSuccess(Uri uri) {
//Toast.makeText(Chat.this, uri.toString(), Toast.LENGTH_SHORT).show();
MediaController mc = new MediaController(Chat.this);
videoView.setMediaController(mc);
videoView.setVideoURI(uri);
videoView.requestFocus();
//videoView.start();
}
});
,但它不會玩。視頻是空的。
看看:http://stackoverflow.com/questions/37865482/firebase-storage-video-streaming – RamithDR
@RamithDR我不希望視頻流只是視頻從存儲加載到videoview –
什麼是價值' storageReference'?什麼是視頻格式? –