When the activity is recognized (in the vehicle) it connects to the car's bluetooth and will start the music on spotify (if your music application is not active in the background, it may need additional configuration.
+
When starting YouTube the screen rotation will be activated