NRRecordBehaviour.cs 1.2 KB

12345678910111213141516171819202122232425
  1. /****************************************************************************
  2. * Copyright 2019 Nreal Techonology Limited. All rights reserved.
  3. *
  4. * This file is part of NRSDK.
  5. *
  6. * https://www.nreal.ai/
  7. *
  8. *****************************************************************************/
  9. namespace NRKernal.Record
  10. {
  11. /// <summary>
  12. /// Record video from the MR world. You can record a RGB only, Virtual only or Blended image
  13. /// through this class. </summary>
  14. public class NRRecordBehaviour : CaptureBehaviourBase
  15. {
  16. /// <summary> Sets out put path. </summary>
  17. /// <param name="path"> Full pathname of the file.</param>
  18. public void SetOutPutPath(string path)
  19. {
  20. var encoder = this.GetContext().GetEncoder();
  21. ((VideoEncoder)encoder).EncodeConfig.SetOutPutPath(path);
  22. }
  23. }
  24. }