On both iOS and Android, HTML can play videos and mp3s while the screen is turned off. So maybe it is possible?