首页 > 解决方案 > 在 bigbluebutton 中预上传幻灯片

问题描述

如何使用 bigbluebutton-js npm 包预上传幻灯片?

 let meetingCreateUrl = await api.administration.create(roomName, roomId, {
    attendeePW: attendeepassword,
    moderatorPW: moderatorpassword,
    record:true,
    allowStartStopRecording:false,
    autoStartRecording:true,
    maxParticipants:200,
 
  })
http(meetingCreateUrl)

标签: javascriptnode.jsbigbluebutton

解决方案


您需要像这样的 XML 将幻灯片添加到您的创建POST请求正文中:

<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>

只需确保您的请求是 Post 并且您需要为 bigbluebutton 服务器设置新配置以接受 Post 请求。

使用这两个链接以获得进一步的帮助:

预上传幻灯片

允许跨域请求


推荐阅读