title: Unable to view videoview in realtime database using firebase realtime database
body: <p>I want to view <code>VideoView</code> in <code>RecyclerView</code>. I am able to get the Uri of the uploaded videos but I am unable to play that video in the <code>VideoView</code>. I have checked that the I am getting the correct link of the video.</p>
  <p>Here is my adapter code:</p>
  <pre><code>class VideoAdapter(private var mContext: Context,private var mvideos: List&lt;VID&gt;) : RecyclerView.Adapter&lt;VideoAdapter.ViewHolder&gt;() {override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {val view = LayoutInflater.from(mContext).inflate(R.layout.videos_adapter, parent, false)return ViewHolder(view)}
  
  override fun onBindViewHolder(holder: ViewHolder, position: Int) {
      val videoid = mvideos[position]
  
      holder.vidId.text = videoid.getilp()
  
      val mediaController = MediaController(mContext)
      mediaController.setAnchorView(holder.videoIv)
      holder.videoIv.setMediaController(mediaController)
      holder.videoIv.setVideoURI(videoid.getVideoUrl().toUri())
      holder.videoIv.requestFocus()
      holder.videoIv.start()
  }
  
  override fun getItemCount(): Int {
      return mvideos.size
  }
  
  class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
      var videoIv: VideoView = itemView.videos_ret
      var vidId: TextView = itemView.videos_id_ret
  }
  
  }
  </code></pre>
  <p>I tried to use this adapter to get videos in <code>VideoView</code> but it is not playing any video.</p>