Apple is in talks with Comcast about teaming up for a streaming-television service that would use an Apple set-top box and get special treatment on Comcast’s cables to ensure it bypasses congestion on the Web, people familiar with the matter say.