Whenever closed captions are displayed, the contrast between the text and the video in the background must be sufficient.
White type with a black closed captions, for example, ensures that it is readable in all contexts.
A background that is opaque or semi-transparent also ensures that the text is easily read.