opentok / cordova-plugin-opentok

Cordova Plugin for OpenTok - add webrtc video to your iOS or Android App
MIT License
30 stars 80 forks source link

Implement getImgData #123

Closed ggoldens closed 6 years ago

ggoldens commented 6 years ago

Contributing checklist

Solves issue(s)

121

Extra comments:

With this PR we can get a snapshot, encoded in base64, from a publisher or subscriber.

Example of how to get it from the publisher:

publisher.getImgData(function (err, img) {
    // Do something with the img
});

Example of how to get it from the subscriber:

subscriber.getImgData(function (err, img) {
    // Do something with the img
});
msach22 commented 6 years ago

@ggoldens Can you update the PR description to include the subscriber example as well?

ggoldens commented 6 years ago

Sure @msach22! Let me know if you need anything else.