Patent attributes
According to an example embodiment of the present invention, there is provided a method comprising obtaining a media stream, determining, based on at least two timing cues, a first location in the media stream, wherein the at least two timing cues are comprised in the following list: a metadata signal associated with the media stream, a silent period in the media stream and a predefined content sequence in the media stream, and inserting a predetermined content item into the media stream starting from or ending in the first location, to at least in part replace content originally in the media stream, wherein in case the metadata signal is comprised in the at least two timing cues, the first location occurs at most a threshold length of time before or after receipt of the metadata signal.