Comments (10)
@brootle Hi. First, make sure your input device supports that resolution. You can test different values here.
And please note that the browser will get the ideal resolution from the input device if there is no matching constraint.
Please refer here.
In addition, please let us know which browser and OS you are testing.
Thanks.
from ovenlivekit-web.
@SangwonOh well, yes, I tested at https://ovenplayer.com/demo_input.html and on client side it takes 1280x720 no problem. I am on Google Chrome Version 98.0.4758.102 (Official Build) (64-bit) and Win10.
I tested at https://webrtc.github.io/samples/src/content/peerconnection/constraints/
{
"audio": true,
"video": {
"width": {
"min": "300",
"max": "4096"
},
"height": {
"min": "200",
"max": "2160"
}
}
}
And got this result Video dimensions: 1280x720px
So I am thinking maybe there could be something wrong on oven media engine side. I will doublecheck everything again and post if I find a solution
from ovenlivekit-web.
@brootle It's very difficult to select a value, but how is the Video dimensions
with below settings at https://webrtc.github.io/samples/src/content/peerconnection/constraints/?
This is to determine if this is an OvenMediaEngine-side issue or something else..
{
"audio": true,
"video": {
"width": {
"min": "720",
"max": "720"
},
"height": {
"min": "1280",
"max": "1280"
}
}
}
from ovenlivekit-web.
Yes, it gave me getUserMedia error: OverconstrainedError This may mean invalid constraints.
error
and OvenLiveKit-Web also gave me same error when I tried to get media using minimal example needed to get client media, so what does it mean?
constraint: "height"
message: ""
name: "OverconstrainedError"
PS these settings below work fine to get 720x1280, I am logging getVideoTracks settings from stream on client side
from ovenlivekit-web.
@brootle Experientially, OverconstrainedError
occurred when the webcam did not support the resolution.
Because the minimum and maximum values of the width and height were set to the same value, the browser requested media to the webcam with the exact values set, and it failed because the webcam did not support the resolution.
Looking at the HD attached to the webcam name, it looks like the webcam can go up to 1080.
And the last log screenshot you posted seems to have a height of 1080 :).
from ovenlivekit-web.
@SangwonOh yes, these settings worked on client side
{
"audio": true,
"video": {
"width": {
"min": "1280",
"max": "1280"
},
"height": {
"min": "720",
"max": "720"
}
}
}
and it also works if I put exact parameters video: { width: 1280, height: 720 }
so not sure what might go wrong when it hits media engine, all looks green in client logs for peer and socket connection
When I am testing at https://webrtc.github.io/samples/src/content/peerconnection/constraints/
The connected on the right starts with min resolution and eventually goes up.
from ovenlivekit-web.
so not sure what might go wrong when it hits media engine, all looks green in client logs for peer and socket connection
What specifically is the problem? WebRTC input succeeded, but having problems playing through OvenMediaEngine?
Did you set up the WebRTC input properly?
from ovenlivekit-web.
@SangwonOh thanks! yeah, this was a problem with settings on engine side, something related to "prevent upscaling", I wasn't the guy setting up the engine, so had no idea about it 😀
from ovenlivekit-web.
@SangwonOh I have one more question, when peer connections is established and I am streaming, basically when ICE State [connected] event happened, how using client side ovenLivekit instance to view peer connection details, specifically the actual resolution of the stream that server is getting from my side?
from ovenlivekit-web.
@brootle Hi. The ovenLivekit instance has a peerConnection
property. Thanks!
from ovenlivekit-web.
Related Issues (13)
- Delay in Start the Streaming of Screen Share HOT 3
- Screen sharing? HOT 5
- Need to access audio streaming DOM to build a mute button HOT 11
- Deprecated
- Is it possible to set the maximum framerate? HOT 1
- Support for Attaching External MediaStreams
- Critical issue on iOS 15.1 HOT 9
- Problem with getDevices function HOT 2
- connectionClosed callback doesn't work if stream is stopped from client side HOT 5
- Webrtc push stream minimum bit rate HOT 1
- How I can enable/disable the microphone/camera without restarting the stream? HOT 1
- Can push screen to OME like getDisplayMedia() using OvenLiveKit? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ovenlivekit-web.