Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Streaming video (VideoPlayer)

Discussion in '5.6 Beta' started by MarkNeville, Dec 27, 2016.

  1. MarkNeville

    MarkNeville

    Joined:
    Feb 18, 2015
    Posts:
    5
    Does VideoPlayer handle streaming video? I've tried tcp://<IPADDRESS>:<PORT> but I don't receive any video or error messages.
     
    Who-am-I likes this.
  2. Who-am-I

    Who-am-I

    Joined:
    Mar 29, 2014
    Posts:
    73
    I am facing same issue
     
  3. DominiqueLrx

    DominiqueLrx

    Unity Technologies

    Joined:
    Dec 14, 2016
    Posts:
    256
    For now, you can use URLs of the form file://, http:// and https:// , where the URL path finishes with an extension that describes a movie container whose type is supported (e.g.: mp4, webm, ...). We'll add support for a URL with query string in an upcoming beta (an oversight...).

    Can you give me the details of what circumstances require you to use a tcp:// url?
     
  4. MarkNeville

    MarkNeville

    Joined:
    Feb 18, 2015
    Posts:
    5
    Thanks for the reply. My use case is for live drone video feeds i.e. tcp://192.168.1.1:5555.
     
  5. DominiqueLrx

    DominiqueLrx

    Unity Technologies

    Joined:
    Dec 14, 2016
    Posts:
    256
    Interesting!

    Can you give me details about what to expect on this URL? Do you have a spec for this, or user documentation? Can you point a web browser to this and play the resulting video?

    As mentioned, our current approach requires the URL to have the container type in the extension (as we're feeding the URL to various decoding backends depending on the container type). Also: what platform is this for?

    Thanks for bringing this to our attention!
     
    reubenkc likes this.
  6. Deleted User

    Deleted User

    Guest

    I tried using Video Player to stream HLS, but it didn't work. I assume that's because of no current support with URLs that have a query string.

    Is that correct?