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 Product API.
Since : 2.3
Product : TV, AV, B2B
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 Product API.
The webapis.avplaystore enables access to AVPlayStore API functionality.
[NoInterfaceObject] interface AVPlayStoreManagerObject {
readonly attribute AVPlayStoreManager avplaystore;
};
WebApi implements AVPlayStoreManagerObject;
Attributes
- readonly AVPlayStoreManager avplaystore
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 : AVPlayManagerObject Created AVPlayManagerObject object
Exceptions :
- 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.
Code Example :
var playerinstance = webapis.avplaystore.getPlayer();
2. Full WebIDL
module AVPlayStore {
[NoInterfaceObject] interface AVPlayStoreManagerObject {
readonly attribute AVPlayStoreManager avplaystore;
};
WebApi implements AVPlayStoreManagerObject;
[NoInterfaceObject] interface AVPlayStoreManager {
AVPlayManagerObject getPlayer();
};
};