-
- private buildQuotaHelpIndication () {
- if (this.initialUserVideoQuota === -1) return
-
- const initialUserVideoQuotaBit = this.initialUserVideoQuota * 8
-
- // 1080p: ~ 6Mbps
- // 720p: ~ 4Mbps
- // 360p: ~ 1.5Mbps
- const fullHdSeconds = initialUserVideoQuotaBit / (6 * 1000 * 1000)
- const hdSeconds = initialUserVideoQuotaBit / (4 * 1000 * 1000)
- const normalSeconds = initialUserVideoQuotaBit / (1.5 * 1000 * 1000)
-
- const lines = [
- this.i18n('{{ seconds }} of full HD videos', { seconds: SignupComponent.getApproximateTime(fullHdSeconds) }),
- this.i18n('{{ seconds }} of HD videos', { seconds: SignupComponent.getApproximateTime(hdSeconds) }),
- this.i18n('{{ seconds }} of average quality videos', { seconds: SignupComponent.getApproximateTime(normalSeconds) })
- ]
-
- this.quotaHelpIndication = lines.join('<br />')
- }