Play song on another device? (Remote Play)

Is it possible to play songs/playlists on another device on the same account of the user. Effectively, remote control. ex: I own a Mac Book and an iPad, my iPad is connected to speakers, I want to stop and start playing music on the iPad using my Mac Book, through APIs.