Skip to content
Snippets Groups Projects
  1. Feb 19, 2025
  2. Feb 17, 2025
  3. Feb 16, 2025
    • Felix Paul Kühne's avatar
      c8c81a5c
    • Diogo Simao Marques's avatar
      Cosmetics: Fix coding style · 32655e68
      Diogo Simao Marques authored and Felix Paul Kühne's avatar Felix Paul Kühne committed
      The coding style has been reviewed in several files and some chunks
      of code have been simplified.
      32655e68
    • Mohamed Sliem's avatar
      MediaCollectionViewCell: Hide Angled Arrow Imgage For Last Played Playlist · f1d5241a
      Mohamed Sliem authored and Felix Paul Kühne's avatar Felix Paul Kühne committed
      This should hide the angled arrow in playlist cell for only last played
      one. This makes the indicator more cleaner and clearer.
      f1d5241a
    • Mohamed Sliem's avatar
      MediaCategoryViewController: Fix Code Styling · a277f0a8
      Mohamed Sliem authored and Felix Paul Kühne's avatar Felix Paul Kühne committed
      a277f0a8
    • Mohamed Sliem's avatar
      MediaCategoryViewController: Add last played playlist indicator · e8c4309d
      Mohamed Sliem authored and Felix Paul Kühne's avatar Felix Paul Kühne committed
      MediaCategoryViewController: Save currently playing playlist
      
      capture the current playing playlist with cell didSelect action and
      presist the data in user defaults.
      
      MediaCatogoryViewController: Save last played playlist through Gestures
      
      Capture the last played playlist which is selected through long  press
      gestures with  actions of play, append to queue and play next in
      queue when the queue is empty.
      
      Extensions: Added UserDefaults extension for custom types
      
      Added two function for decoding and encoding custom types and save it to
      user defaults
      
      MediaLibrary Models: Added last played Playlist model
      
      Helper model to presist last played  playlist necessary data in user
      defaults
      
      MediaCategoryViewController: Save last played playlist function
      
      Updated function to be able to cache custom type using UserDefaults
      
      Extensions: fixed UserDefaults function naming
      
      rename function name and parameters to fix the issue of recursive call
      of UserDefaults super set function
      
      VLCPlaybackService: Added will stop observer
      
      Addded observer when playback will stop. for catching last played media
      and notify view to reload data for updating the last
      played playlist label
      
      MediaCollectionViewCell:Added Last Played Indicator Label
      
      Take advantage of newLabel and use it in playlist cells to show an
      indicator of the last played playlist. Set a condition for only showing
      the label during only the active playback
      
      VLCPlaybackService: Added New Playabck Observer
      
      Added new playback observer name  for Playback Will Stop State in the header
      file
      
      MediaCollectionViewCell: Fixed Showing LastPlayed Label
      
      Fixed showing last played label when the playback is active and in some
      cases of playlist in player queue
      
      MediaCategoryViewController: Fixed Removing Observer Bug
      
      Handling adding and removing observer in all cases like long tap menu
      actions, and playing a single playlist media when the player is activily
      playing a queue. Handling reloading data in all playing cases
      
      Localization: Added Last played playlist label title
      
      Added English localization for last played label and set it in
      MediaCollectionViewCell class
      
      MovieCollectionViewCell: Adapt last played playlist indicator
      
      MediaCategoryViewController: Fixed Minor coding style violation
      
      removed Debugging Print statements, and fixed else if style
      
      LastPlayedPlaylistModel: Added Last Played Media Model
      
      Added LastPlayedPlaylistMedia to indicate the last played media in a
      given playlist.
      
      MediaCategoryViewController: Saving last played media addition
      
      Refactored saveCurrentPlaylistInfo and added lastPlayedPlaylistMedia
      model to it. This will presist the last played media in playlist and
      updated funcion calls arguments
      
      Added LastPlaylistPlayedMedia Key
      
      VLCPlaybackService: Update PlaybackWillStop Observer user info
      
      get the current playing media before the playback stops and fetch this
      media in VLCMLMedia type. Attached this media to PlaybackWillStop
      userInfo
      
      MediaCategoryViewController: Captured last played media
      
      Using the userInfo posted by PlaybackWillStop observer. presisted the
      media data and its given playlist to indicate the UI to show last played
      one
      
      MediaCategoryViewController: Check the last played media in a given
      playlist
      
      Check for the view model if it the last played playlist. depending on
      the check result, checking for the last played media in this given
      playlist to show it as lastPlayedMedia
      
      MediaCateogoryViewController: Added isLastMedia to check condition
      
      MediaCollectionViewCell: Last played indicator for VLCMLMedia
      
      Added functionality to show last played label in the last played media
      when playback is stopped
      
      MovieCollectionViewCell: Last played label
      
      Added last played label to GroupView to indicate last played playlist in
      Grid mode
      
      MediaCollectionViewCell: Fixed CheckImageView on selection bug
      
      Removed unnecessary statement of hiding CheckImageView in setting last
      played label function
      
      MediaCollectionViewCell: Updated Last played indicator logic
      
      Added the logic to show last played indicator for audio media types
      
      MediaCollectionViewCell: Fixed coding style
      
      MovieCollectionViewCell: Fixed Coding Style
      
      VLCPlaybackService: Limited PlaybackWillStop Observation
      
      Limited Posting a notification for PlaybackWillStop observers to only
      iOS OS
      
      MediaCategoryViewController: Limited Lastplayed media observation
      
      Limited Observing on PlaybackWillStop Observer to iOS only. also limited
      last played playlist indication helper functions
      
      LastPlayedPlaylistModel: Removed unnecessary initializer
      
      Removed Initializer and set model properties to non optional value.
      Moved them to PlaylistModel file
      
      MediaCategoryViewController: LastPlayedPlaylistModel nil-safety
      
      Added optional binding to function that uses LastPlayedPlaylist Model
      
      MediaCategoryViewController: Refactored checking last played playlist cell
      
      Refactored the code responsible for checking last played playlist and
      last played media in a given playlist. removed duplicates.
      
      MediaCategoryViewController: Removed unneeded OS checking
      
      MediaCollectionViewCell: Handled updating newLabel
      
      This should fix showing  of last played text in the newlabel for the New
      Media
      
      MediaCategoryViewController: Refactored observing last played playlist
      logic
      
      Removed Static variable and added observer to handle caching only
      playlist model to indicate the last played one.
      
      VLCConstants: Added CurrentPlaylistQueueIds Key
      
      PlaylistModel: Added CurrentPlaylistQueueInfo model
      
      This helper model is used in currentPlaylistMediasQueue dictionary which
      helps to indicate the last played media correctly for Queue playing
      options.
      
      MediaCategoryViewController: Ability to indicate last played media from
      the queue
      
      This should solve the issue of the last played media indication for a given
      playlist when the queue has different medias from different playlists with the Using of mediaId, playlistId and playlistTitle.
      
      MediaCategoryViewController: Refactor Handling Player Queue Playlist
      
      This should refactor the method used in catching the last playlist from
      the queue when it contains multiple playlists. Solved some code style
      comments.Removed using json encoding and decoding with user defaults.
      
      MediaCategoryViewController: Refactor Handling Player Queue Playlist
      
      This should refactor the method used in catching the last playlist from
      the queue when it contains multiple playlists. Solved some code style
      comments.Removed using json encoding and decoding with user defaults.
      
      MediaCategoryCollectionCells: Refactored Hiding the last played label
      
      This should change the cases of hiding and showing last played label.
      hiding the label when currently playling collection is a playlist,
      otherwise it will be shown.
      
      PlaylistModel: Refactored LastPlayedPlaylistModel to adapt NSCoding
      
      This should enable the encoding and decoding using NSKeyedUnarchiver and NSKeyedarchiver to store it in userDefaults.
      
      PlaybackCacheHelper: Cache the current queue medias playlists
      
      This should cache the media's playlist info played with actions
      [playNextInQueue, appendToQueue].It is a helper for catching the last
      played playlist in a queue with more than one playlist or a different
      medias from different playlists.
      
      MediaCategoryViewController: Changed collectionSelectedIndex variable type
      
      This should change the type of the collectionSelectedIndex to optional IndexPath for more memory saftey
      
      MediaCollectionViewCell: Refactored Last Played functionality
      
      This should refactor the functionality of handling the last played
      label.
      
      MediaCategoryViewController: Save last played when app is terminated
      
      This should add the ability to update the last played value from any
      viewed model.The last logic only updates the value if the view model is
      a playlist or a playlist media collection. Removed the dependancy on
      optional values in last played helper methods.
      e8c4309d
    • Felix Paul Kühne's avatar
    • Felix Paul Kühne's avatar
      db514772
    • Felix Paul Kühne's avatar
    • Mohamed Sliem's avatar
      MediaCategoryViewController: Add Continue Watching Last Media Button · e7940791
      Mohamed Sliem authored and Felix Paul Kühne's avatar Felix Paul Kühne committed
      This introduces a new small feature to enhance the user experience
      when resuming playback of video media content.
      
      Logic:
      * If the user has a viewing history, the button plays the last watched
        media using the history model.
      * In cases where the history is empty or cleared, the button plays the
        first media of the media group, whether it's a single or a collection.
      e7940791
    • Felix Paul Kühne's avatar
      Minor coding style fixes · cdfc7426
      Felix Paul Kühne authored
      cdfc7426
    • Diogo Simao Marques's avatar
      EditActions: Cosmetics: Re-order the file · ec98605d
      Diogo Simao Marques authored and Felix Paul Kühne's avatar Felix Paul Kühne committed
      Private methods are now properly located in the private extension
      and the few useless spaces have been removed.
      ec98605d
    • Diogo Simao Marques's avatar
      Localizable: Adjust the localized strings · 14a461cc
      Diogo Simao Marques authored and Felix Paul Kühne's avatar Felix Paul Kühne committed
      The localized strings previously added are now more relevant to the
      context here.
      14a461cc
    • Mohamed Sliem's avatar
      Fixed duplication of media in the same playlist · 1a813a70
      Mohamed Sliem authored and Felix Paul Kühne's avatar Felix Paul Kühne committed
      Added: status message for playlist media addition action
      
      Fixed StatusLabel constraints
      
      Added localization to playlist action status message
      
      Removed Podfile.lock changes
      
      Fixed: Status message for mediaGroup
      
      Added add media alert
      
      Fixed Presenting Alert Warning
      
      Refactored Alert Functionality and Added Localization
      
      Changed skip alert button style
      
      Updated Adding Existed media logic
      
      Removed useless white spaces
      
      Fixed updating count bug in AddToCollectionView
      
      EditActions: Fixed Coding styles comments
      
      EditActions: Removed Forcing unwrapping from presented view
      
      removed force unwrapping from current presentedView and replace it with
      optional binding
      
      EditActions: Fixed addCollectionViewController dismiss for MediaGroups
      
      Fixed the bug of not dismissing the view when adding new media to
      mediaGroups.
      
      Discard Podfile.lock Changes
      1a813a70
    • Felix Paul Kühne's avatar
      Minor coding style fixes · a668b71a
      Felix Paul Kühne authored
      a668b71a
    • Diogo Simao Marques's avatar
      VideoPlayerViewController: Fix crash when removing cells in the play queue · bfcd095f
      Diogo Simao Marques authored and Felix Paul Kühne's avatar Felix Paul Kühne committed
      Adding the reloadPlayQueue helper fixes the crash after trying to remove a
      cell of play queue in the video player.
      bfcd095f
    • Diogo Simao Marques's avatar
      PlayerViewController: Add the reloadPlayQueue helper · 15df4f9d
      Diogo Simao Marques authored and Felix Paul Kühne's avatar Felix Paul Kühne committed
      The reloadPlayQueue helper is added in the PlayerViewController instead
      of the AudioPlayerViewController as its action can be abstracted.
      15df4f9d
    • Diogo Simao Marques's avatar
      QueueViewController: Fix a recurrent crash issue when removing · 6a71c96a
      Diogo Simao Marques authored and Felix Paul Kühne's avatar Felix Paul Kühne committed
      Avoid deleting the selected cell in both the data source and the
      collection view in order to avoid any mismatch with the definitive
      output.
      
      Only the data source is impacted and therefore updates the the collection
      view.
      6a71c96a
    • Diogo Simao Marques's avatar
      QueueViewController: Remove the playback stop hack · 0747227a
      Diogo Simao Marques authored and Felix Paul Kühne's avatar Felix Paul Kühne committed
      The playback service already stops the playback accordingly with the repeat
      mode selected when the last item is ended or being skipped.
      0747227a
    • Mohamed Sliem's avatar
      QueueViewController: Refactor Removing Media From the Queue · b1222d11
      Mohamed Sliem authored and Felix Paul Kühne's avatar Felix Paul Kühne committed
      Replace Playing media at a specific index with the playbackService removeMediaFromMediaList method.
      Handle removing the last media in some repeat modes to avoid UI Crashes
      or CollectionView Updates Exception.
      b1222d11
    • Mohamed Sliem's avatar
      AudioPlayerViewController: Add reloadPlayQueue Delegate Method · 9001b79b
      Mohamed Sliem authored and Felix Paul Kühne's avatar Felix Paul Kühne committed
      This Fixes the Nil Exception that happens when using playbackService removeMediaFromMediaList in QueueViewController.
      Removing media from player queue when AudioPlayerViewController is
      opened will work by this delegate function.
      9001b79b
    • Mohamed Sliem's avatar
      QueueController: Remove delete media from the queue button delegate · aa11bb16
      Mohamed Sliem authored and Felix Paul Kühne's avatar Felix Paul Kühne committed
      aa11bb16
Loading