Work on videoplayer. A lot copied from the cambox. Should use a common base class!