Implemented stream control tracking to toggle visibility based on media type