Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Question Per-client unique streams

Discussion in 'Unity Render Streaming' started by Bulder, Jun 7, 2021.

  1. Bulder

    Bulder

    Joined:
    Sep 20, 2014
    Posts:
    1
    Hi,
    I'm trying to figure out if a multi-user environment such as presented in this diagram would be possible to implement using the current state of this package.

    My understanding is that there seems to be no easy way to only deliver a subset of streams, and the package is focused on broadcasting the same set of streams to multiple clients. Is this accurate? Thank you.
     
  2. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    803
    It might be possible but we have never provided a multi-user sample yet, so you have to make it yourself.
     
  3. salvatoreu

    salvatoreu

    Joined:
    May 14, 2021
    Posts:
    7
    Sorry, where is the multi-user sample?
    Also, is it absolutely necessary for the server part of unity to be installed on a PC with a nvidia card?
     
    Last edited: Jun 7, 2021
  4. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    803
    We have not yet provided the sample.
    You can use the software encoder on the PC without an NVIDIA card.
     
  5. salvatoreu

    salvatoreu

    Joined:
    May 14, 2021
    Posts:
    7
    Unfortunately, when I connect with the Chrome browser to the PC running the correctly configured WebBrowserInput example, the video never starts!
    upload_2021-6-8_8-56-57.png

    Obviously:
    - IP address is correct;
    - firewall on the PC deactivated;
    - node.js installed correctly
     
  6. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    803
    Can I see the editor log and the browser log?
     
  7. salvatoreu

    salvatoreu

    Joined:
    May 14, 2021
    Posts:
    7
    Now all OK su PC with google Chtome. After, I made an app android on my smartphone, i used android webview:
    protected void onStart() {
    super.onStart();
    WebView webView = (WebView) findViewById(R.id.webView);
    webView.getSettings().setAllowContentAccess(true);
    webView.getSettings().setAllowFileAccess(true);
    webView.getSettings().setJavaScriptEnabled(true);
    webView.getSettings().setLoadWithOverviewMode(true);
    webView.getSettings().setBuiltInZoomControls(true);
    webView.getSettings().setJavaScriptEnabled(true);
    webView.getSettings().setAppCacheEnabled(true);
    webView.getSettings().setDomStorageEnabled(true);
    webView.getSettings().setUseWideViewPort(true);
    webView.getSettings().setPluginState(WebSettings.PluginState.ON);
    webView.getSettings().setLoadWithOverviewMode(true);
    webView.getSettings().setUseWideViewPort(true);
    webView.setWebChromeClient(new WebChromeClientCustomPoster());
    webView.loadUrl("http://192.168.1.227/videoplayer/index.html");
    }

    the streaming is showing only sometimes on phone display, while if use google chrome on my PC with windows, is always OK, why ?
     
  8. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    803
    I guess you need to check the webview supports WebRTC features.
     
  9. salvatoreu

    salvatoreu

    Joined:
    May 14, 2021
    Posts:
    7
    Is the communication between unity and web browser unidirectional. Is possible to send from unity a message to the player invoking a javascript function? as opposite to _videoPlayer.sendMsg
     
  10. Maktech

    Maktech

    Joined:
    Jan 15, 2015
    Posts:
    31
    It can be done. It all about assigning tracks (data and video) to specific users. Good luck.