You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The parameter declares for the createSession function from OpenVidu Class is a SessionProperties Object. Inside this function create the Session Object (line 55, OpenVidu.php).
The parameter $sessionId is expected as an integer in the constructor, but in the example to create a token for a new session it's using a Str::random() and it returns a string.
The Session constructor method expect as a second parameter a $sessionId, but we never send in the function createSession, but the sessionId is inside the SessionProperties Object.
Note
To resolve this, we need to remember the function getSession from OpenVidu.php (line 154), create a session but in the right way.
Thanks for the report, the class is now updated. The reason for passing the $sessionId parameter in the builder is to avoid creating a new class when rehydrating using the fromJson.
Now the parameter type is corrected, it is optional and it is a string
Problem
When I trying to create a session by using the example Create a token for a new session or an existing session from the README.md
The parameter declares for the
createSession
function from OpenVidu Class is a SessionProperties Object. Inside this function create the Session Object (line 55, OpenVidu.php).For the creation of the Session by using its constructor (line 61, Session.php), it needs the next parameter in this order
Errors
Note
I hope I have been of your help, have a good day. 😄
The text was updated successfully, but these errors were encountered: