@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user