media.proto 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* media.proto/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro). */
  2. /* This copyright was auto-generated on Mon Nov 4 18:00:55 UTC 2024 */
  3. /***********************************************************************************************************************
  4. *
  5. * This file is automatically generated!!! Do not modify manually.
  6. *
  7. **********************************************************************************************************************/
  8. /**
  9. * Commands to query and manipulate media files
  10. */
  11. syntax = "proto2";
  12. package open_gopro;
  13. import "response_generic.proto";
  14. /**
  15. * Get the last captured media filename
  16. *
  17. * Returns a @ref ResponseLastCapturedMedia
  18. */
  19. message RequestGetLastCapturedMedia {}
  20. /**
  21. * The Last Captured Media
  22. *
  23. * Message is sent in response to a @ref RequestGetLastCapturedMedia.
  24. *
  25. * This contains the relative path of the last captured media starting from the `DCIM` directory on the SDCard. Depending
  26. * on the type of media captured, it will return:
  27. *
  28. * - The single media path for single photo/video media
  29. * - The path to the first captured media in the group for grouped media
  30. */
  31. message ResponseLastCapturedMedia {
  32. optional EnumResultGeneric result = 1; // Was the request successful?
  33. /**
  34. * Last captured media if result is RESULT_SUCCESS. Invalid if result is RESULT_RESOURCE_NOT_AVAILBLE.
  35. */
  36. optional Media media = 2;
  37. }