Entertainment and publishing firms look to trim costs amid streaming losses and ad slowdown