主权项 |
1. A method performed by a server device, the method comprising:
receiving, by the server device, a video stream, wherein the video stream is divided into a sequence of video segments and includes one or more cue messages, and wherein the video stream is being sent to a customer device; receiving, by the server device, a request to insert a message into the video stream; determining, by the server device and independently of the one or more cue messages, a particular video segment after which to insert the message into the video stream, responsive to detecting a scene change between the particular video segment and a next video segment in the sequence of video segments based on histograms of at least one of color or luminance in the particular video segment; pausing, by the server device, the video stream after the particular video segment; inserting, by the server device, the message into the video stream after the particular video segment; sending, by the server device, the message in the video stream to the customer device; and resuming, by the server device, sending of the video stream to the customer device with the next video segment. |