{"action":"created","issue":{"url":"https://api.github.com/repos/oney/react-native-webrtc/issues/498","repository_url":"https://api.github.com/repos/oney/react-native-webrtc","labels_url":"https://api.github.com/repos/oney/react-native-webrtc/issues/498/labels{/name}","comments_url":"https://api.github.com/repos/oney/react-native-webrtc/issues/498/comments","events_url":"https://api.github.com/repos/oney/react-native-webrtc/issues/498/events","html_url":"https://github.com/oney/react-native-webrtc/issues/498","id":351773453,"node_id":"MDU6SXNzdWUzNTE3NzM0NTM=","number":498,"title":"max dimensions are resulting in no video","user":{"login":"Vijay-mRoads","id":35997249,"node_id":"MDQ6VXNlcjM1OTk3MjQ5","avatar_url":"https://avatars0.githubusercontent.com/u/35997249?v=4","gravatar_id":"","url":"https://api.github.com/users/Vijay-mRoads","html_url":"https://github.com/Vijay-mRoads","followers_url":"https://api.github.com/users/Vijay-mRoads/followers","following_url":"https://api.github.com/users/Vijay-mRoads/following{/other_user}","gists_url":"https://api.github.com/users/Vijay-mRoads/gists{/gist_id}","starred_url":"https://api.github.com/users/Vijay-mRoads/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vijay-mRoads/subscriptions","organizations_url":"https://api.github.com/users/Vijay-mRoads/orgs","repos_url":"https://api.github.com/users/Vijay-mRoads/repos","events_url":"https://api.github.com/users/Vijay-mRoads/events{/privacy}","received_events_url":"https://api.github.com/users/Vijay-mRoads/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-18T00:24:17Z","updated_at":"2018-08-24T03:39:42Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nIf you want to report a bug, you are in the right place!\r\n\r\nPlease include as much information as possible and make the issue title\r\nas descriptive as you can.\r\n-->\r\n\r\n#### Expected behavior\r\nVideo should be displayed when I set **maxWidth** and **maxHeight**\r\n\r\n#### Observerd behavior\r\nVideo is not getting displayed unless I remove **maxWidth** and **maxHeight**\r\n\r\n#### Steps to reproduce the problem\r\n\r\nPass constraints \r\n\r\n{\r\n\tvideo: {\r\n\t\tmandatory: {\r\n\t\t\tmaxWidth: 320,\r\n\t\t\tmaxHeight: 240,\r\n\t\t\tmaxFrameRate: 20\r\n\t\t},\r\n\t\tfacingMode: 'user',\r\n\t},\r\n\taudio: true\r\n}\r\n\r\n\r\ndisplay stream on a RTCView\r\n\r\n#### Platform information\r\n\r\n* **React Native version**:0.56.0\r\n* **Plugin version**:1.67.0\r\n* **OS**: iOS \r\n* **OS version**:10.3.3\r\n"},"comment":{"url":"https://api.github.com/repos/oney/react-native-webrtc/issues/comments/415641732","html_url":"https://github.com/oney/react-native-webrtc/issues/498#issuecomment-415641732","issue_url":"https://api.github.com/repos/oney/react-native-webrtc/issues/498","id":415641732,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTY0MTczMg==","user":{"login":"Vijay-mRoads","id":35997249,"node_id":"MDQ6VXNlcjM1OTk3MjQ5","avatar_url":"https://avatars0.githubusercontent.com/u/35997249?v=4","gravatar_id":"","url":"https://api.github.com/users/Vijay-mRoads","html_url":"https://github.com/Vijay-mRoads","followers_url":"https://api.github.com/users/Vijay-mRoads/followers","following_url":"https://api.github.com/users/Vijay-mRoads/following{/other_user}","gists_url":"https://api.github.com/users/Vijay-mRoads/gists{/gist_id}","starred_url":"https://api.github.com/users/Vijay-mRoads/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vijay-mRoads/subscriptions","organizations_url":"https://api.github.com/users/Vijay-mRoads/orgs","repos_url":"https://api.github.com/users/Vijay-mRoads/repos","events_url":"https://api.github.com/users/Vijay-mRoads/events{/privacy}","received_events_url":"https://api.github.com/users/Vijay-mRoads/received_events","type":"User","site_admin":false},"created_at":"2018-08-24T03:39:42Z","updated_at":"2018-08-24T03:39:42Z","author_association":"NONE","body":"I found the solution for my issue. It seems there are default values for minHeight and minWidth which are higher than maxWidth and minWidth.\r\nLike the below\r\n`\r\n{\r\n    facingMode = user;\r\n    mandatory =     {\r\n        maxFrameRate = 20;\r\n        maxHeight = 240;\r\n        maxWidth = 320;\r\n        minFrameRate = 30;\r\n        minHeight = 720;\r\n        minWidth = 1280;\r\n    };\r\n    optional =     (\r\n    );\r\n}\r\n`\r\n\r\nsetting minHeight and minWidth  to zero or value below got me rolling again. I think the library should validate these and pop errors instead of giving empty video.\r\n\r\nThanks @saghul  and @zxcpoiu  for your replies.\r\n"}}
{"actor":{"display_login":"Vijay-mRoads"}}