title: I want to retrieve videos from firebase storage
body: <p>I am working on simple firebase app in which I upload user info as registration data and uploading videos in storage. Path of videos is also stored in realtime database as nested child of every particular user which is working properly, but I don't know how to retrieve video and set in user profile with other user information. I need code to retrieve video from storage.</p>
  
  <pre><code>     case PICK_VIDEO_REQUEST:
              if (resultCode == RESULT_OK) {
  
  
                  selectedVideoUri = data.getData();
                 userUid = FirebaseAuth.getInstance().getCurrentUser().getEmail();
                  StorageReference storageRef = FirebaseStorage.getInstance().getReference();
                  filename = data.getData().getLastPathSegment();
                  tv_file_path.setText(filename);
                  videoRef = storageRef.child("/videos/" + userUid + "/" + filename);
                  //TODO: save the video in the db
  
  
              }
              break;
  
  
  
  
  `//Button upload data in firebase
      btn_upload_notes.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
  
              uploadData(selectedVideoUri);
  
  
                             try {
                                 if (FirebaseAuth.getInstance().getCurrentUser().getEmail().equals(value.getT_email())) {
  
                                     file_name = filename;
                                     notes_Category = text;
                                     lecture_topic = et_topic.getText().toString().trim();
                                     id = mDatabase.push().getKey();
                                     NotesModelClass notesModelClass = new NotesModelClass(id, notes_Category, lecture_topic, file_name);
                                     mDatabase.child(value.getT_id()).child("Video Notes").child(id).setValue(notesModelClass);
                                     return;
                                 }
                             }
                             catch (Exception ex){
                                 throw  ex;
                             }
  
          }
      });
  </code></pre>
  
  <p>`</p>
  
  <pre><code>     private void uploadData(Uri videoUri) {
      if (videoUri != null) {
          final ProgressDialog progressDialog = new ProgressDialog(this);
          progressDialog.setTitle("Uploading...");
          progressDialog.show();
          UploadTask uploadTask = videoRef.putFile(videoUri);
  
          uploadTask.addOnCompleteListener(new OnCompleteListener&lt;UploadTask.TaskSnapshot&gt;() {
              @Override
              public void onComplete(@NonNull Task&lt;UploadTask.TaskSnapshot&gt; task) {
                  if (task.isSuccessful())
                      progressDialog.dismiss();
                  Toast.makeText(MainActivity.this, "Upload Complete", Toast.LENGTH_SHORT).show();
  
              }
          }).addOnProgressListener(new OnProgressListener&lt;UploadTask.TaskSnapshot&gt;() {
              @Override
              public void onProgress(UploadTask.TaskSnapshot taskSnapshot) {
                  double progress = (100.0 * taskSnapshot.getBytesTransferred() / taskSnapshot
                          .getTotalByteCount());
                  progressDialog.setMessage("Uploaded " + (int) progress + "%");
              }
          });
      } else {
          Toast.makeText(MainActivity.this, "Nothing to upload", Toast.LENGTH_SHORT).show();
      }
  
  }
  </code></pre>