-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: type definitions * fix: type definitions * chore: remove jsdocs
- Loading branch information
Showing
4 changed files
with
77 additions
and
609 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
}, | ||
"include": [ | ||
"dist/**/*", | ||
"lib/**/*", | ||
"types/**/*" | ||
], | ||
"exclude": [ | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,29 @@ | ||
/** | ||
* This file is used to validate the type spec. The code is not actually run. | ||
* This file is used to validate the type spec. The code does not actually run. | ||
*/ | ||
|
||
import VideoPlayer, {Options} from './video-player'; | ||
import cloudinary, { videoPlayer, videoPlayerWithProfile, VideoPlayer } from './video-player'; | ||
|
||
const player: VideoPlayer = new VideoPlayer('player', {}, false); | ||
const player: VideoPlayer = cloudinary.videoPlayer('player', {}, () => {}); | ||
|
||
player.source('test', { | ||
sourceTypes: ['mp4/h264'] | ||
}) | ||
sourceTypes: ['mp4/h264'] | ||
}); | ||
player.play(); | ||
player.currentPublicId(); | ||
player.pause() | ||
player.pause(); | ||
|
||
const player2 = new VideoPlayer('player2' , { bigPlayButton: false }, false) | ||
const vPlayer: VideoPlayer = videoPlayer('player', {}); | ||
|
||
const pl = window.cloudinary.videoPlayer('test',{ | ||
cloud_name: 'demo' , | ||
secure: true , | ||
bigPlayButton: true, | ||
controls: false | ||
}); | ||
vPlayer.source('test'); | ||
|
||
async () => { | ||
const profilePlayer = await videoPlayerWithProfile('player', { | ||
constrols: false, | ||
fontFace: 'Merienda' | ||
}); | ||
|
||
interface VideoPlayerWithVideoJs extends VideoPlayer { | ||
videojs: Options; | ||
} | ||
profilePlayer.source({ | ||
publicId: 'elephants', | ||
profile: 'default' | ||
}); | ||
}; |
Oops, something went wrong.