Mediastore feature

event messageolympe.messages.mediastore.state(state=None, _policy='check_wait', _float_tol=(1e-07, 1e-09))

Mediastore.State

Media store state

Parameters:
  • state (olympe.enums.mediastore.state) – Media store state.
  • _policy (olympe.arsdkng.expectations.ExpectPolicy) – specify how to check the expectation. Possible values are ‘check’, ‘wait’ and ‘check_wait’ (defaults to ‘check_wait’)
  • _float_tol (tuple) – specify the float comparison tolerance, a 2-tuple containing a relative tolerance float value and an absolute tolerate float value (default to (1e-07, 1e-09)). See python 3 stdlib math.isclose documentation for more information

Triggered during the connection and on changes.

event messageolympe.messages.mediastore.counters(video_media_count=None, photo_media_count=None, video_resource_count=None, photo_resource_count=None, _policy='check_wait', _float_tol=(1e-07, 1e-09))

Mediastore.Counters

Information on the media store content. Valid when indexing state is indexed.

Parameters:
  • video_media_count (i32) – Number of video media in the media store, -1 if the store is not indexed.
  • photo_media_count (i32) – Number of photo media in the media store, -1 if the store is not indexed.
  • video_resource_count (i32) – Number of video resources in the media store, -1 if the store is not indexed.
  • photo_resource_count (i32) – Number of photo resources in the media store, -1 if the store is not indexed.
  • _policy (olympe.arsdkng.expectations.ExpectPolicy) – specify how to check the expectation. Possible values are ‘check’, ‘wait’ and ‘check_wait’ (defaults to ‘check_wait’)
  • _float_tol (tuple) – specify the float comparison tolerance, a 2-tuple containing a relative tolerance float value and an absolute tolerate float value (default to (1e-07, 1e-09)). See python 3 stdlib math.isclose documentation for more information

Triggered during the connection and on changes.

enumolympe.enums.mediastore.state
not_available:The media store is not available yet. (0)
indexing:The media store is indexing. (1)
indexed:The media store is indexed and ready to be used. (2)
enumolympe.enums.mediastore.list_flags

Arsdk built-in “list_flags” enum that is used to in “LIST_ITEM” event messages

First: Arsdk built-in “list_flags” enum that is used to in “LIST_ITEM” event messages (0)
Last: Arsdk built-in “list_flags” enum that is used to in “LIST_ITEM” event messages (1)
Empty: Arsdk built-in “list_flags” enum that is used to in “LIST_ITEM” event messages (2)
Remove: Arsdk built-in “list_flags” enum that is used to in “LIST_ITEM” event messages (3)