diff --git a/lib/views/chat_view/suggested_streams_list.dart b/lib/views/chat_view/suggested_streams_list.dart index 4f4891a..bf1af32 100644 --- a/lib/views/chat_view/suggested_streams_list.dart +++ b/lib/views/chat_view/suggested_streams_list.dart @@ -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()), ), diff --git a/lib/views/video_view/video_player.dart b/lib/views/video_view/video_player.dart index 7efea07..e9b005b 100644 --- a/lib/views/video_view/video_player.dart +++ b/lib/views/video_view/video_player.dart @@ -280,8 +280,6 @@ class VideoPlayerPageState extends ConsumerState { 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( @@ -292,7 +290,7 @@ class VideoPlayerPageState extends ConsumerState { } // 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)), diff --git a/lib/views/video_view/video_player_controller.dart b/lib/views/video_view/video_player_controller.dart index 94cf302..da5a54d 100644 --- a/lib/views/video_view/video_player_controller.dart +++ b/lib/views/video_view/video_player_controller.dart @@ -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; }