Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
LibVLCSharp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
76
Issues
76
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
LibVLCSharp
Commits
0e9e6ac8
Commit
0e9e6ac8
authored
Sep 28, 2020
by
Martin Finkel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Samples: Dispose resources in the UWP sample
parent
6798c08e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
samples/LibVLCSharp.UWP.Sample/LibVLCSharp.UWP.Sample.csproj
samples/LibVLCSharp.UWP.Sample/LibVLCSharp.UWP.Sample.csproj
+14
-0
samples/LibVLCSharp.UWP.Sample/MainViewModel.cs
samples/LibVLCSharp.UWP.Sample/MainViewModel.cs
+2
-2
No files found.
samples/LibVLCSharp.UWP.Sample/LibVLCSharp.UWP.Sample.csproj
View file @
0e9e6ac8
...
...
@@ -30,6 +30,7 @@
<UseVSHostingProcess>
false
</UseVSHostingProcess>
<ErrorReport>
prompt
</ErrorReport>
<Prefer32Bit>
true
</Prefer32Bit>
<LangVersion>
8.0
</LangVersion>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Release|x86'"
>
<OutputPath>
bin\x86\Release\
</OutputPath>
...
...
@@ -42,6 +43,7 @@
<ErrorReport>
prompt
</ErrorReport>
<Prefer32Bit>
true
</Prefer32Bit>
<UseDotNetNativeToolchain>
true
</UseDotNetNativeToolchain>
<LangVersion>
8.0
</LangVersion>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Debug|ARM'"
>
<DebugSymbols>
true
</DebugSymbols>
...
...
@@ -53,6 +55,7 @@
<UseVSHostingProcess>
false
</UseVSHostingProcess>
<ErrorReport>
prompt
</ErrorReport>
<Prefer32Bit>
true
</Prefer32Bit>
<LangVersion>
8.0
</LangVersion>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Release|ARM'"
>
<OutputPath>
bin\ARM\Release\
</OutputPath>
...
...
@@ -65,6 +68,7 @@
<ErrorReport>
prompt
</ErrorReport>
<Prefer32Bit>
true
</Prefer32Bit>
<UseDotNetNativeToolchain>
true
</UseDotNetNativeToolchain>
<LangVersion>
8.0
</LangVersion>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Debug|ARM64'"
>
<DebugSymbols>
true
</DebugSymbols>
...
...
@@ -77,6 +81,7 @@
<ErrorReport>
prompt
</ErrorReport>
<Prefer32Bit>
true
</Prefer32Bit>
<UseDotNetNativeToolchain>
true
</UseDotNetNativeToolchain>
<LangVersion>
8.0
</LangVersion>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Release|ARM64'"
>
<OutputPath>
bin\ARM64\Release\
</OutputPath>
...
...
@@ -89,6 +94,7 @@
<ErrorReport>
prompt
</ErrorReport>
<Prefer32Bit>
true
</Prefer32Bit>
<UseDotNetNativeToolchain>
true
</UseDotNetNativeToolchain>
<LangVersion>
8.0
</LangVersion>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Debug|x64'"
>
<DebugSymbols>
true
</DebugSymbols>
...
...
@@ -100,6 +106,7 @@
<UseVSHostingProcess>
false
</UseVSHostingProcess>
<ErrorReport>
prompt
</ErrorReport>
<Prefer32Bit>
true
</Prefer32Bit>
<LangVersion>
8.0
</LangVersion>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Release|x64'"
>
<OutputPath>
bin\x64\Release\
</OutputPath>
...
...
@@ -112,6 +119,7 @@
<ErrorReport>
prompt
</ErrorReport>
<Prefer32Bit>
true
</Prefer32Bit>
<UseDotNetNativeToolchain>
true
</UseDotNetNativeToolchain>
<LangVersion>
8.0
</LangVersion>
</PropertyGroup>
<PropertyGroup>
<RestoreProjectStyle>
PackageReference
</RestoreProjectStyle>
...
...
@@ -173,6 +181,12 @@
<PropertyGroup
Condition=
" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '14.0' "
>
<VisualStudioVersion>
14.0
</VisualStudioVersion>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'"
>
<LangVersion>
8.0
</LangVersion>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Release|AnyCPU'"
>
<LangVersion>
8.0
</LangVersion>
</PropertyGroup>
<Import
Project=
"$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets"
/>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
...
...
samples/LibVLCSharp.UWP.Sample/MainViewModel.cs
View file @
0e9e6ac8
...
...
@@ -61,8 +61,8 @@ namespace LibVLCSharp.UWP.Sample
{
LibVLC
=
new
LibVLC
(
eventArgs
.
SwapChainOptions
);
MediaPlayer
=
new
MediaPlayer
(
LibVLC
);
MediaPlayer
.
Play
(
new
Media
(
LibVLC
,
new
Uri
(
"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
))
);
using
var
media
=
new
Media
(
LibVLC
,
new
Uri
(
"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
));
MediaPlayer
.
Play
(
media
);
}
/// <summary>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment