code: PlayEngine createEngine(ISchedulingService schedulingService, IConsumerService consumerService, IProviderService providerService) {
          engine = new PlayEngine.Builder(this, schedulingService, consumerService, providerService).build();
          // set the max pending video frames to the play engine
          engine.setMaxPendingVideoFrames(maxPendingVideoFrames);
          // set the max sequential pending video frames to the play engine
          engine.setMaxSequentialPendingVideoFrames(maxSequentialPendingVideoFrames);
          return engine;
      }
docs: Creates a play engine based on current services (scheduling service, consumer service, and provider service). This method is useful
  during unit testing.