I have a collection of Videos (path, rating, category, etc.), and a collection of MediaPlayers (Video, in, out, etc.). Each MediaPlayer can load a Video, and set its properties.
I know, the MediaPlayers don’t actually load a Video - just a string. But I struggled on how to keep the integrity of the Video collection, while reading and writing from multiple MediaPlayers to it.
The further I patch, the more I feel as if there could be a smarter way to do this. Is it a good practice to integrate those set- Video functions into the MediaPlayer datatype itself, or should I avoid it?
Hopefully, someone more experienced in OOP can shed some light on how to accomplish this in a slick way.
vlVideoLogic.vl (132.6 KB)