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. Let us know your feedback about the Global Illumination changes in the 2023.2 beta.
    Dismiss Notice
  3. Dismiss Notice

Resolved Autoplay stream in browser

Discussion in 'Unity Render Streaming' started by LostAtSea_CB, Jul 24, 2023.

  1. LostAtSea_CB

    LostAtSea_CB

    Joined:
    Mar 10, 2015
    Posts:
    2
    I am developing an app that is meant as an instructors controller for unity runtime scenarios. The app is built in qt and has an embedded browser in one of its screens. I would like that stream to "start" as soon as the app is launched. I understand that I need the web app to launch with my program, but where in the web app source code would I make a change to set the stream to "autoplay", as opposed to having to click on the play button before it will play the stream?

    Thanks in advance!
     
  2. kannan-xiao4

    kannan-xiao4

    Unity Technologies

    Joined:
    Nov 5, 2020
    Posts:
    76
    The play button implementation is below.
    https://github.com/Unity-Technologi.../WebApp/client/public/receiver/js/main.js#L67

    It's a button that initiates signaling rather than actually playing the video.
     
  3. LostAtSea_CB

    LostAtSea_CB

    Joined:
    Mar 10, 2015
    Posts:
    2
    kannan-xiao4 likes this.