9. The method of claim 1 , further comprising: extracting, by the processor, a video identification from the first video embedded in a second resource of the one or more second resources; comparing, by the processor, the video identification with a corresponding video identification of the first video displayed at the first resource; and when the video identification matches the corresponding video identification, serving the responsive content segment.
1. A method implemented on a processor for providing content segments to a first resource having a first video, the method comprising: systematically browsing, using the processor, one or more second resources hosting a plurality of online documents, the one or more second resources unaffiliated with the first resource; identifying, using the processor, the first video embedded in an online document of the plurality of online documents; extracting, using the processor, contextual information from the online document; generating, using the processor, a set of criteria based on the extracted contextual information; receiving, by the processor from the first resource, a request for a content segment; selecting, using the processor, a responsive content segment based on the set of criteria; and providing, using the processor to the first resource, the responsive content segment to be displayed with the first video.