ニジカ投稿局 https://tv.nizika.tv
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

126 lines
5.1 KiB

  1. <div class="root" [ngClass]="{ 'theater-enabled': theaterEnabled }" [hidden]="!playlist && !video">
  2. <!-- We need the video container for videojs so we just hide it -->
  3. <div id="video-wrapper">
  4. <div *ngIf="remoteServerDown" class="remote-server-down">
  5. <ng-container i18n>Sorry, but this video did not load because the remote instance did not respond.</ng-container>
  6. <br />
  7. <ng-container i18n>Please try refreshing the page, or try again later.</ng-container>
  8. </div>
  9. <div id="videojs-wrapper">
  10. <video #playerElement class="video-js vjs-peertube-skin" playsinline="true">
  11. <div id="comment-layer">
  12. <canvas id="comment-canvas"></canvas>
  13. </div>
  14. </video>
  15. </div>
  16. <my-video-watch-playlist
  17. #videoWatchPlaylist [playlist]="playlist"
  18. (noVideoFound)="onPlaylistNoVideoFound()" (videoFound)="onPlaylistVideoFound($event)"
  19. ></my-video-watch-playlist>
  20. <my-plugin-placeholder pluginId="player-next"></my-plugin-placeholder>
  21. </div>
  22. <my-video-alert [video]="video" [user]="user" [noPlaylistVideoFound]="noPlaylistVideoFound"></my-video-alert>
  23. <div style="margin: 16px; display: flex">
  24. <button style="flex: 0 0 5%" id="comment-place">位置</button>
  25. <button style="flex: 0 0 5%" id="comment-color">色</button>
  26. <input type="text" style="flex: 0 0 80%; color: black" id="niconico-comment-input" placeholder="コメントを入れるぬ゛ん゛" />
  27. <button style="flex: 0 0 10%" id="niconico-comment-send">送信!</button>
  28. </div>
  29. <!-- Video information -->
  30. <div *ngIf="video" class="margin-content video-bottom">
  31. <div class="video-info">
  32. <div class="video-info-first-row">
  33. <div>
  34. <ng-template #publishedTemplate>
  35. <ng-container i18n>Published <my-date-toggle [date]="video.publishedAt"></my-date-toggle></ng-container>
  36. <my-video-views-counter [video]="video"></my-video-views-counter>
  37. </ng-template>
  38. <div class="d-block d-md-none"> <!-- only shown on medium devices, has its counterpart for larger viewports below -->
  39. <h1 class="video-info-name">{{ video.name }}</h1>
  40. <div class="video-info-date-views">
  41. <ng-template *ngTemplateOutlet="publishedTemplate"></ng-template>
  42. </div>
  43. </div>
  44. <div class="d-flex justify-content-between flex-direction-column">
  45. <div class="d-none d-md-block">
  46. <h1 class="video-info-name">{{ video.name }}</h1>
  47. </div>
  48. <div class="video-info-first-row-bottom">
  49. <div class="d-none d-md-block video-info-date-views">
  50. <ng-template *ngTemplateOutlet="publishedTemplate"></ng-template>
  51. </div>
  52. <my-action-buttons
  53. [video]="video" [videoPassword]="videoPassword" [isUserLoggedIn]="isUserLoggedIn()" [isUserOwner]="isUserOwner()" [videoCaptions]="videoCaptions"
  54. [playlist]="playlist" [currentTime]="getCurrentTime()" [currentPlaylistPosition]="getCurrentPlaylistPosition()"
  55. ></my-action-buttons>
  56. </div>
  57. </div>
  58. <div class="pt-3 border-top video-info-channel d-flex">
  59. <div class="video-info-channel-left d-flex">
  60. <my-video-avatar-channel [video]="video" [showChannel]="!isChannelDisplayNameGeneric()"></my-video-avatar-channel>
  61. <div class="video-info-channel-left-links ms-1">
  62. <ng-container *ngIf="!isChannelDisplayNameGeneric()">
  63. <a [routerLink]="[ '/c', video.byVideoChannel ]" i18n-title title="Channel page">
  64. {{ video.channel.displayName }}
  65. </a>
  66. <a [routerLink]="[ '/a', video.byAccount ]" i18n-title title="Account page">
  67. <span i18n>By {{ video.byAccount }}</span>
  68. </a>
  69. </ng-container>
  70. <ng-container *ngIf="isChannelDisplayNameGeneric()">
  71. <a [routerLink]="[ '/a', video.byAccount ]" class="single-link" i18n-title title="Account page">
  72. <span i18n>{{ video.byAccount }}</span>
  73. </a>
  74. </ng-container>
  75. </div>
  76. </div>
  77. <my-subscribe-button #subscribeButton [videoChannels]="[video.channel]" size="small"></my-subscribe-button>
  78. </div>
  79. </div>
  80. </div>
  81. <my-video-description [video]="video" (timestampClicked)="handleTimestampClicked($event)"></my-video-description>
  82. <my-video-attributes [video]="video"></my-video-attributes>
  83. <my-video-comments
  84. class="border-top"
  85. [video]="video"
  86. [videoPassword]="videoPassword"
  87. [user]="user"
  88. (timestampClicked)="handleTimestampClicked($event)"
  89. ></my-video-comments>
  90. </div>
  91. <my-recommended-videos
  92. [displayAsRow]="displayOtherVideosAsRow()"
  93. [currentVideo]="video"
  94. [playlist]="playlist"
  95. (gotRecommendations)="onRecommendations($event)"
  96. ></my-recommended-videos>
  97. </div>
  98. <my-privacy-concerns *ngIf="video" [video]="video"></my-privacy-concerns>
  99. </div>
  100. <my-player-styles></my-player-styles>