mirror of
https://github.com/opencv/opencv.git
synced 2025-01-24 03:03:12 +08:00
4990336760
Microsoft Media Foundation Camera Sample for Windows RT added.
63 lines
3.0 KiB
XML
63 lines
3.0 KiB
XML
<!--
|
|
//*********************************************************
|
|
//
|
|
// Copyright (c) Microsoft. All rights reserved.
|
|
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
|
|
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
|
|
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
|
|
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
|
|
//
|
|
//*********************************************************
|
|
-->
|
|
|
|
<common:LayoutAwarePage
|
|
x:Class="SDKSample.MediaCapture.AudioCapture"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:local="using:$rootsnamespace$"
|
|
xmlns:common="using:SDKSample.Common"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
mc:Ignorable="d">
|
|
|
|
<Grid x:Name="LayoutRoot" Background="White" HorizontalAlignment="Left" VerticalAlignment="Top">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid x:Name="Input" Grid.Row="0">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock x:Name="InputTextBlock1" TextWrapping="Wrap" Grid.Row="0" Style="{StaticResource BasicTextStyle}" HorizontalAlignment="Left" >
|
|
This scenario shows how to do an audio only capture using the default microphone. Click on StartRecord to start recording.
|
|
</TextBlock>
|
|
<StackPanel Orientation="Horizontal" Margin="0,10,0,0" Grid.Row="1">
|
|
<Button x:Name="btnStartDevice3" Click="btnStartDevice_Click" IsEnabled="true" Margin="0,0,10,0">StartDevice</Button>
|
|
<Button x:Name="btnStartStopRecord3" Click="btnStartStopRecord_Click" IsEnabled="false" Margin="0,0,10,0">StartRecord</Button>
|
|
</StackPanel>
|
|
</Grid>
|
|
|
|
<Grid x:Name="Output" HorizontalAlignment="Left" VerticalAlignment="Top" Grid.Row="1">
|
|
<StackPanel>
|
|
<TextBlock Style="{StaticResource BasicTextStyle}" HorizontalAlignment='Center' VerticalAlignment='Center' TextAlignment='Center' Text='Captured Audio' />
|
|
<Canvas x:Name='playbackCanvas3' Width='320' Height ='240' >
|
|
<MediaElement x:Name='playbackElement3' Width="320" Height="240" Margin="10,5,10,5"/>
|
|
</Canvas>
|
|
</StackPanel>
|
|
</Grid>
|
|
|
|
<!-- Add Storyboards to the visual states below as necessary for supporting the various layouts -->
|
|
<VisualStateManager.VisualStateGroups>
|
|
<VisualStateGroup>
|
|
<VisualState x:Name="FullScreenLandscape"/>
|
|
<VisualState x:Name="Filled"/>
|
|
<VisualState x:Name="FullScreenPortrait"/>
|
|
<VisualState x:Name="Snapped"/>
|
|
</VisualStateGroup>
|
|
</VisualStateManager.VisualStateGroups>
|
|
</Grid>
|
|
|
|
</common:LayoutAwarePage>
|