It'll have about as much success as the law that says no cycling on pavements.
Who's going to enforce it? People who play their slop videos and music out loud on public transport aren't the most considerate people to start with. They're not going to care.