add to queue working properly
This commit is contained in:
parent
4c60fd95d5
commit
8b49afb0f3
@ -168,7 +168,8 @@ namespace KaraokePlayer.Classes
|
|||||||
{
|
{
|
||||||
var response = _client.Get(CurrentSongPath);
|
var response = _client.Get(CurrentSongPath);
|
||||||
var item = response.ResultAs<QueueItem>();
|
var item = response.ResultAs<QueueItem>();
|
||||||
if (item != null)
|
if (item == null) return;
|
||||||
|
if (CurrentSong == null || CurrentSong.Path != item.Song.Path)
|
||||||
{
|
{
|
||||||
CurrentSong = item.Song;
|
CurrentSong = item.Song;
|
||||||
_songChanged(new ControllerSongChangedEventArgs(item.Song));
|
_songChanged(new ControllerSongChangedEventArgs(item.Song));
|
||||||
|
|||||||
@ -46,8 +46,8 @@
|
|||||||
<HintPath>..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.Desktop.dll</HintPath>
|
<HintPath>..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.Desktop.dll</HintPath>
|
||||||
<Private>True</Private>
|
<Private>True</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll</HintPath>
|
<HintPath>..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||||
<Private>True</Private>
|
<Private>True</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
@ -76,6 +76,7 @@
|
|||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<None Include="app.config" />
|
||||||
<None Include="packages.config" />
|
<None Include="packages.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
11
FirebaseKaraoke/app.config
Normal file
11
FirebaseKaraoke/app.config
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<configuration>
|
||||||
|
<runtime>
|
||||||
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
|
||||||
|
</dependentAssembly>
|
||||||
|
</assemblyBinding>
|
||||||
|
</runtime>
|
||||||
|
</configuration>
|
||||||
@ -5,5 +5,5 @@
|
|||||||
<package id="Microsoft.Bcl.Async" version="1.0.168" targetFramework="net452" />
|
<package id="Microsoft.Bcl.Async" version="1.0.168" targetFramework="net452" />
|
||||||
<package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="net452" />
|
<package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="net452" />
|
||||||
<package id="Microsoft.Net.Http" version="2.2.28" targetFramework="net452" />
|
<package id="Microsoft.Net.Http" version="2.2.28" targetFramework="net452" />
|
||||||
<package id="Newtonsoft.Json" version="6.0.4" targetFramework="net452" />
|
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net452" />
|
||||||
</packages>
|
</packages>
|
||||||
@ -6,9 +6,9 @@
|
|||||||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
||||||
</configSections>
|
</configSections>
|
||||||
<appSettings>
|
<appSettings>
|
||||||
<add key="Firebase.Secret" value="9BQHUEJhScgK2FP10hvlToxTlGQpXT94Cvx01piO"/>
|
<add key="Firebase.Secret" value="9BQHUEJhScgK2FP10hvlToxTlGQpXT94Cvx01piO" />
|
||||||
<add key="Firebase.Path" value="https://herse.firebaseio.com/"/>
|
<add key="Firebase.Path" value="https://herse.firebaseio.com/" />
|
||||||
<add key="KaraokePlayer.ControllerId" value="archer1"/>
|
<add key="KaraokePlayer.ControllerId" value="archer1" />
|
||||||
</appSettings>
|
</appSettings>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
|
||||||
@ -27,7 +27,7 @@
|
|||||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
<dependentAssembly>
|
<dependentAssembly>
|
||||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
||||||
<bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0" />
|
<bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
|
||||||
</dependentAssembly>
|
</dependentAssembly>
|
||||||
</assemblyBinding>
|
</assemblyBinding>
|
||||||
</runtime>
|
</runtime>
|
||||||
|
|||||||
@ -73,8 +73,8 @@
|
|||||||
<HintPath>..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.Desktop.dll</HintPath>
|
<HintPath>..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.Desktop.dll</HintPath>
|
||||||
<Private>True</Private>
|
<Private>True</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\Newtonsoft.Json.7.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
|
<HintPath>..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||||
<Private>True</Private>
|
<Private>True</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
|
|||||||
@ -6,5 +6,5 @@
|
|||||||
<package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="net46" />
|
<package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="net46" />
|
||||||
<package id="Microsoft.Bcl.Compression" version="3.9.85" targetFramework="net46" />
|
<package id="Microsoft.Bcl.Compression" version="3.9.85" targetFramework="net46" />
|
||||||
<package id="Microsoft.Net.Http" version="2.2.29" targetFramework="net46" />
|
<package id="Microsoft.Net.Http" version="2.2.29" targetFramework="net46" />
|
||||||
<package id="Newtonsoft.Json" version="7.0.1" targetFramework="net46" />
|
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net46" />
|
||||||
</packages>
|
</packages>
|
||||||
Loading…
Reference in New Issue
Block a user