How to create a pinned music player in notifications

Please don’t post code as plain-text, use code-tags . You can edit your post above to use them too.