Skip to main content
New Participant
January 30, 2024

set Live streaming on by code

Hello, is it possible to broadcast live through a call from a script and thus not have to go to the menu and click on the broadcast option?

In the documentation there are calls related to it, some ideas on how to use them:

https://developer.oculus.com/reference/platform-unity/v59/

Thanks

    This topic has been closed for replies.

    1 reply

    New Participant
    January 31, 2024

    When I click on the transmit button I do receive information about the callback but how could I make that call from code?

    The callback:
    Livestreaming.SetStatusUpdateNotificationCallback((Message<LivestreamingStatus> msg)
    => { GetLoggedInUser(msg); });

     

    I use this: 

    CAPI.ovr_Livestreaming_StartStream(LivestreamingAudience.Public, LivestreamingMicrophoneStatus.MicrophoneOn);

    But it doesn't seem to do anything