Archived
1
0
Related Work Items: #183, #185
This commit is contained in:
Michael Gordeev
2018-12-30 12:43:58 +03:00
parent 4958b092a4
commit 475a8947e6
4 changed files with 216 additions and 4 deletions
+6
View File
@@ -73,6 +73,12 @@ namespace FoxTube
catch { return null; }
}
public string GetPlaylist()
{
try { return (videoPlaceholder.Content as VideoPage).playlistId; }
catch { return null; }
}
public void SetTitleBar()
{
var titleBar = ApplicationView.GetForCurrentView().TitleBar;
+8 -4
View File
@@ -46,7 +46,7 @@ namespace FoxTube.Pages
ApplicationDataContainer settings = ApplicationData.Current.LocalSettings;
public string videoId;
string playlistId = null;
public string playlistId = null;
public Video item;
bool wide;
@@ -267,9 +267,13 @@ namespace FoxTube.Pages
liveTimer.Start();
LiveStatsUpdate();
commentsPlaceholder.Header = "Chat";
//TODO: Initialize chat
//TODO: Initialize player
if(string.IsNullOrWhiteSpace(item.LiveStreamingDetails.ActiveLiveChatId))
pivot.Items.Remove(commentsPlaceholder);
else
{
commentsPlaceholder.Header = "Chat";
commentsPlaceholder.Content = new Chat(item.LiveStreamingDetails.ActiveLiveChatId);
}
download.Visibility = Visibility.Collapsed;
}