cordova-rtc/cordova-plugin-iosrtc

Implement videoWidth & videoHeight <video> properties

ibc opened this issue · 1 comments

ibc commented

This hack may work:

  • When the video src is a MediaStream:
Object.defineProperty(video, 'videoWidth', {
  configurable:true,  // Needed for later removal.
  get: function () { return XXXX; }
});
  • When the video src is not a MediaStream:
delete video.videoWidth
ibc commented

May the same be done for video.readyState? Let's try.