pre-upload slides in new html5 client

899 views
Skip to first unread message

Volker Trotte

unread,
Apr 25, 2019, 9:41:07 AM4/25/19
to BigBlueButton-dev
Hi,
i want to pre-upload slides to a bbb v2.0 server with html5 client.
i added the following to my createUrl:

$xml =urlencode("<?xml version='1.0' encoding='UTF-8'?> <modules> <module name='presentation'> <document url='https://xyz.com/23342_1556192783_sds.pdf' /> </module></modules>")
...

$urlParams = "[...]&xml=".$xml;


The document-url works,when I open it inside chrome, i ghet the pdf.
But within html5 client i dont see the presentation when I enter the meeting as a moderator.
I tried to follow the documentation on: http://docs.bigbluebutton.org/dev/api.html#pre-upload-slides
Maybe this documentation does not suit for the html5 client?

How to pru-uplaod slides to html5 client?

Chad Pilkey

unread,
Apr 25, 2019, 2:00:20 PM4/25/19
to BigBlueButton-dev
The pre-upload process is the same no matter what client you're using. Can you try taking the URL that you're sending and using it with "wget" on the BigBlueButton server just to make sure that it's also accessible there. Could also check the bbb-web logs to see if there's any messages about the upload failing. Also, are you sending the XML as the body of a POST message? The way you call the pre-upload is different from the other API calls that are just GET requests.

Volker Trotte

unread,
May 3, 2019, 7:30:39 AM5/3/19
to BigBlueButton-dev
Hi Chad,
thanks for your answer.
We were able to fix it, we just were not sure if this technique still works in the html client.
key facts:
* use post body message to send xml code
* using curl  to do post, you may change the content type to 'Content-type: text/xml' (we did so)
* currently there is a bbb-side limit of max pages per slide (100). As we use preuploaded pdf, we dertemine page count and return an eroor after upload if page count >100. bbb does not show an error to the user if page count is >100!

now this works great for us 

Chad Pilkey

unread,
May 3, 2019, 10:46:56 AM5/3/19
to BigBlueButton-dev
By default there's a 200 page limit and a 30MB size limit. Both can be increased on the server side if desired.

Patrick Hofmann

unread,
Apr 3, 2020, 12:25:42 PM4/3/20
to BigBlueButton-dev
Hi Folker, how did you fix it? 
I am trying to do the same, but dont understand the process yet completely. 

So i am just sending the xml data with the request to open a room: 

[...]
$xml
= urlencode("<?xml version='1.0' encoding='UTF-8'?> <modules> <module name='presentation'> <document url='https://example.com/testpreupload.pdf' /> </module></modules>");


 $name          
= html_entity_decode( get_the_title( $rid ) );
[...]
 $arr_params    
= array(
[...]

     
'welcome'        => esc_attr( $welcome ),
     
'lockSettingsDisableCam' => $lockSettingsDisableCam,
     
'lockSettingsDisableMic' => $lockSettingsDisableMic,
     
'lockSettingsDisablePrivateChat' => $lockSettingsDisablePrivateChat,
     
'lockSettingsDisablePublicChat' => $lockSettingsDisablePublicChat,
     
'lockSettingsDisableNote' => $lockSettingsDisableNote,
 
'xml' => $xml,
);



So every setting is workin, exept the default presentation is not replaced... do i miss a step? 
Mind regards 
Patrick

sd...@distancelearning.cloud

unread,
Apr 4, 2020, 7:12:32 PM4/4/20
to bigblueb...@googlegroups.com

Are you doing a POST on the create call?   don’t think it works with GET

 

Regards,

Stephen

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bigbluebutton-dev/5294265f-3b22-4425-bc4f-a1b0ae36559c%40googlegroups.com.

Jibon Costa

unread,
Apr 5, 2020, 12:59:28 AM4/5/20
to BigBlueButton-dev
As you are using PHP then I'll recommend you to use official PHP library from here:


It has covered everything.

CG

unread,
Jul 10, 2020, 2:26:52 PM7/10/20
to BigBlueButton-dev
Hello - I'm trying to re-work the code for pre-loading presentations with a url.  I'm trying to follow the instructions at:

I'm not really sure where to put the following....
<modules>
   <module name="presentation">
      <document url="http://www.sample-pdf.com/sample.pdf" filename="report.pdf"/>
      <document name="sample-presentation.pdf">JVBERi0xLjQKJ....
        [clipped here]
        ....0CiUlRU9GCg==
      </document>
   </module>
</modules>

Where is the above supposed to go?
Also, why are the filenames for the pdfs all different in the example above?  sample.pdf vs.report.pdf vs. sample-presentation.pdf

So far, I've looked at the following files:
1. /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties
2. /var/www/bigbluebutton-default/default.pdf




Reply all
Reply to author
Forward
0 new messages