Introduction
Hello, here is the sample program on how easily you can implement subtitles into your simple movie player. This sample code works with the HashTable, which contains "key" and "value"
As a Key, I used my own class that contains "min" and "max" values, which means a starting frame and an ending frame. The class " Key" also contains overriding of base method " bool Equals(object obj)" The equals method will tell the HashTable that the key can be in some range (for example, 23-43-How are you?) if the current position of film is frame 35, HashTable finds the text " How are you". It's quite a good and simple solution if you're rewinding the film.
Example