Comments (24)
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.
from bigbluebutton-api-php.
from bigbluebutton-api-php.
I see Uncaught Exception: String could not be parsed as XML in...
. Can you please share the HTML response here?
from bigbluebutton-api-php.
from bigbluebutton-api-php.
Please check your BigBlueButton server URL. I can see the response string empty.
SimpleXMLElement->__construct('')
from bigbluebutton-api-php.
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.
This on bbb installation in docker.
from bigbluebutton-api-php.
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.
@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.
https://gist.github.com/IgorDePaula/1ad33b3708dfd28a384a2dc92d0a0702#file-index-php
All scripts, composers versions, docker command.
from bigbluebutton-api-php.
Thank you @IgorDePaula, it will help us debug.
from bigbluebutton-api-php.
Hello @IgorDePaula,
You have two issues in your code :
-
There is a difference between using
getJoinMeetingURL
andjoinMeeting
, for more information please take a look at the docs https://github.com/bigbluebutton/bigbluebutton-api-php/blob/master/INSTALL.md#joining-the-meeting -
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.
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.
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.
from bigbluebutton-api-php.
Here says password, and not role, like you said.
from bigbluebutton-api-php.
@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.
@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 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 thisthen 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.
@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.
from bigbluebutton-api-php.
I would like suggest use a tleegram group or discord group for a realtime intereactions that email instead.
from bigbluebutton-api-php.
@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)
- [Suggestion] Continue Semantic Versioning and Include a Changelog HOT 1
- Set Role In Joining Meeting API HOT 1
- [3.0/2.2][DEPRECATION] use lockSettingsDisableNotes instead of lockSettingsDisableNote' HOT 8
- GetApiVersion Always return 2.2 version HOT 3
- Add "preUploadedPresentation" and "preUploadedPresentationName" to create
- Add "redirectErrorUrl" to Create API
- Add an enum for the available "userdata"
- Transform code to php81
- Upgrate to phpunit version 10
- Replace Enum dependency by native php enums
- Create new documentation with mdbook
- Find and create a provider to host mdbook
- Create automation [GitHub/new commits for docs] to [mdBook provider]
- Introduce CaptainHook (automated checks prior commit)
- Introduce Document-class
- Make all mandatory attributes of an API-request also mandatory (not nullable!) in the constructor of the Parameter-classes
- Explain in the docs contribution guidelines and the library objectives
- Create release/change log for v3.0
- Request to BigBlueButton 2.7 server to retrieve recordings results in an error with api-php 2.3.0, works with 2.2.0 HOT 7
- Check existence/validity of all URL in the document fixtures.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bigbluebutton-api-php.