Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement videoWidth & videoHeight <video> properties #25

Closed
ibc opened this issue Jun 26, 2015 · 1 comment
Closed

Implement videoWidth & videoHeight <video> properties #25

ibc opened this issue Jun 26, 2015 · 1 comment

Comments

@ibc
Copy link
Collaborator

ibc commented Jun 26, 2015

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
Copy link
Collaborator Author

ibc commented Jun 26, 2015

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

@ibc ibc closed this as completed in 36cb01f Jun 26, 2015
shanemac10 added a commit to 360labs/cordova-plugin-iosrtc that referenced this issue May 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant