diff --git a/examples/archive/main.go b/examples/archive/main.go index 967d4c2..52de5e2 100644 --- a/examples/archive/main.go +++ b/examples/archive/main.go @@ -43,7 +43,7 @@ func main() { mediaStream, err := mediadevices.GetUserMedia(mediadevices.MediaStreamConstraints{ Video: func(c *mediadevices.MediaTrackConstraints) { - c.FrameFormat = prop.FrameFormat(frame.FormatYUY2) + c.FrameFormat = prop.FrameFormat(frame.FormatI420) c.Width = prop.Int(640) c.Height = prop.Int(480) }, diff --git a/examples/facedetection/main.go b/examples/facedetection/main.go index 8ed6976..22fb1ad 100644 --- a/examples/facedetection/main.go +++ b/examples/facedetection/main.go @@ -77,7 +77,7 @@ func main() { mediaStream, err := mediadevices.GetUserMedia(mediadevices.MediaStreamConstraints{ Video: func(c *mediadevices.MediaTrackConstraints) { - c.FrameFormat = prop.FrameFormatExact(frame.FormatUYVY) + c.FrameFormat = prop.FrameFormatExact(frame.FormatI420) c.Width = prop.Int(640) c.Height = prop.Int(480) }, diff --git a/examples/rtp/main.go b/examples/rtp/main.go index ca0c2fa..9667d32 100644 --- a/examples/rtp/main.go +++ b/examples/rtp/main.go @@ -41,7 +41,7 @@ func main() { mediaStream, err := mediadevices.GetUserMedia(mediadevices.MediaStreamConstraints{ Video: func(c *mediadevices.MediaTrackConstraints) { - c.FrameFormat = prop.FrameFormat(frame.FormatYUY2) + c.FrameFormat = prop.FrameFormat(frame.FormatI420) c.Width = prop.Int(640) c.Height = prop.Int(480) }, diff --git a/examples/webrtc/main.go b/examples/webrtc/main.go index f36402d..364e3f2 100644 --- a/examples/webrtc/main.go +++ b/examples/webrtc/main.go @@ -71,7 +71,7 @@ func main() { s, err := mediadevices.GetUserMedia(mediadevices.MediaStreamConstraints{ Video: func(c *mediadevices.MediaTrackConstraints) { - c.FrameFormat = prop.FrameFormat(frame.FormatYUY2) + c.FrameFormat = prop.FrameFormat(frame.FormatI420) c.Width = prop.Int(640) c.Height = prop.Int(480) },