NaCl Player API
NaCl Player API Documentation
url_data_source.h File Reference
#include <functional>
#include <memory>
#include <string>
#include "nacl_player/media_common.h"
#include "nacl_player/media_data_source.h"
Include dependency graph for url_data_source.h:

Go to the source code of this file.

Classes

class  Samsung::NaClPlayer::URLDataSource
 

Detailed Description

This file defines the URLDataSource type, which represents a data source which can feed media clip data from a provided URL.

Part of NaCl Media Player interfaces (Samsung's extension).

Methods in this class are available in synchronous and asynchronous variant. Both versions perform the same action, the only difference is how results of those actions are reported to the caller. Asynchronous method propagates this result by a provided additional parameter callback function.

Common constraints:

  1. Synchronous methods can't be called from the main thread.
  2. Asynchronous methods must be called from a thread with attached MessageLoop, which is required to report a result via provided callback in the same thread as the call itself.

Definition in file url_data_source.h.