fixed formatting
This commit is contained in:
		
							parent
							
								
									006f4e96de
								
							
						
					
					
						commit
						45e4e1bd86
					
				
					 1 changed files with 6 additions and 7 deletions
				
			
		|  | @ -89,7 +89,7 @@ addPatch({ | ||||||
|             bitrateTarget: 600000 |             bitrateTarget: 600000 | ||||||
|         }); |         }); | ||||||
|         console.log("opts: ", opts); |         console.log("opts: ", opts); | ||||||
|         if(opts?.encode) { |         if (opts?.encode) { | ||||||
|             Object.assign(opts.encode, { |             Object.assign(opts.encode, { | ||||||
|                 framerate, |                 framerate, | ||||||
|                 pixelCount: height * width |                 pixelCount: height * width | ||||||
|  | @ -452,12 +452,12 @@ function ModalComponent({ | ||||||
|                         } |                         } | ||||||
|                         try { |                         try { | ||||||
|                             submit({ |                             submit({ | ||||||
|                                     id: selected!, |                                 id: selected!, | ||||||
|                                     ...settings |                                 ...settings | ||||||
|                                 }); |                             }); | ||||||
| 
 | 
 | ||||||
|                             //reapply contraints after some time to let discord resubmit stream
 |                             // reapply contraints after some time to let discord resubmit stream
 | ||||||
|                             //i believe there MUST be way to do it cleaner..
 |                             // i believe there MUST be way to do it cleaner..
 | ||||||
|                             setTimeout(() => { |                             setTimeout(() => { | ||||||
|                                 console.log(conn); |                                 console.log(conn); | ||||||
|                                 const track = conn.input.stream.getVideoTracks()[0]; |                                 const track = conn.input.stream.getVideoTracks()[0]; | ||||||
|  | @ -477,7 +477,6 @@ function ModalComponent({ | ||||||
|                                     console.log("New constraints:", track.getConstraints()); |                                     console.log("New constraints:", track.getConstraints()); | ||||||
|                                 }); |                                 }); | ||||||
|                             }, 100); |                             }, 100); | ||||||
| 
 |  | ||||||
|                         } catch { |                         } catch { | ||||||
|                             console.log("Unable to start stream."); |                             console.log("Unable to start stream."); | ||||||
|                         } |                         } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 kaitlynkittyy
						kaitlynkittyy