Skip to content

Commit

Permalink
fix stream title in suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
GravityDarkLab committed Feb 2, 2024
1 parent 1f1f7c9 commit bff615d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion lib/views/chat_view/suggested_streams_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class SuggestedStreamsWidget extends StatelessWidget {
final stream = suggestedStreams[index];
return ListTile(
leading: const Icon(Icons.play_circle_outline),
title: Text(stream.name),
title: Text(stream.name != '' ? stream.name : 'Lecture: ${DateFormat('EEEE. dd', Localizations.localeOf(context).toString()).format(stream.start.toDateTime())}'),
subtitle: Text(
DateFormat('dd MMMM yyyy').format(stream.start.toDateTime()),
),
Expand Down
4 changes: 1 addition & 3 deletions lib/views/video_view/video_player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,6 @@ class VideoPlayerPageState extends ConsumerState<VideoPlayerPage> {
break;
}
}
//downloadUrl="https://file-examples.com/storage/fed61549c865b2b5c9768b5/2017/04/file_example_MP4_480_1_5MG.mp4";
// Check if the Combined URL is found
if (downloadUrl == null) {
if (!mounted) return;
ScaffoldMessenger.of(context).showSnackBar(
Expand All @@ -292,7 +290,7 @@ class VideoPlayerPageState extends ConsumerState<VideoPlayerPage> {
}

// Use the extracted URL for downloading
String fileName = "stream.mp4";
String fileName = "${stream.id}.mp4";
if (!mounted) return;
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(content: Text(AppLocalizations.of(context)!.starting_download)),
Expand Down
10 changes: 0 additions & 10 deletions lib/views/video_view/video_player_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,6 @@ class VideoPlayerControllerManager {
),
);
}
if (currentStream.hasPlaylistUrlCAM() &&
currentStream.hasPlaylistUrlPRES()) {
items.add(
OptionItem(
onTap: () => onMenuSelection?.call('Split view', currentStream),
iconData: Icons.vertical_split_sharp,
title: "Split view",
),
);
}
return items;
}

Expand Down

0 comments on commit bff615d

Please sign in to comment.