Search Unity

Video Catching full VideoPlayer Error

Discussion in 'Audio & Video' started by drorriov, Jan 10, 2019.

  1. drorriov

    drorriov

    Joined:
    Jun 7, 2014
    Posts:
    29
    Hello,

    I am using VideoPlayer with URL to show a video.
    Sometimes when there is a problem with the URL parameters i can receive error from VideoPlayer like:

    WindowsVideoMedia error 0x80070005 while reading https://www.myvideo.coo?parameter=1&parameter2=2
    Context: MFCreateSourceReaderFromURL
    Error details: Access is denied.

    I do use
    Code (CSharp):
    1. videoPlayer.errorReceived += ErrorReceived;
    event to catch errors,
    but in this case it won't return the error details "Access is denied."
    It will return: "VideoPlayer cannot play url : https://www.myvideo.coo?parameter=1&parameter2=2"

    How do i catch the error details like: "Access is denied"?
     
    Last edited: Jan 10, 2019
  2. drorriov

    drorriov

    Joined:
    Jun 7, 2014
    Posts:
    29
    Anyone?