- <div class="form-group">
- <label i18n>Embed</label>
- <div class="input-group input-group-sm">
- <input #shareInput (click)="shareInput.select()" type="text" class="form-control input-sm readonly" readonly [value]="getVideoIframeCode()" />
- <div class="input-group-append">
- <button [ngxClipboard]="shareInput" (click)="activateCopiedMessage()" type="button" class="btn btn-outline-secondary">
- <span class="glyphicon glyphicon-copy"></span>
- </button>
+ <div class="video">
+ <div class="title-page title-page-single" *ngIf="hasPlaylist()" i18n>Share the video</div>
+
+ <ngb-tabset class="root-tabset bootstrap" (tabChange)="onTabChange($event)">
+
+ <ngb-tab i18n-title title="URL" id="url">
+ <ng-template ngbTabContent>
+
+ <div class="tab-content">
+ <my-input-readonly-copy [value]="getVideoUrl()"></my-input-readonly-copy>
+ </div>
+
+ </ng-template>
+ </ngb-tab>
+
+ <ngb-tab i18n-title title="QR-Code" id="qrcode">
+ <ng-template ngbTabContent>
+ <div class="tab-content">
+ <qrcode [qrdata]="getVideoUrl()" [size]="256" level="Q"></qrcode>
+ </div>
+ </ng-template>
+ </ngb-tab>
+
+ <ngb-tab i18n-title title="Embed" id="embed">
+ <ng-template ngbTabContent>
+ <div class="tab-content">
+ <my-input-readonly-copy [value]="getVideoIframeCode()"></my-input-readonly-copy>
+
+ <div i18n *ngIf="notSecure()" class="alert alert-warning">
+ The url is not secured (no HTTPS), so the embed video won't work on HTTPS websites (web browsers block non secured HTTP requests on HTTPS websites).
+ </div>
+ </div>
+ </ng-template>
+ </ngb-tab>
+
+ </ngb-tabset>
+
+ <div class="filters">
+ <div>
+ <div class="form-group start-at">
+ <my-peertube-checkbox
+ inputName="startAt" [(ngModel)]="customizations.startAtCheckbox"
+ i18n-labelText labelText="Start at"
+ ></my-peertube-checkbox>
+
+ <my-timestamp-input
+ [timestamp]="customizations.startAt"
+ [maxTimestamp]="video.duration"
+ [disabled]="!customizations.startAtCheckbox"
+ [(ngModel)]="customizations.startAt"
+ >
+ </my-timestamp-input>
+ </div>
+
+ <div *ngIf="videoCaptions.length !== 0" class="form-group video-caption-block">
+ <my-peertube-checkbox
+ inputName="subtitleCheckbox" [(ngModel)]="customizations.subtitleCheckbox"
+ i18n-labelText labelText="Auto select subtitle"
+ ></my-peertube-checkbox>
+
+ <div class="peertube-select-container" [ngClass]="{ disabled: !customizations.subtitleCheckbox }">
+ <select [(ngModel)]="customizations.subtitle" [disabled]="!customizations.subtitleCheckbox">
+ <option *ngFor="let caption of videoCaptions" [value]="caption.language.id">{{ caption.language.label }}</option>
+ </select>
+ </div>
+ </div>