Display video stream from IP camera in component?

I assume it’s not too hard to write such a component, but I’d like to have an example.

See my question: Code example for component with custom UI?