#35440Remove Code Duplication in tslib_content_Media
Description
tslib_content_media has much code duplication for retrieving data from TS and overlaying it with flexForm values, as well as resolving the correct path/url for each file. Both are extracted to external functions and called at all places.
As a step before reintegrating original flvplayer for playing youtube and other external media again, the class should be cleaned up for better experience.