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

Missing properties of Media Tracks #17

Open
ahmetceylan opened this issue May 2, 2019 · 3 comments
Open

Missing properties of Media Tracks #17

ahmetceylan opened this issue May 2, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@ahmetceylan
Copy link

Which platform(s) does your issue occur on?

  • iOS/Android/Both

Please, tell us how to recreate the issue in as much detail as possible.

Describe the steps to reproduce it.

Can you please implement following properties of media track objects;

  • video tracks;
    ** aspectRatio
    ** facingMode
    ** frameRate
    ** height
    ** width

  • audio tracks;
    ** volume

and also, it would be good to have an event that is firing when the aspect ratio is changed

@ahmetceylan ahmetceylan changed the title Missing properties of Video Tracks Missing properties of Media Tracks May 2, 2019
@triniwiz triniwiz added the enhancement New feature or request label May 3, 2019
@triniwiz
Copy link
Owner

video tracks

  • aspectRatio
  • facingMode
  • frameRate
  • height
  • width

audio tracks

  • volume

feat: 43d69a8

@abhayastudios
Copy link
Contributor

abhayastudios commented Jun 15, 2020

@triniwiz so in alpha22, what is the best way to get access to the aspect ratio of the local video stream? For example, in the main page of the ng-demo-firestore I am showing a preview of the local video stream, where I set the width to screen.mainScreen.widthDIPs/4. However, I want to set the height to something that respects the aspectRatio, so how do I get the relative height?

In the context of these lines, I tried to do the following: console.dir(mediaStream.videoTracks[0].settings);

On Android I got the following output:

JS: ==== object dump start ====
JS: _mediaTrackSettings: co.fitcom.fancywebrtc.FancyRTCMediaTrackSettings@c70e655
JS: width: "640"
JS: height: "480"
JS: frameRate: "30000"
JS: aspectRatio: "1"
JS: facingMode: "user"
JS: ==== object dump end ====

Some questions:

Thanks!

@triniwiz
Copy link
Owner

  1. Milliseconds value (we could try returning seconds)
  2. This should be showing the correct ratio because (noticed I commented this
  3. Might be related to no.2 but those are the default values of non was specified when get usermedia was called also it would check if the device does support that size or get the closest supported size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants