As more video-streaming services flood the market, professional sports leagues are finding themselves in an increasingly precarious situations, because they're not included in the packages. At this week's Allen & Co. conference in Sun Valley, Idaho, some of the top sports executives gathered to discuss the future of sports.

We spoke to the commissioners of the NBA and NFL to discuss what they're doing to keep fans engaged and add new ones.

"We recognize that we're competing against every other possible form of entertainment and nice weather or anything else we could be doing and watching our games," NBA Commissioner Adam Silver told CNBC. "What can we do to make those games more of a lean-in experience? Providing statistics during the games, providing more information about the players, providing new camera angles, new ways to predict to produce them, augmented reality. And we're experimenting in virtual reality."

NFL Commissioner Roger Goodell says technology can be crucial for getting fans into stadiums — starting with managing ticket sales — and ensuring they like the experience. Some of that technology is as simple as giving fans the same access to media as they'd have at home.

"Simply having Wi-Fi so that they can access their own devices when they come into the stadium," is key, Goodell said. "They can use that technology to buy a jersey, to buy concessions, to find out the best way to enter into the stadium, or exit the stadium, what the traffic patterns are, what's going on around the league."