AVPlayStore API
To use Samsung Product API,
<script type="text/javascript" src="$WEBAPIS/webapis/webapis.js"></script>
Should be loaded in index.html
This module defines the multimedia player functionalities provided by the Tizen Samsung TV Product API.
Since : 2.3
Product : TV, AV_BD
Summary of Interfaces and Methods
Interface | Method |
---|---|
AVPlayStoreManagerObject | |
AVPlayStoreManager | AVPlayManagerObject getPlayer(); |
1. Interfaces
1.1. AVPlayStoreManagerObject
Defines a WebApi object instance of the Tizen Samsung TV Product API.
The webapis.avplaystore enables access to AVPlayStore API functionality.
The webapis.avplaystore enables access to AVPlayStore API functionality.
[NoInterfaceObject] interface AVPlayStoreManagerObject {
readonly attribute AVPlayStoreManager avplaystore;
};
WebApi implements AVPlayStoreManagerObject;
Attributes
- readonly AVPlayManager avplay
AVPlayStore API namespace
1.2. AVPlayStoreManager
Provides methods for video playback functionalities.
[NoInterfaceObject] interface AVPlayStoreManager {
AVPlayManagerObject getPlayer();
};
Methods
getPlayer
-
Creates a player instance that can be used for parallel pre-buffering. Up to 4 player instances can exist simultaneously.
AVPlayManagerObject getPlayer();
Return value:
AVPlayManagerObject Created AVPlayManagerObject objectExceptions:
- WebAPIException
-
with error type QUOTA_EXCEEDED_ERR (Max player count reached) if there is insufficient memory to create the instance, or the number of player instances exceeds 4.
-
- WebAPIException
module AVPlayStore {
[NoInterfaceObject] interface AVPlayStoreManagerObject {
readonly attribute AVPlayStoreManager avplaystore;
};
WebApi implements AVPlayStoreManagerObject;
[NoInterfaceObject] interface AVPlayStoreManager {
AVPlayManagerObject getPlayer();
};
};