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
Specify how media is centered, cropped, and scaled. Fixes #305 #1023
Conversation
LGTM. AFAICR this is what we agreed in Lisbon. |
LGTM. |
webrtc.html
Outdated
the desired size, then finally cropped to the destination | ||
size. The video remains centered while scaling and cropping. For | ||
example, if the source video was 1280 by 720, and the max size | ||
that could be send was 640 by 480, the video would be scaled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sent
webrtc.html
Outdated
@@ -4971,6 +4971,23 @@ <h2 id="sec.cert-mgmt">Certificate Management</h2> | |||
encoded and transmitted to a remote peer. When <code>setParameters</code> | |||
is called on an <code><a>RTCRtpSender</a></code> object, the encoding is | |||
changed appropriately.</p> | |||
|
|||
<p>When sending media, the sender may need to rescale or | |||
resample the media to meet various constraints including the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe s/constraints/requirements/ to avoid confusion with mediacapture constraints?
@fluffy can you take a look at the comments? |
Agree with Jan-ivar, made all his suggested changes. Thanks |
webrtc.html
Outdated
down by 1.5 and 160 columns of pixels on both the right and left | ||
sides of the source video would be cropped off. This algorithm | ||
is designed to minimize occurrence of images with with letter | ||
box or or pillow boxing. The media MUST never be upscaled to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MUST NOT is better than "MUST never".
webrtc.html
Outdated
sides of the source video would be cropped off. This algorithm | ||
is designed to minimize occurrence of images with with letter | ||
box or or pillow boxing. The media MUST never be upscaled to | ||
create fake samples data that was did not actually occur in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grammar, better: "to create fake data that did not occur in the input source."
Made the changes suggested by HTA. Thanks |
Based on discussion at the virtual interim, I believe this PR is ready to merge. |
No description provided.