import { VideoService } from '../../shared/video/video.service'
import { VideoFilter } from '../../../../../shared/models/videos/video-query.type'
import { I18n } from '@ngx-translate/i18n-polyfill'
+import { ScreenService } from '@app/shared/misc/screen.service'
@Component({
selector: 'my-videos-local',
protected notificationsService: NotificationsService,
protected authService: AuthService,
protected location: Location,
- private videoService: VideoService,
- private i18n: I18n
+ protected i18n: I18n,
+ protected screenService: ScreenService,
+ private videoService: VideoService
) {
super()
getVideosObservable (page: number) {
const newPagination = immutableAssign(this.pagination, { currentPage: page })
- return this.videoService.getVideos(newPagination, this.sort, this.filter)
+ return this.videoService.getVideos(newPagination, this.sort, this.filter, this.categoryOneOf)
}
generateSyndicationList () {
- this.syndicationItems = this.videoService.getVideoFeedUrls(this.sort, this.filter)
+ this.syndicationItems = this.videoService.getVideoFeedUrls(this.sort, this.filter, this.categoryOneOf)
}
}