MLB games and more are streamed through MLB Advanced Media. Reuters What do Major League Baseball, wrestling's WWE Network, Glenn Beck's TheBlaze TV, and HBO's new streaming service all have in common?

The video for all of these services is handled out of an old cookie factory on the west side of Manhattan.

MLB Advanced Media, also known as MLBAM, is Major League Baseball's technology division. It was started in 2005 to run the websites of MLB teams, but it's since morphed into a huge provider of digital services for many other companies.

MLBAM delivers the live video for Sony's new live TV service, PlayStation Vue, as well as for streaming services from the PGA and ESPN.

The company also develops games and apps.

On Tuesday, MLBAM said it had reached an agreement with the NHL to broadcast out-of-market hockey games. According to the Wall Street Journal, the MLB has plans to spin off the division into a separate company.

Tech Insider visited MLBAM's growing office in Manhattan's Chelsea neighborhood to see how it all works earlier this summer.

Check it out: