Improve the inefficient pre roll feature. PMS to play pre roll BEFORE starting the transcoder

Hello,

I have been playing around with pre roll feature and I found it quite inefficient.
When starting a movie, PMS attempts to play the requested movie, checks whether it should play pre roll first, if true it does play the pre roll and then it plays the requested movie.

This results in turning the transcoder on 3 times, for the movie before the pre roll which is then stopped, for the pre roll and finally for the movie.

Even worse if a notification agent in monitoring software such as Tautulli is turned on for playback. Notifications can become very spammy since it notifies 3 times. I already reported this in tautulli’s github even though I believe the implementation should be improved in PMS and not in Tautulli.

Thanks.

This STILL Doesn’t work! Movie starts about 3 seconds into the movie it cuts out for Pre-Roll Cmon fix this! Pre-roll should start first! not 3 seconds into the movie!