コード例 #1
0
 public void RenderOnGUI()
 {
     if (GUILayout.Button("GetVideoURL(343450)"))
     {
         SteamVideo.GetVideoURL((AppId_t)343450);             // Free To Play
         print("SteamVideo.GetVideoURL(343450)");
     }
 }
コード例 #2
0
    public void RenderOnGUI()
    {
        if (GUILayout.Button("GetVideoURL(343450)"))
        {
            SteamVideo.GetVideoURL((AppId_t)343450);             // Free To Play
            print("SteamVideo.GetVideoURL(343450)");
        }

        {
            int  NumViewers;
            bool ret = SteamVideo.IsBroadcasting(out NumViewers);
            GUILayout.Label("IsBroadcasting(out NumViewers) : " + ret + " -- " + NumViewers);
        }
    }
コード例 #3
0
    public void RenderOnGUI()
    {
        GUILayout.BeginVertical("box");
        m_ScrollPos = GUILayout.BeginScrollView(m_ScrollPos, GUILayout.Width(Screen.width - 215), GUILayout.Height(Screen.height - 33));

        if (GUILayout.Button("GetVideoURL(TestConstants.Instance.k_AppId_FreeToPlay)"))
        {
            SteamVideo.GetVideoURL(TestConstants.Instance.k_AppId_FreeToPlay);
            print("SteamVideo.GetVideoURL(" + TestConstants.Instance.k_AppId_FreeToPlay + ")");
        }

        {
            int  NumViewers;
            bool ret = SteamVideo.IsBroadcasting(out NumViewers);
            GUILayout.Label("IsBroadcasting(out NumViewers) : " + ret + " -- " + NumViewers);
        }

        if (GUILayout.Button("GetOPFSettings(TestConstants.Instance.k_AppId_FreeToPlay)"))
        {
            SteamVideo.GetOPFSettings(TestConstants.Instance.k_AppId_FreeToPlay);
            print("SteamVideo.GetOPFSettings(" + TestConstants.Instance.k_AppId_FreeToPlay + ")");
        }

        if (GUILayout.Button("GetOPFStringForApp(TestConstants.Instance.k_AppId_FreeToPlay, out Buffer, ref ValueBufferSize)"))
        {
            string Buffer;
            int    ValueBufferSize = 0;
            bool   ret             = SteamVideo.GetOPFStringForApp(TestConstants.Instance.k_AppId_FreeToPlay, out Buffer, ref ValueBufferSize);
            if (ret)
            {
                ret = SteamVideo.GetOPFStringForApp(TestConstants.Instance.k_AppId_FreeToPlay, out Buffer, ref ValueBufferSize);
            }
            print("SteamVideo.GetOPFStringForApp(" + TestConstants.Instance.k_AppId_FreeToPlay + ", " + "out Buffer" + ", " + "ref ValueBufferSize" + ") : " + ret + " -- " + Buffer + " -- " + ValueBufferSize);
        }

        GUILayout.EndScrollView();
        GUILayout.EndVertical();
    }