App Streaming Offline mode
App Streaming Measurement Off-line Mode (if supported by your library version)
This chapter describes the basic working of the sensor for the measurement of streaming content in off-line mode.
As soon as the offlineMode is set to true
, the following behavior of the library will change:
Properties of the offline-mode in the library:
- Requests to the measuring system pass through an internal persistent ring buffer.
- The ring buffer can contain up to 500 entries.
- The ring buffer persists even after the Application is closed.
- The rule for the ring buffer is "FIFO": First in, First out.
- If the buffer is full, the oldest request will be replaced.
How the library acts when offline-mode is enabled:
- The device will keep trying to empty the ring buffer by attempting to send requests to the measuring system.
- When there is a connection, the requests seamlessly pass through the ring buffer.
- When there is no connection, the requests will be retained indefinitely.
- Within a single viewing session, only the last request of the session is kept in the ring buffer. This one request contains all the information of the entire viewing session.
How and when to use the offline-mode:
We recommend that you switch on the offline-mode only when downloaded content is being played (regardless if the device has an active and functioning internet connection).