This app was mentioned in 2 comments, with an average of 1.00 upvote
Does this help: https://play.google.com/store/apps/details?id=com.shivora.floatingplayer&hl=en_US
?
Not elegant but how about this: https://play.google.com/store/apps/details?id=com.shivora.floatingplayer