- Fixed MediaPlayer constructor

- Fixed project description
- Added some tests to MediaPlayer
This commit is contained in:
Ricardo Sabino
2014-11-23 21:29:52 -05:00
parent dfc062e919
commit 7a39fc2f40
2 changed files with 26 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
///<reference path="playerframework.d.ts" />
var el = document.createElement("div");
var player = new PlayerFramework.MediaPlayer(el);
player.decreasePlaybackRate();
player.increasePlaybackRate();
player.load();
player.pause();
player.play();
player.playResume();
player.replay();
player.retry();
player.stop();
player.volume = 50;
var duration = player.duration;
var volume = player.volume;
var audioAllowed = player.isAudioAllowed
var audioEnabled = player.isAudioEnabled;
var audioVisible = player.isAudioVisible;
var captionsAllowed = player.isCaptionsAllowed
var captionsEnabled = player.isCaptionsEnabled;
var captionsVisible = player.isCaptionsVisible;

View File

@@ -1,5 +1,5 @@
// Type definitions for Player Framework (MMPPF)
// Project: https://github.com/ricardosabino/DefinitelyTyped
// Project: https://playerframework.codeplex.com/
// Definitions by: Ricardo Sabino <https://github.com/ricardosabino>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
@@ -1078,6 +1078,7 @@ declare module PlayerFramework {
*
**/
class MediaPlayer {
constructor(element: HTMLElement, options?: any);
/**
* Gets or sets the current advertising state of the player.
**/