Disney-backed streaming TV platform BAMTech may be losing HBO as a customer, The Post has learned.

The premium pay-TV channel is looking to exit its contract sometime next year, sources said.

Disney owns a third of BAMTech, but is widely expected to become a much bigger shareholder.

Officially, the contract still has another year to go, though the change could be prompted by the fact that HBO is owned by Time Warner, which is in the process of being acquired by telecom AT&T.

Sources say HBO has also been investing in developing its own in-house streaming capabilities.

The TV network, known for hit shows such as “Game of Thrones” and John Oliver’s “Last Week Tonight,” currently operates on a handful of back-end streaming platforms around the globe and is looking to consolidate its business, one insider told The Post.

In April, customers, who pay $14.99 a month for HBO Now deluged HBO when they got an error message instead of the season six premiere of “Game of Thrones.”

HBO Now is sold separately from a pay-TV subscription. Customers buying HBO through cable companies can access HBO Go, its online service.

HBO countered that it is very happy with BAMTech’s service.