As customers shift from cable TV networks to streaming services, media companies such as Warner Bros Discovery are seizing the opportunity to gain market share and attract advertisers