Skip to content

Commit 881993e

Browse files
committed
adjust commentout text.
1 parent 393acbc commit 881993e

File tree

1 file changed

+24
-9
lines changed

1 file changed

+24
-9
lines changed

src/js-player-module-brightcove.js

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class PLAYER_MODULE_BRIGHTCOVE {
1414
constructor(options = {}){
1515

1616
// Set Version.
17-
this.VERSION = '2.0.12';
17+
this.VERSION = '2.1.0';
1818

1919
// Use for discrimination by URL.
2020
this.currentUrl = location.href;
@@ -427,6 +427,9 @@ export class PLAYER_MODULE_BRIGHTCOVE {
427427
}
428428
}
429429

430+
/**
431+
* When dragging a seek bar(time).
432+
*/
430433
EventSeekbarTime(){
431434
let _that = this;
432435

@@ -598,20 +601,26 @@ export class PLAYER_MODULE_BRIGHTCOVE {
598601
let _that = this;
599602
if(this.$uiBtnPlay !== null && this.$uiBtnPlay.length !== 0){
600603
if(this.Player.paused()){
601-
// 停止状態の場合
604+
// When the player is stopped.
605+
602606
this.Player.play();
607+
608+
// Add className Play-Button.
603609
if(this.$uiBtnPlay !== null && this.$uiBtnPlay.length !== 0){
604610
for (var i = 0; i < this.$uiBtnPlay.length; ++i) {
605611
this.$uiBtnPlay[i].addClass('active');
606612
}
607613
}
614+
615+
// Add className Pause-Button.
608616
if(this.$uiBtnPause !== null && this.$uiBtnPause.length !== 0){
609617
for (var i = 0; i < this.$uiBtnPause.length; ++i) {
610618
this.$uiBtnPause[i].addClass('active');
611619
}
612620
}
613621
} else {
614-
// 再生状態の場合
622+
// When the player is playing.
623+
615624
_that.Pause();
616625
if(this.$uiBtnPlay !== null && this.$uiBtnPlay.length !== 0){
617626
for (var i = 0; i < this.$uiBtnPlay.length; ++i) {
@@ -634,21 +643,21 @@ export class PLAYER_MODULE_BRIGHTCOVE {
634643
this.Player.pause();
635644
this.Player.currentTime(0);
636645

637-
// 再生中のPLAYボタンのhtml-classを削除
646+
// Remove className Play-Button.
638647
if(this.$uiBtnPlay !== null && this.$uiBtnPlay.length !== 0){
639648
for (var i = 0; i < this.$uiBtnPlay.length; ++i) {
640649
this.$uiBtnPlay[i].removeClass('active');
641650
}
642651
}
643652

644-
// 再生中のPAUSEボタンのhtml-classを削除
653+
// Remove className Pause-Button.
645654
if(this.$uiBtnPause !== null && this.$uiBtnPause.length !== 0){
646655
for (var i = 0; i < this.$uiBtnPause.length; ++i) {
647656
this.$uiBtnPause[i].removeClass('active');
648657
}
649658
}
650659

651-
// メディア変更ボタンのhtml-classを削除
660+
// Remove className MediaChange-Button.
652661
let clickElemAll = Array.prototype.slice.call( document.querySelectorAll('[data-PMB-id]') );
653662
if(clickElemAll){
654663
clickElemAll.forEach(function(elem,i){
@@ -664,21 +673,21 @@ export class PLAYER_MODULE_BRIGHTCOVE {
664673

665674
this.Player.pause();
666675

667-
// 再生中のPLAYボタンのhtml-classを削除
676+
// Remove className Play-Button.
668677
if(this.$uiBtnPlay !== null && this.$uiBtnPlay.length !== 0){
669678
for (var i = 0; i < this.$uiBtnPlay.length; ++i) {
670679
this.$uiBtnPlay[i].removeClass('active');
671680
}
672681
}
673682

674-
// 再生中のPAUSEボタンのhtml-classを削除
683+
// Remove className Pause-Button.
675684
if(this.$uiBtnPause !== null && this.$uiBtnPause.length !== 0){
676685
for (var i = 0; i < this.$uiBtnPause.length; ++i) {
677686
this.$uiBtnPause[i].removeClass('active');
678687
}
679688
}
680689

681-
// メディア変更ボタンのhtml-classを削除
690+
// Remove className MediaChange-Button.
682691
let clickElemAll = Array.prototype.slice.call( document.querySelectorAll('[data-PMB-id]') );
683692
if(clickElemAll){
684693
clickElemAll.forEach(function(elem,i){
@@ -690,6 +699,12 @@ export class PLAYER_MODULE_BRIGHTCOVE {
690699
if(this.on.Pause && typeof(this.on.Pause) === 'function') this.on.Pause();
691700
}
692701

702+
/**
703+
* When Media change.
704+
*
705+
* id | str | media-id.
706+
* callback | function | callback function after changed.
707+
*/
693708
Change(id, callback){
694709
let _that = this;
695710

0 commit comments

Comments
 (0)