@@ -20,7 +20,7 @@ export class VlcPlayer {
20
20
21
21
/**
22
22
* Open the VLC media player with an empty playlist. VLC will not take
23
- * over the display until the first media is enqueueed to the playlist.
23
+ * over the display until the first media is added to the playlist.
24
24
*/
25
25
async open ( ) {
26
26
return new Promise ( ( resolve , reject ) => {
@@ -44,9 +44,9 @@ export class VlcPlayer {
44
44
}
45
45
46
46
/**
47
- * Start playing after being paused or enqueue the given file at the end of
48
- * the playlist and start playing it . If the file is already in the
49
- * playlist, jump to that media position in the playlist instead.
47
+ * Start playing after being paused or enqueue the given file at the end
48
+ * of the playlist. If the file is already in the playlist, jump to that
49
+ * media position in the playlist instead.
50
50
*
51
51
* @param {string= } mediaPath - If unspecified, resumes the running video. If a valid media path is specified, start playing that media.
52
52
*/
@@ -56,7 +56,7 @@ export class VlcPlayer {
56
56
}
57
57
else {
58
58
if ( ! this . _playlist . has ( mediaPath ) ) {
59
- await this . enqueue ( mediaPath ) ;
59
+ await this . add ( mediaPath ) ;
60
60
}
61
61
let index = this . _playlist . get ( mediaPath ) ;
62
62
await this . exec ( `goto ${ index } ` ) ;
@@ -71,7 +71,7 @@ export class VlcPlayer {
71
71
}
72
72
73
73
/**
74
- * Enqueue the specified media at the end of the playlist.
74
+ * Add the specified media at the end of the playlist.
75
75
*
76
76
* @param {string } mediaPath The path of the media to play.
77
77
*/
@@ -121,7 +121,7 @@ export class VlcPlayer {
121
121
* @param {string } command - The command to execute.
122
122
*/
123
123
exec ( command ) {
124
- return new Promise ( ( resolve , reject ) => {
124
+ return new Promise ( ( resolve , reject ) => {
125
125
if ( ! command ) {
126
126
return reject ( "The command parameter must be provided." ) ;
127
127
}
0 commit comments