Video Texture Access via WebGL

33 views
Skip to first unread message

alex...@cn2tech.com

unread,
Mar 22, 2017, 10:16:44 AM3/22/17
to Temasys WebRTC Plugin
We currently implement a WebRTC solution that accesses the video node texture using WebGL.
(e.g. GLctx.texImage2D(GLctx.TEXTURE_2D, 0, GLctx.RGBA, GLctx.RGBA, GLctx.UNSIGNED_BYTE, document.getElementById(videoNodeId););)
It appears on the surface that getting access to the underlying texture of the video object used by the Temasys WebRTC object would not be possible.
Can you please confirm this and if so offer any suggestions based on your knowledge of the technology?
Thank you.

Jacques-Olivier Haché

unread,
Mar 22, 2017, 11:55:33 PM3/22/17
to alex...@cn2tech.com, Temasys WebRTC Plugin
Hi,

The rendering is indeed managed entirely by the plugin and isn't really available from the outside world.
The best you can look at is <object>.getFrame(), where <object> is the plugin renderer in the DOM.
getFrame returns the latest frame, in a base64 encoded BMP format.

See the following links on Safari/IE for examples : 

Regards,
J-O

--
You received this message because you are subscribed to the Google Groups "Temasys WebRTC Plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to temasys-discuss-webr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/temasys-discuss-webrtcplugin/27861ebc-db9c-43fb-b360-63a1a2525ce8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

--
Jacques-Olivier HACHÉ
Software Engineer at Temasys Communications Pte Ltd
Sg : +65 9086 3673



This email and any files transmitted with it are for the sole use of the intended recipient and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply email and destroy all copies and the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this email is strictly prohibited and may be unlawful. Thank you for your cooperation.

2016, Temasys (www.temasys.io)
Reply all
Reply to author
Forward
0 new messages