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. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

Third Party How to stream a live video with Photon?

Discussion in 'Multiplayer' started by vs-villasimone, Apr 18, 2018.

  1. vs-villasimone

    vs-villasimone

    Joined:
    Jan 2, 2017
    Posts:
    1
    Hi all,
    we are trying to stream a live video from a webcam hosted in a server to a client, with Photon.
    We are using PUN and we are trying to send video frames with RPC calls, but without succes.
    Do you know about any alternatives to solve this issue?

    Thank you!
    Simone
     
  2. nsmith1024

    nsmith1024

    Joined:
    Mar 18, 2014
    Posts:
    869
    Anybody solve this?
     
  3. tobiass

    tobiass

    Joined:
    Apr 7, 2009
    Posts:
    3,018
    Streaming video with Photon is technically possible but we don't have a built-in solution yet.

    You should not use RPCs for this. Use RaiseEvent and send unreliable. If some part does not arrive, the video should just continue. Else, there would be a growing delay.

    Keep an eye on your msgs/sec and traffic, at least when you use the Photon Cloud. There is a cap for traffic per subscription and for streaming, you might run into that.
     
    Psyco92 likes this.
  4. JasonsFreeTime

    JasonsFreeTime

    Joined:
    May 23, 2015
    Posts:
    31
    Could Unity be used to create a Drone VR headset app? If so then how does one go about getting the video stream from the camera?
     
  5. N1warhead

    N1warhead

    Joined:
    Mar 12, 2014
    Posts:
    3,884
    Either through sockets (if it can send wifi signals), or through an actual radio antenna.
     
  6. virgilcwyile

    virgilcwyile

    Joined:
    Jan 31, 2016
    Posts:
    73
    I was just thinking if Time in Video could be shared by first user, every other player could play at the same point of time, I would call it streaming. If the difference goes beyond 2 seconds, we can show a live button so user could jump to live.