Giter Site home page Giter Site logo

Comments (24)

GhaziTriki avatar GhaziTriki commented on August 27, 2024

You didn't store redirect and joinViaHtml5 values into your parameters variable. Your code should be:

$meInfo2 = new \BigBlueButton\Parameters\JoinMeetingParameters($meetId, '***','***');
$meInfo2 = $meInfo2->setRedirect(true)->setJoinViaHtml5(true);
$new =$bbb->joinMeeting($meInfo2);

from bigbluebutton-api-php.

IgorDePaula avatar IgorDePaula commented on August 27, 2024

from bigbluebutton-api-php.

IgorDePaula avatar IgorDePaula commented on August 27, 2024

from bigbluebutton-api-php.

GhaziTriki avatar GhaziTriki commented on August 27, 2024

I see Uncaught Exception: String could not be parsed as XML in.... Can you please share the HTML response here?

from bigbluebutton-api-php.

IgorDePaula avatar IgorDePaula commented on August 27, 2024

from bigbluebutton-api-php.

GhaziTriki avatar GhaziTriki commented on August 27, 2024

Please check your BigBlueButton server URL. I can see the response string empty.
SimpleXMLElement->__construct('')

from bigbluebutton-api-php.

IgorDePaula avatar IgorDePaula commented on August 27, 2024

The URL is correct, I create a room, I got records, I watch records, but I only got URL for moderator form room, not url for a common user (not moderator).

If I put

  curl_close($ch);
//var_dump($data);exit;
            return new SimpleXMLElement($data);

On 390-392 lines I received the xml:

~/PhpstormProjects/testesbbb$ php index.php 
string(621) "<response><returncode>SUCCESS</returncode><meetingID>2bd72afec53f45f6ce079060485d23cc</meetingID><internalMeetingID>206e1e604ad0d2a6a196111125a85e654916b4d9-1539637228336</internalMeetingID><parentMeetingID>bbb-none</parentMeetingID><attendeePW>asdqwe</attendeePW><moderatorPW>123qwe</moderatorPW><createTime>1539637228336</createTime><voiceBridge>65684</voiceBridge><dialNumber>613-555-1234</dialNumber><createDate>Mon Oct 15 21:00:28 UTC 2018</createDate><hasUserJoined>false</hasUserJoined><duration>30</duration><hasBeenForciblyEnded>false</hasBeenForciblyEnded><messageKey></messageKey><message></message></response>"

from bigbluebutton-api-php.

IgorDePaula avatar IgorDePaula commented on August 27, 2024

This on bbb installation in docker.

from bigbluebutton-api-php.

IgorDePaula avatar IgorDePaula commented on August 27, 2024

The URL is correct, I create a room, I got records, I watch records, but I only got URL for moderator form room, not url for a common user (not moderator).

If I put

  curl_close($ch);
//var_dump($data);exit;
            return new SimpleXMLElement($data);

On 390-392 lines I received the xml:

~/PhpstormProjects/testesbbb$ php index.php 
string(621) "<response><returncode>SUCCESS</returncode><meetingID>2bd72afec53f45f6ce079060485d23cc</meetingID><internalMeetingID>206e1e604ad0d2a6a196111125a85e654916b4d9-1539637228336</internalMeetingID><parentMeetingID>bbb-none</parentMeetingID><attendeePW>asdqwe</attendeePW><moderatorPW>123qwe</moderatorPW><createTime>1539637228336</createTime><voiceBridge>65684</voiceBridge><dialNumber>613-555-1234</dialNumber><createDate>Mon Oct 15 21:00:28 UTC 2018</createDate><hasUserJoined>false</hasUserJoined><duration>30</duration><hasBeenForciblyEnded>false</hasBeenForciblyEnded><messageKey></messageKey><message></message></response>"

On BigBlueButton\BigBlueButton class (php: "bigbluebutton/bigbluebutton-api-php": "~2.0.0")

from bigbluebutton-api-php.

GhaziTriki avatar GhaziTriki commented on August 27, 2024

@IgorDePaula could you please share the full PHP file that triggers the error you are describing if possible? I would like to test it on my local server and some other servers.

from bigbluebutton-api-php.

IgorDePaula avatar IgorDePaula commented on August 27, 2024

https://gist.github.com/IgorDePaula/1ad33b3708dfd28a384a2dc92d0a0702#file-index-php

All scripts, composers versions, docker command.

from bigbluebutton-api-php.

GhaziTriki avatar GhaziTriki commented on August 27, 2024

Thank you @IgorDePaula, it will help us debug.

from bigbluebutton-api-php.

GhaziTriki avatar GhaziTriki commented on August 27, 2024

Hello @IgorDePaula,

