Skip to content

Commit

Permalink
feat: add play with Docchula Player (#31)
Browse files Browse the repository at this point in the history
Co-authored-by: Siwat T. <[email protected]>
  • Loading branch information
ittipatken and keenthekeen authored Oct 26, 2024
1 parent 79745d7 commit 993a1d9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/app/home/course/course.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,21 @@
<ion-text color="medium">
<p>
{{ currentVideo.title }} - {{ currentVideo.lecturer }}<br/>
<span class="ion-hide-md-down">
<strong>Hotkeys</strong>&emsp; Space: Pause, ▲/▼: Volume, ◄/►: Seek, F: Fullscreen |
</span>
<ion-button (click)="setPlaybackSpeed()" (keyup)="setPlaybackSpeed()" fill="outline" size="small" tabindex="0" class="set-playback-speed-button">Set playback speed</ion-button>
<span>
| <a [href]="sanitize('//player.docchula.com/?url='+currentVideo.sourceExternal)" rel="noreferrer" target="_blank">
Play with Docchula Player</a>
</span>
<span *ngIf="isAndroid && currentVideo.sourceExternal">
| <a [href]="sanitize('intent:'+currentVideo.sourceExternal+'#Intent;S.title='+encodeURIComponent(currentVideo.title)+';package=com.mxtech.videoplayer.ad;end')" rel="noreferrer">Play with MX Player</a>
</span>
<span *ngIf="(isIos || isAndroid) && currentVideo.sourceExternal">
| <a [href]="sanitize('vlc://'+currentVideo.sourceExternal)" rel="noreferrer">Play with VLC</a>
</span>
</p>
<p class="ion-hide-md-down small-text">
<strong>Hotkeys</strong>&emsp;&ensp; Space: Pause, ▲/▼: Volume, ◄/►: Seek, F: Fullscreen
</p>
</ion-text>
<ion-card *ngIf="currentVideo.sources.length === 0" color="warning">
<ion-card-header>
Expand Down

0 comments on commit 993a1d9

Please sign in to comment.