-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unify queue and play method of DetailViewController and ShowInfoViewController #740
Comments
Thank you for your question. It sounds like you are looking to unify the add queue and playback methods in the DetailViewController and ShowInfoViewController controllers into generic methods. To achieve this, you could create a separate class or extension that contains the generic methods for adding items to the playlist queue and starting playback. This class could then be imported and used in both the DetailViewController and ShowInfoViewController classes. Here is an example of what these generic methods might look like:
@implementation MyPlaylistManager
@EnD You could then call these methods from the DetailViewController and ShowInfoViewController classes, passing in the appropriate parameters as needed: `// Example usage in DetailViewController // Example usage in ShowInfoViewController I hope this helps, and let me know if you have any further questions or concerns. |
Good progress with some local changes I already prepared. The solution reworks the |
Should also investigate the same for |
Inside controllers
DetailViewController
andShowInfoViewController
there are methods to add items to the playlist queue and to start playback. Those are very similar and should be unified into generic methods. Methods of interest areDetailViewController:
(void)addQueue:(NSDictionary*) indexPath:(NSIndexPath*) afterCurrentItem:(BOOL)
(void)addPlayback:(NSDictionary*) indexPath:(NSIndexPath*) position:(int) shuffle:(BOOL)
ShowInfoViewController
(void)addQueueAfterCurrent:(BOOL)
(void)addPlayback:(float)
The text was updated successfully, but these errors were encountered: