-
Notifications
You must be signed in to change notification settings - Fork 32
quick ios cam video fix + gitignore #280
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
Changes from all commits
fba761a
df46b79
3a6a7d9
6ec5955
edd29fe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -263,14 +263,18 @@ private void CreateContent() | |
| CornerRadius = 8, | ||
| UseCache = SkiaCacheType.Image | ||
| } | ||
| .OnTapped(me => { CameraControl.SwitchVisualizer(); }) | ||
| .OnTapped(me => | ||
| { | ||
| CameraControl.SwitchVisualizer(); | ||
| }) | ||
| .ObserveProperty(CameraControl, nameof(CameraControl.VisualizerName), me => | ||
| { | ||
| me.Text = $"Vis: {CameraControl.VisualizerName}"; | ||
| me.Text = $"{CameraControl.VisualizerName}"; | ||
| }) | ||
| .ObserveProperty(CameraControl, nameof(CameraControl.CaptureMode), me => | ||
| { | ||
| me.IsVisible = CameraControl.CaptureMode == CaptureModeType.Video; | ||
| CameraControl.SwitchVisualizer(0); | ||
| //me.IsVisible = CameraControl.CaptureMode == CaptureModeType.Video; | ||
| }), | ||
|
Comment on lines
274
to
278
|
||
|
|
||
| // Take Picture button (only visible in Still mode) | ||
|
|
||
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.
SwitchVisualizercan set_visualizerIndexto 7 (it increments through 0..8) but theswitchhas nocase 7and nodefault. In that situation_audioVisualizerremains pointing to the old instance, butoldis still disposed at the end of the method, leaving_audioVisualizerreferencing a disposed object (subsequentAddSample/Rendercalls may fail or behave incorrectly). Add acase 7(or change the wrap limit) and/or add adefaultthat assigns a new visualizer/null before disposing the old one.