0

I want to stream pdf, ppt, image file from publisher to all subscriber using tokbox api. Is it possible to do that ?

if any one know about it please share your knowledge .

Thanks

Jake
  • 103
  • 6
  • Show us your code, state a problem you have with said code. – pokeybit Jun 16 '18 at 12:35
  • I do not have any code, i just want to know the mechanism to do as mentioned . @pokeybit do you know about it ? then please share what you know . – Jake Jun 16 '18 at 12:57
  • I know that you're going to need some code before you ask a 'coding' question here. I think google may have the answer you are looking for. – pokeybit Jun 16 '18 at 13:01
  • My question is not about the coding, it's about mechanism or methodology and i did not write single line of code until i am clear about the things. – Jake Jun 16 '18 at 13:33

2 Answers2

2

Another option is if you can get the pdf, ppt or image onto an HTML Canvas then you can stream a Canvas into an OpenTok Session. https://github.com/opentok/opentok-web-samples/tree/master/Publish-Canvas

This is easy to do with an image, you can use the drawImage() method.

It looks like it's also possible to do with a PDF with pdf.js: How to load Pdf file on Canvas as a image.src?

Adam Ullman
  • 1,517
  • 7
  • 12
0

You can use screensharing:

https://tokbox.com/developer/guides/screen-sharing/js/

It allows you to share a whole screen, or just an application window.