You have two issues in your code :

  1. There is a difference between using getJoinMeetingURL and joinMeeting, for more information please take a look at the docs https://github.com/bigbluebutton/bigbluebutton-api-php/blob/master/INSTALL.md#joining-the-meeting

  2. When you are a creating an instance of JoinMeetingParameters you are using a password that was not used to create the meeting. When you create a meeting using moderator and attendee password, you need to use one of them to join it. Depending on the used password, the system will set the user type.

Please note that isBreakout in CreateMeetingParameters and freeJoin in JoinMeetingParameters are not implemented yet in the PHP API client, so they don't have any effect on your requests.

from bigbluebutton-api-php.

IgorDePaula avatar IgorDePaula commented on August 27, 2024

I create the room, but in any time the system call my password.

Joining the meeting is done in two steps. In the first step we create an instance of CreateMeetingParameters and fill the previously saved $meetingId, then username and role values from POST values.

The third parameter is a role, not password?

I'll try again, with another vision.

Thank you very much.

PS.: isBreakout in CreateMeetingParameters and freeJoin in JoinMeetingParameters in PHP I can create a dynamic property in object, I thnked that was work.

PS.: You can use a magic methods in php for got this parameters dynamically.

from bigbluebutton-api-php.

GhaziTriki avatar GhaziTriki commented on August 27, 2024

then username and role : the role is determined by one of the two passwords used to create the meeting. Reading it like that it is unclear, I will update the docs to make it clear.

And using magic methods will not work here, we are fully relying on object paradigms in the getHTTPQuery function. Take a look here https://github.com/bigbluebutton/bigbluebutton-api-php/blob/master/src/Parameters/CreateMeetingParameters.php#L581

I will update the library to add those missing parameters.

By the way I tested you shared index.php, and by using one the passwords used to create a meeting it worked.

from bigbluebutton-api-php.

IgorDePaula avatar IgorDePaula commented on August 27, 2024

from bigbluebutton-api-php.

IgorDePaula avatar IgorDePaula commented on August 27, 2024

captura de tela de 2018-10-17 12-11-09
Here says password, and not role, like you said.

https://github.com/bigbluebutton/bigbluebutton-api-php/blob/master/src/Parameters/JoinMeetingParameters.php#L88

from bigbluebutton-api-php.

GhaziTriki avatar GhaziTriki commented on August 27, 2024

@IgorDePaula Thank you for pointing to this point. Docs have now been improved to be clearer. Yes the third parameter is $password, the docs are saying this then username and role values from POST values., which means that we are going to read the password from the $passwords using the $HTTP_POST_VARS['role'] key. It should be clear if you read the step before.

I am considering this issue as closed. Please file an issue if you find any other bug.

from bigbluebutton-api-php.

GhaziTriki avatar GhaziTriki commented on August 27, 2024

@IgorDePaula Some thought I need forgot to share previously.

I have seen you are setting this up $create->isBreakout = true; then $meInfo->freeJoin = true;

It is very important to know that both of isBreakout and freeJoin are part of the create API, and both of them are part of the breakout rooms creation process. While freeJoin is optional, isBreakout remains mandatory. In a same way parentMeetingID and sequence are also mandatory when we need to create a breakout room, parentMeetingID needs to match an existing non-breakout meeting and sequence needs to be unique among all children breakout rooms of a same parent meeting.

Their implementation to the PHP API client is coming in next release version 2.0.2.

from bigbluebutton-api-php.

IgorDePaula avatar IgorDePaula commented on August 27, 2024

@IgorDePaula Thank you for pointing to this point. Docs have now been improved to be clearer. Yes the third parameter is $password, the docs are saying this then username and role values from POST values., which means that we are going to read the password from the $passwords using the $HTTP_POST_VARS['role'] key. It should be clear if you read the step before.

I am considering this issue as closed. Please file an issue if you find any other bug.

Sorry, I dono't understand, can you example me?

from bigbluebutton-api-php.

GhaziTriki avatar GhaziTriki commented on August 27, 2024

@IgorDePaula Please check docs, we moved them to https://github.com/bigbluebutton/bigbluebutton-api-php/wiki and to get a better idea about the join please check the official docs http://docs.bigbluebutton.org/dev/api.html#join

I also point you to https://groups.google.com/forum/#!forum/bigbluebutton-dev for discussions around BigBlueButton development and implementation.

from bigbluebutton-api-php.

IgorDePaula avatar IgorDePaula commented on August 27, 2024

from bigbluebutton-api-php.

IgorDePaula avatar IgorDePaula commented on August 27, 2024

I would like suggest use a tleegram group or discord group for a realtime intereactions that email instead.

from bigbluebutton-api-php.

GhaziTriki avatar GhaziTriki commented on August 27, 2024

@IgorDePaula Thank you for your suggestion. Telegram, discord, slack or gitter are good, however with a big community it becomes messy and hard to organise threads. That is what happened for example to neo4j, very recently they finished by creating a community forum.

Please don't hesitate to ask your questions on dev-forums, we will be happy to answer them.

from bigbluebutton-api-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.