@hed-hog/lms 0.0.350 → 0.0.351
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/certificate/certificate.controller.d.ts +2 -2
- package/dist/certificate/certificate.controller.d.ts.map +1 -1
- package/dist/certificate/certificate.controller.js +8 -6
- package/dist/certificate/certificate.controller.js.map +1 -1
- package/dist/certificate/certificate.service.d.ts +5 -2
- package/dist/certificate/certificate.service.d.ts.map +1 -1
- package/dist/certificate/certificate.service.js +70 -6
- package/dist/certificate/certificate.service.js.map +1 -1
- package/dist/course/course-structure.controller.d.ts +24 -10
- package/dist/course/course-structure.controller.d.ts.map +1 -1
- package/dist/course/course-structure.controller.js +23 -2
- package/dist/course/course-structure.controller.js.map +1 -1
- package/dist/course/course-structure.service.d.ts +16 -8
- package/dist/course/course-structure.service.d.ts.map +1 -1
- package/dist/course/course-structure.service.js +61 -30
- package/dist/course/course-structure.service.js.map +1 -1
- package/dist/course/course-video-conversion.service.d.ts +37 -0
- package/dist/course/course-video-conversion.service.d.ts.map +1 -0
- package/dist/course/course-video-conversion.service.js +308 -0
- package/dist/course/course-video-conversion.service.js.map +1 -0
- package/dist/course/course.controller.d.ts +17 -0
- package/dist/course/course.controller.d.ts.map +1 -1
- package/dist/course/course.controller.js +23 -0
- package/dist/course/course.controller.js.map +1 -1
- package/dist/course/course.module.d.ts.map +1 -1
- package/dist/course/course.module.js +15 -2
- package/dist/course/course.module.js.map +1 -1
- package/dist/course/course.service.d.ts +15 -0
- package/dist/course/course.service.d.ts.map +1 -1
- package/dist/course/course.service.js +103 -49
- package/dist/course/course.service.js.map +1 -1
- package/dist/course/dto/create-course-structure-lesson.dto.d.ts +5 -1
- package/dist/course/dto/create-course-structure-lesson.dto.d.ts.map +1 -1
- package/dist/course/dto/create-course-structure-lesson.dto.js +16 -2
- package/dist/course/dto/create-course-structure-lesson.dto.js.map +1 -1
- package/dist/course/dto/create-course.dto.d.ts +1 -0
- package/dist/course/dto/create-course.dto.d.ts.map +1 -1
- package/dist/course/dto/create-course.dto.js +9 -0
- package/dist/course/dto/create-course.dto.js.map +1 -1
- package/dist/enterprise/enterprise.controller.d.ts +3 -3
- package/dist/enterprise/enterprise.controller.d.ts.map +1 -1
- package/dist/enterprise/enterprise.controller.js +0 -1
- package/dist/enterprise/enterprise.controller.js.map +1 -1
- package/dist/enterprise/enterprise.service.d.ts +3 -3
- package/dist/evaluation/evaluation.service.d.ts.map +1 -1
- package/dist/evaluation/evaluation.service.js +9 -2
- package/dist/evaluation/evaluation.service.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/lms.module.d.ts.map +1 -1
- package/dist/lms.module.js +3 -0
- package/dist/lms.module.js.map +1 -1
- package/dist/video-resolution-profile/dto/create-video-resolution-profile.dto.d.ts +6 -0
- package/dist/video-resolution-profile/dto/create-video-resolution-profile.dto.d.ts.map +1 -0
- package/dist/video-resolution-profile/dto/create-video-resolution-profile.dto.js +33 -0
- package/dist/video-resolution-profile/dto/create-video-resolution-profile.dto.js.map +1 -0
- package/dist/video-resolution-profile/dto/update-video-resolution-profile.dto.d.ts +6 -0
- package/dist/video-resolution-profile/dto/update-video-resolution-profile.dto.d.ts.map +1 -0
- package/dist/video-resolution-profile/dto/update-video-resolution-profile.dto.js +33 -0
- package/dist/video-resolution-profile/dto/update-video-resolution-profile.dto.js.map +1 -0
- package/dist/video-resolution-profile/video-resolution-profile.controller.d.ts +38 -0
- package/dist/video-resolution-profile/video-resolution-profile.controller.d.ts.map +1 -0
- package/dist/video-resolution-profile/video-resolution-profile.controller.js +89 -0
- package/dist/video-resolution-profile/video-resolution-profile.controller.js.map +1 -0
- package/dist/video-resolution-profile/video-resolution-profile.mcp-tools.d.ts +26 -0
- package/dist/video-resolution-profile/video-resolution-profile.mcp-tools.d.ts.map +1 -0
- package/dist/video-resolution-profile/video-resolution-profile.mcp-tools.js +160 -0
- package/dist/video-resolution-profile/video-resolution-profile.mcp-tools.js.map +1 -0
- package/dist/video-resolution-profile/video-resolution-profile.module.d.ts +3 -0
- package/dist/video-resolution-profile/video-resolution-profile.module.d.ts.map +1 -0
- package/dist/video-resolution-profile/video-resolution-profile.module.js +26 -0
- package/dist/video-resolution-profile/video-resolution-profile.module.js.map +1 -0
- package/dist/video-resolution-profile/video-resolution-profile.service.d.ts +45 -0
- package/dist/video-resolution-profile/video-resolution-profile.service.d.ts.map +1 -0
- package/dist/video-resolution-profile/video-resolution-profile.service.js +117 -0
- package/dist/video-resolution-profile/video-resolution-profile.service.js.map +1 -0
- package/hedhog/data/menu.yaml +17 -0
- package/hedhog/data/route.yaml +133 -0
- package/hedhog/data/video_resolution_profile.yaml +7 -0
- package/hedhog/frontend/app/_components/class-form-sheet.tsx.ejs +269 -324
- package/hedhog/frontend/app/_components/course-form-sheet.tsx.ejs +124 -70
- package/hedhog/frontend/app/_components/create-lms-instructor-sheet.tsx.ejs +7 -4
- package/hedhog/frontend/app/_components/create-lms-person-sheet.tsx.ejs +2 -2
- package/hedhog/frontend/app/_components/create-lms-student-person-sheet.tsx.ejs +2 -2
- package/hedhog/frontend/app/_lib/editor/templateSerializer.ts.ejs +34 -4
- package/hedhog/frontend/app/_lib/editor/types.ts.ejs +28 -3
- package/hedhog/frontend/app/achievements/page.tsx.ejs +9 -3
- package/hedhog/frontend/app/bitcodes/page.tsx.ejs +9 -3
- package/hedhog/frontend/app/certificates/issued/page.tsx.ejs +7 -3
- package/hedhog/frontend/app/certificates/models/CanvasStage.tsx.ejs +29 -8
- package/hedhog/frontend/app/certificates/models/LeftPanel.tsx.ejs +14 -0
- package/hedhog/frontend/app/certificates/models/RightPanel.tsx.ejs +194 -9
- package/hedhog/frontend/app/certificates/models/page.tsx.ejs +15 -5
- package/hedhog/frontend/app/classes/[id]/page.tsx.ejs +9 -5
- package/hedhog/frontend/app/classes/page.tsx.ejs +73 -47
- package/hedhog/frontend/app/courses/[id]/_components/CourseCertificateCard.tsx.ejs +19 -9
- package/hedhog/frontend/app/courses/[id]/_components/CourseClassificationCard.tsx.ejs +24 -1
- package/hedhog/frontend/app/courses/[id]/_components/CourseContentCard.tsx.ejs +1 -1
- package/hedhog/frontend/app/courses/[id]/_components/CourseMainInfoCard.tsx.ejs +1 -1
- package/hedhog/frontend/app/courses/[id]/_components/CourseRelationsCard.tsx.ejs +28 -16
- package/hedhog/frontend/app/courses/[id]/_components/CourseSectionCard.tsx.ejs +11 -6
- package/hedhog/frontend/app/courses/[id]/_components/CourseSummaryCard.tsx.ejs +7 -4
- package/hedhog/frontend/app/courses/[id]/_components/course-edit-types.ts.ejs +1 -0
- package/hedhog/frontend/app/courses/[id]/page.tsx.ejs +24 -87
- package/hedhog/frontend/app/courses/[id]/structure/_components/editor-course.tsx.ejs +892 -411
- package/hedhog/frontend/app/courses/[id]/structure/_components/editor-lesson.tsx.ejs +1004 -293
- package/hedhog/frontend/app/courses/[id]/structure/_components/editor-session.tsx.ejs +11 -11
- package/hedhog/frontend/app/courses/[id]/structure/_components/shortcuts-help.tsx.ejs +62 -52
- package/hedhog/frontend/app/courses/[id]/structure/_components/types.ts.ejs +2 -0
- package/hedhog/frontend/app/courses/[id]/structure/_data/adapters/course-structure.adapter.ts.ejs +19 -6
- package/hedhog/frontend/app/courses/[id]/structure/_data/services/course-structure.service.ts.ejs +86 -1
- package/hedhog/frontend/app/courses/[id]/structure/_data/types/api-course.types.ts.ejs +3 -0
- package/hedhog/frontend/app/courses/[id]/structure/_data/use-course-structure-mutations.ts.ejs +1 -0
- package/hedhog/frontend/app/courses/page.tsx.ejs +112 -89
- package/hedhog/frontend/app/enterprise/[id]/page.tsx.ejs +1 -1
- package/hedhog/frontend/app/enterprise/_components/enterprise-admin-create-sheet.tsx.ejs +10 -3
- package/hedhog/frontend/app/enterprise/_components/enterprise-detail-sheet.tsx.ejs +8 -4
- package/hedhog/frontend/app/enterprise/_components/enterprise-person-edit-sheet.tsx.ejs +2 -2
- package/hedhog/frontend/app/enterprise/_components/enterprise-sheet.tsx.ejs +10 -4
- package/hedhog/frontend/app/enterprise/_components/enterprise-student-create-sheet.tsx.ejs +10 -3
- package/hedhog/frontend/app/enterprise/_components/enterprise-user-create-sheet.tsx.ejs +10 -3
- package/hedhog/frontend/app/evaluations/_components/evaluation-topic-form-sheet.tsx.ejs +10 -3
- package/hedhog/frontend/app/exams/[id]/questions/page.tsx.ejs +23 -9
- package/hedhog/frontend/app/exams/page.tsx.ejs +14 -6
- package/hedhog/frontend/app/instructor-skills/page.tsx.ejs +9 -3
- package/hedhog/frontend/app/instructors/_components/instructor-form-sheet.tsx.ejs +190 -17
- package/hedhog/frontend/app/layout.tsx.ejs +5 -1
- package/hedhog/frontend/app/paths/page.tsx.ejs +13 -5
- package/hedhog/frontend/app/reports/evaluations/page.tsx.ejs +10 -10
- package/hedhog/frontend/app/training/page.tsx.ejs +13 -5
- package/hedhog/frontend/app/video-resolution-profiles/page.tsx.ejs +607 -0
- package/hedhog/frontend/messages/en.json +250 -9
- package/hedhog/frontend/messages/pt.json +250 -9
- package/hedhog/table/course.yaml +4 -0
- package/hedhog/table/course_lesson_file.yaml +8 -0
- package/hedhog/table/course_video_resolution_profile.yaml +22 -0
- package/hedhog/table/video_resolution_profile.yaml +18 -0
- package/package.json +7 -6
- package/src/certificate/certificate.controller.ts +19 -14
- package/src/certificate/certificate.service.ts +106 -11
- package/src/course/course-structure.controller.ts +24 -2
- package/src/course/course-structure.service.ts +21 -4
- package/src/course/course-video-conversion.service.ts +415 -0
- package/src/course/course.controller.ts +18 -0
- package/src/course/course.module.ts +15 -2
- package/src/course/course.service.ts +72 -2
- package/src/course/dto/create-course-structure-lesson.dto.ts +13 -2
- package/src/course/dto/create-course.dto.ts +8 -0
- package/src/enterprise/enterprise.controller.ts +0 -1
- package/src/evaluation/evaluation.service.ts +9 -2
- package/src/index.ts +1 -0
- package/src/lms.module.ts +3 -0
- package/src/video-resolution-profile/dto/create-video-resolution-profile.dto.ts +16 -0
- package/src/video-resolution-profile/dto/update-video-resolution-profile.dto.ts +16 -0
- package/src/video-resolution-profile/video-resolution-profile.controller.ts +62 -0
- package/src/video-resolution-profile/video-resolution-profile.mcp-tools.ts +128 -0
- package/src/video-resolution-profile/video-resolution-profile.module.ts +13 -0
- package/src/video-resolution-profile/video-resolution-profile.service.ts +117 -0
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
12
|
+
var t = {};
|
|
13
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
14
|
+
t[p] = s[p];
|
|
15
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
16
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
17
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
18
|
+
t[p[i]] = s[p[i]];
|
|
19
|
+
}
|
|
20
|
+
return t;
|
|
21
|
+
};
|
|
22
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
+
exports.VideoResolutionProfileMcpTools = void 0;
|
|
24
|
+
const core_1 = require("@hed-hog/core");
|
|
25
|
+
const common_1 = require("@nestjs/common");
|
|
26
|
+
const create_video_resolution_profile_dto_1 = require("./dto/create-video-resolution-profile.dto");
|
|
27
|
+
const video_resolution_profile_service_1 = require("./video-resolution-profile.service");
|
|
28
|
+
let VideoResolutionProfileMcpTools = class VideoResolutionProfileMcpTools {
|
|
29
|
+
constructor(videoResolutionProfileService) {
|
|
30
|
+
this.videoResolutionProfileService = videoResolutionProfileService;
|
|
31
|
+
}
|
|
32
|
+
async listProfiles(args, _context) {
|
|
33
|
+
return this.videoResolutionProfileService.list(args);
|
|
34
|
+
}
|
|
35
|
+
async listActiveProfiles(_args, _context) {
|
|
36
|
+
return this.videoResolutionProfileService.getAll();
|
|
37
|
+
}
|
|
38
|
+
async createProfile(args, _context) {
|
|
39
|
+
return this.videoResolutionProfileService.create(args);
|
|
40
|
+
}
|
|
41
|
+
async updateProfile(args, _context) {
|
|
42
|
+
const { id } = args, dto = __rest(args, ["id"]);
|
|
43
|
+
return this.videoResolutionProfileService.update(id, dto);
|
|
44
|
+
}
|
|
45
|
+
async deleteProfile(args, _context) {
|
|
46
|
+
return this.videoResolutionProfileService.delete(args.id);
|
|
47
|
+
}
|
|
48
|
+
async toggleProfileStatus(args, _context) {
|
|
49
|
+
const { id, status } = args;
|
|
50
|
+
return this.videoResolutionProfileService.update(id, { status });
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
exports.VideoResolutionProfileMcpTools = VideoResolutionProfileMcpTools;
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, core_1.McpTool)({
|
|
56
|
+
name: 'lms.video-resolution-profiles.list',
|
|
57
|
+
description: 'Lists video resolution profiles with optional pagination and search.',
|
|
58
|
+
inputSchema: {
|
|
59
|
+
type: 'object',
|
|
60
|
+
properties: {
|
|
61
|
+
page: { type: 'number', description: 'Page number (default: 1)' },
|
|
62
|
+
pageSize: { type: 'number', description: 'Items per page (default: 20)' },
|
|
63
|
+
search: { type: 'string', description: 'Search term by profile name' },
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
readOnly: true,
|
|
67
|
+
}),
|
|
68
|
+
__metadata("design:type", Function),
|
|
69
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
70
|
+
__metadata("design:returntype", Promise)
|
|
71
|
+
], VideoResolutionProfileMcpTools.prototype, "listProfiles", null);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, core_1.McpTool)({
|
|
74
|
+
name: 'lms.video-resolution-profiles.list-active',
|
|
75
|
+
description: 'Lists all active video resolution profiles.',
|
|
76
|
+
inputSchema: {
|
|
77
|
+
type: 'object',
|
|
78
|
+
properties: {},
|
|
79
|
+
},
|
|
80
|
+
readOnly: true,
|
|
81
|
+
}),
|
|
82
|
+
__metadata("design:type", Function),
|
|
83
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
84
|
+
__metadata("design:returntype", Promise)
|
|
85
|
+
], VideoResolutionProfileMcpTools.prototype, "listActiveProfiles", null);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, core_1.McpTool)({
|
|
88
|
+
name: 'lms.video-resolution-profiles.create',
|
|
89
|
+
description: 'Creates a new video resolution profile.',
|
|
90
|
+
inputSchema: {
|
|
91
|
+
type: 'object',
|
|
92
|
+
properties: {
|
|
93
|
+
name: { type: 'string', description: 'Profile name (required, max 100 chars)' },
|
|
94
|
+
ffmpeg_params: { type: 'string', description: 'FFmpeg params string (required)' },
|
|
95
|
+
status: { type: 'string', description: 'Status (active|inactive)' },
|
|
96
|
+
},
|
|
97
|
+
required: ['name', 'ffmpeg_params'],
|
|
98
|
+
},
|
|
99
|
+
}),
|
|
100
|
+
__metadata("design:type", Function),
|
|
101
|
+
__metadata("design:paramtypes", [create_video_resolution_profile_dto_1.CreateVideoResolutionProfileDto, Object]),
|
|
102
|
+
__metadata("design:returntype", Promise)
|
|
103
|
+
], VideoResolutionProfileMcpTools.prototype, "createProfile", null);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, core_1.McpTool)({
|
|
106
|
+
name: 'lms.video-resolution-profiles.update',
|
|
107
|
+
description: 'Updates an existing video resolution profile.',
|
|
108
|
+
inputSchema: {
|
|
109
|
+
type: 'object',
|
|
110
|
+
properties: {
|
|
111
|
+
id: { type: 'number', description: 'Profile ID' },
|
|
112
|
+
name: { type: 'string', description: 'Profile name (max 100 chars)' },
|
|
113
|
+
ffmpeg_params: { type: 'string', description: 'FFmpeg params string' },
|
|
114
|
+
status: { type: 'string', description: 'Status (active|inactive)' },
|
|
115
|
+
},
|
|
116
|
+
required: ['id'],
|
|
117
|
+
},
|
|
118
|
+
}),
|
|
119
|
+
__metadata("design:type", Function),
|
|
120
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
121
|
+
__metadata("design:returntype", Promise)
|
|
122
|
+
], VideoResolutionProfileMcpTools.prototype, "updateProfile", null);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, core_1.McpTool)({
|
|
125
|
+
name: 'lms.video-resolution-profiles.delete',
|
|
126
|
+
description: 'Removes a video resolution profile by ID.',
|
|
127
|
+
inputSchema: {
|
|
128
|
+
type: 'object',
|
|
129
|
+
properties: {
|
|
130
|
+
id: { type: 'number', description: 'Profile ID' },
|
|
131
|
+
},
|
|
132
|
+
required: ['id'],
|
|
133
|
+
},
|
|
134
|
+
}),
|
|
135
|
+
__metadata("design:type", Function),
|
|
136
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
137
|
+
__metadata("design:returntype", Promise)
|
|
138
|
+
], VideoResolutionProfileMcpTools.prototype, "deleteProfile", null);
|
|
139
|
+
__decorate([
|
|
140
|
+
(0, core_1.McpTool)({
|
|
141
|
+
name: 'lms.video-resolution-profiles.toggle-status',
|
|
142
|
+
description: 'Toggles profile status between active and inactive.',
|
|
143
|
+
inputSchema: {
|
|
144
|
+
type: 'object',
|
|
145
|
+
properties: {
|
|
146
|
+
id: { type: 'number', description: 'Profile ID' },
|
|
147
|
+
status: { type: 'string', description: 'Target status (active|inactive)' },
|
|
148
|
+
},
|
|
149
|
+
required: ['id', 'status'],
|
|
150
|
+
},
|
|
151
|
+
}),
|
|
152
|
+
__metadata("design:type", Function),
|
|
153
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
154
|
+
__metadata("design:returntype", Promise)
|
|
155
|
+
], VideoResolutionProfileMcpTools.prototype, "toggleProfileStatus", null);
|
|
156
|
+
exports.VideoResolutionProfileMcpTools = VideoResolutionProfileMcpTools = __decorate([
|
|
157
|
+
(0, common_1.Injectable)(),
|
|
158
|
+
__metadata("design:paramtypes", [video_resolution_profile_service_1.VideoResolutionProfileService])
|
|
159
|
+
], VideoResolutionProfileMcpTools);
|
|
160
|
+
//# sourceMappingURL=video-resolution-profile.mcp-tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-resolution-profile.mcp-tools.js","sourceRoot":"","sources":["../../src/video-resolution-profile/video-resolution-profile.mcp-tools.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,wCAAoD;AACpD,2CAA4C;AAC5C,mGAA4F;AAE5F,yFAAmF;AAG5E,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;IACzC,YACmB,6BAA4D;QAA5D,kCAA6B,GAA7B,6BAA6B,CAA+B;IAC5E,CAAC;IAeE,AAAN,KAAK,CAAC,YAAY,CAChB,IAA2D,EAC3D,QAAoB;QAEpB,OAAO,IAAI,CAAC,6BAA6B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvD,CAAC;IAWK,AAAN,KAAK,CAAC,kBAAkB,CACtB,KAA4B,EAC5B,QAAoB;QAEpB,OAAO,IAAI,CAAC,6BAA6B,CAAC,MAAM,EAAE,CAAC;IACrD,CAAC;IAeK,AAAN,KAAK,CAAC,aAAa,CACjB,IAAqC,EACrC,QAAoB;QAEpB,OAAO,IAAI,CAAC,6BAA6B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACzD,CAAC;IAgBK,AAAN,KAA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;YACD,QAAQ,EAAE,CAAC,IAAI,CAAC;SACjB;KACF,CAAC;;;;mEAMD;AAcK;IAZL,IAAA,cAAO,EAAC;QACP,IAAI,EAAE,6CAA6C;QACnD,WAAW,EAAE,qDAAqD;QAClE,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE;gBACjD,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,iCAAiC,EAAE;aAC3E;YACD,QAAQ,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC;SAC3B;KACF,CAAC;;;;yEAOD;yCAvHU,8BAA8B;IAD1C,IAAA,mBAAU,GAAE;qCAGuC,gEAA6B;GAFpE,8BAA8B,CAwH1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-resolution-profile.module.d.ts","sourceRoot":"","sources":["../../src/video-resolution-profile/video-resolution-profile.module.ts"],"names":[],"mappings":"AAMA,qBAMa,4BAA4B;CAAG"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.VideoResolutionProfileModule = void 0;
|
|
10
|
+
const api_prisma_1 = require("@hed-hog/api-prisma");
|
|
11
|
+
const common_1 = require("@nestjs/common");
|
|
12
|
+
const video_resolution_profile_controller_1 = require("./video-resolution-profile.controller");
|
|
13
|
+
const video_resolution_profile_mcp_tools_1 = require("./video-resolution-profile.mcp-tools");
|
|
14
|
+
const video_resolution_profile_service_1 = require("./video-resolution-profile.service");
|
|
15
|
+
let VideoResolutionProfileModule = class VideoResolutionProfileModule {
|
|
16
|
+
};
|
|
17
|
+
exports.VideoResolutionProfileModule = VideoResolutionProfileModule;
|
|
18
|
+
exports.VideoResolutionProfileModule = VideoResolutionProfileModule = __decorate([
|
|
19
|
+
(0, common_1.Module)({
|
|
20
|
+
imports: [(0, common_1.forwardRef)(() => api_prisma_1.PrismaModule)],
|
|
21
|
+
controllers: [video_resolution_profile_controller_1.VideoResolutionProfileController],
|
|
22
|
+
providers: [video_resolution_profile_service_1.VideoResolutionProfileService, video_resolution_profile_mcp_tools_1.VideoResolutionProfileMcpTools],
|
|
23
|
+
exports: [(0, common_1.forwardRef)(() => video_resolution_profile_service_1.VideoResolutionProfileService)],
|
|
24
|
+
})
|
|
25
|
+
], VideoResolutionProfileModule);
|
|
26
|
+
//# sourceMappingURL=video-resolution-profile.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-resolution-profile.module.js","sourceRoot":"","sources":["../../src/video-resolution-profile/video-resolution-profile.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,oDAAmD;AACnD,2CAAoD;AACpD,+FAAyF;AACzF,6FAAsF;AACtF,yFAAmF;AAQ5E,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;CAAG,CAAA;AAA/B,oEAA4B;uCAA5B,4BAA4B;IANxC,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,yBAAY,CAAC,CAAC;QACzC,WAAW,EAAE,CAAC,sEAAgC,CAAC;QAC/C,SAAS,EAAE,CAAC,gEAA6B,EAAE,mEAA8B,CAAC;QAC1E,OAAO,EAAE,CAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,gEAA6B,CAAC,CAAC;KAC3D,CAAC;GACW,4BAA4B,CAAG"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { PrismaService } from '@hed-hog/api-prisma';
|
|
2
|
+
import { CreateVideoResolutionProfileDto } from './dto/create-video-resolution-profile.dto';
|
|
3
|
+
import { UpdateVideoResolutionProfileDto } from './dto/update-video-resolution-profile.dto';
|
|
4
|
+
export declare class VideoResolutionProfileService {
|
|
5
|
+
private readonly prisma;
|
|
6
|
+
constructor(prisma: PrismaService);
|
|
7
|
+
private get profileClient();
|
|
8
|
+
list(params: {
|
|
9
|
+
page?: number;
|
|
10
|
+
pageSize?: number;
|
|
11
|
+
search?: string;
|
|
12
|
+
}): Promise<{
|
|
13
|
+
data: {
|
|
14
|
+
id: any;
|
|
15
|
+
name: any;
|
|
16
|
+
ffmpeg_params: any;
|
|
17
|
+
status: any;
|
|
18
|
+
}[];
|
|
19
|
+
total: any;
|
|
20
|
+
page: number;
|
|
21
|
+
pageSize: number;
|
|
22
|
+
}>;
|
|
23
|
+
getAll(): Promise<{
|
|
24
|
+
id: any;
|
|
25
|
+
name: any;
|
|
26
|
+
ffmpeg_params: any;
|
|
27
|
+
status: any;
|
|
28
|
+
}[]>;
|
|
29
|
+
create(dto: CreateVideoResolutionProfileDto): Promise<{
|
|
30
|
+
id: any;
|
|
31
|
+
name: any;
|
|
32
|
+
ffmpeg_params: any;
|
|
33
|
+
status: any;
|
|
34
|
+
}>;
|
|
35
|
+
update(id: number, dto: UpdateVideoResolutionProfileDto): Promise<{
|
|
36
|
+
id: any;
|
|
37
|
+
name: any;
|
|
38
|
+
ffmpeg_params: any;
|
|
39
|
+
status: any;
|
|
40
|
+
}>;
|
|
41
|
+
delete(id: number): Promise<void>;
|
|
42
|
+
private getProfileById;
|
|
43
|
+
private mapRow;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=video-resolution-profile.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-resolution-profile.service.d.ts","sourceRoot":"","sources":["../../src/video-resolution-profile/video-resolution-profile.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,+BAA+B,EAAE,MAAM,2CAA2C,CAAC;AAC5F,OAAO,EAAE,+BAA+B,EAAE,MAAM,2CAA2C,CAAC;AAE5F,qBACa,6BAA6B;IAC5B,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAElD,OAAO,KAAK,aAAa,GAExB;IAEK,IAAI,CAAC,MAAM,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;IA6BlE,MAAM;;;;;;IASN,MAAM,CAAC,GAAG,EAAE,+BAA+B;;;;;;IAY3C,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,+BAA+B;;;;;;IAsBvD,MAAM,CAAC,EAAE,EAAE,MAAM;YAaT,cAAc;IAU5B,OAAO,CAAC,MAAM;CAQf"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.VideoResolutionProfileService = void 0;
|
|
13
|
+
const api_prisma_1 = require("@hed-hog/api-prisma");
|
|
14
|
+
const common_1 = require("@nestjs/common");
|
|
15
|
+
let VideoResolutionProfileService = class VideoResolutionProfileService {
|
|
16
|
+
constructor(prisma) {
|
|
17
|
+
this.prisma = prisma;
|
|
18
|
+
}
|
|
19
|
+
get profileClient() {
|
|
20
|
+
return this.prisma.video_resolution_profile;
|
|
21
|
+
}
|
|
22
|
+
async list(params) {
|
|
23
|
+
var _a;
|
|
24
|
+
const page = Math.max(Number(params.page) || 1, 1);
|
|
25
|
+
const pageSize = Math.max(Number(params.pageSize) || 20, 1);
|
|
26
|
+
const skip = (page - 1) * pageSize;
|
|
27
|
+
const search = (_a = params.search) === null || _a === void 0 ? void 0 : _a.trim();
|
|
28
|
+
const where = {};
|
|
29
|
+
if (search) {
|
|
30
|
+
where.name = { contains: search, mode: 'insensitive' };
|
|
31
|
+
}
|
|
32
|
+
const [rows, total] = await Promise.all([
|
|
33
|
+
this.profileClient.findMany({
|
|
34
|
+
where,
|
|
35
|
+
skip,
|
|
36
|
+
take: pageSize,
|
|
37
|
+
orderBy: { name: 'asc' },
|
|
38
|
+
}),
|
|
39
|
+
this.profileClient.count({ where }),
|
|
40
|
+
]);
|
|
41
|
+
return {
|
|
42
|
+
data: rows.map((row) => this.mapRow(row)),
|
|
43
|
+
total,
|
|
44
|
+
page,
|
|
45
|
+
pageSize,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
async getAll() {
|
|
49
|
+
const rows = await this.profileClient.findMany({
|
|
50
|
+
where: { status: 'active' },
|
|
51
|
+
orderBy: { name: 'asc' },
|
|
52
|
+
});
|
|
53
|
+
return rows.map((row) => this.mapRow(row));
|
|
54
|
+
}
|
|
55
|
+
async create(dto) {
|
|
56
|
+
var _a;
|
|
57
|
+
const profile = await this.profileClient.create({
|
|
58
|
+
data: {
|
|
59
|
+
name: dto.name,
|
|
60
|
+
ffmpeg_params: dto.ffmpeg_params,
|
|
61
|
+
status: (_a = dto.status) !== null && _a !== void 0 ? _a : 'active',
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
return this.getProfileById(profile.id);
|
|
65
|
+
}
|
|
66
|
+
async update(id, dto) {
|
|
67
|
+
const profile = await this.profileClient.findUnique({
|
|
68
|
+
where: { id },
|
|
69
|
+
select: { id: true },
|
|
70
|
+
});
|
|
71
|
+
if (!profile) {
|
|
72
|
+
throw new common_1.NotFoundException('Video resolution profile not found');
|
|
73
|
+
}
|
|
74
|
+
const data = {};
|
|
75
|
+
if (dto.name !== undefined)
|
|
76
|
+
data.name = dto.name;
|
|
77
|
+
if (dto.ffmpeg_params !== undefined)
|
|
78
|
+
data.ffmpeg_params = dto.ffmpeg_params;
|
|
79
|
+
if (dto.status !== undefined)
|
|
80
|
+
data.status = dto.status;
|
|
81
|
+
if (Object.keys(data).length > 0) {
|
|
82
|
+
await this.profileClient.update({ where: { id }, data });
|
|
83
|
+
}
|
|
84
|
+
return this.getProfileById(id);
|
|
85
|
+
}
|
|
86
|
+
async delete(id) {
|
|
87
|
+
const profile = await this.profileClient.findUnique({
|
|
88
|
+
where: { id },
|
|
89
|
+
select: { id: true },
|
|
90
|
+
});
|
|
91
|
+
if (!profile) {
|
|
92
|
+
throw new common_1.NotFoundException('Video resolution profile not found');
|
|
93
|
+
}
|
|
94
|
+
await this.profileClient.delete({ where: { id } });
|
|
95
|
+
}
|
|
96
|
+
async getProfileById(id) {
|
|
97
|
+
const row = await this.profileClient.findUnique({ where: { id } });
|
|
98
|
+
if (!row) {
|
|
99
|
+
throw new common_1.NotFoundException('Video resolution profile not found');
|
|
100
|
+
}
|
|
101
|
+
return this.mapRow(row);
|
|
102
|
+
}
|
|
103
|
+
mapRow(row) {
|
|
104
|
+
return {
|
|
105
|
+
id: row.id,
|
|
106
|
+
name: row.name,
|
|
107
|
+
ffmpeg_params: row.ffmpeg_params,
|
|
108
|
+
status: row.status,
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
exports.VideoResolutionProfileService = VideoResolutionProfileService;
|
|
113
|
+
exports.VideoResolutionProfileService = VideoResolutionProfileService = __decorate([
|
|
114
|
+
(0, common_1.Injectable)(),
|
|
115
|
+
__metadata("design:paramtypes", [api_prisma_1.PrismaService])
|
|
116
|
+
], VideoResolutionProfileService);
|
|
117
|
+
//# sourceMappingURL=video-resolution-profile.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-resolution-profile.service.js","sourceRoot":"","sources":["../../src/video-resolution-profile/video-resolution-profile.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,2CAA+D;AAKxD,IAAM,6BAA6B,GAAnC,MAAM,6BAA6B;IACxC,YAA6B,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAEtD,IAAY,aAAa;QACvB,OAAQ,IAAI,CAAC,MAAc,CAAC,wBAAwB,CAAC;IACvD,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,MAA6D;;QACtE,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;QACnD,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;QAC5D,MAAM,IAAI,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,QAAQ,CAAC;QACnC,MAAM,MAAM,GAAG,MAAA,MAAM,CAAC,MAAM,0CAAE,IAAI,EAAE,CAAC;QAErC,MAAM,KAAK,GAAQ,EAAE,CAAC;QACtB,IAA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AE,CAAC;YACb,MAAM,IAAI,0BAAiB,CAAC,oCAAoC,CAAC,CAAC;QACpE,CAAC;QAED,MAAM,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACrD,CAAC;IAEO,KAAK,CAAC,cAAc,CAAC,EAAU;QACrC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QAEnE,IAAI,CAAC,GAAG,EAAE,CAAC;YACT,MAAM,IAAI,0BAAiB,CAAC,oCAAoC,CAAC,CAAC;QACpE,CAAC;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAC1B,CAAC;IAEO,MAAM,CAAC,GAAQ;QACrB,OAAO;YACL,EAAE,EAAE,GAAG,CAAC,EAAE;YACV,IAAI,EAAE,GAAG,CAAC,IAAI;YACd,aAAa,EAAE,GAAG,CAAC,aAAa;YAChC,MAAM,EAAE,GAAG,CAAC,MAAM;SACnB,CAAC;IACJ,CAAC;CACF,CAAA;AA9GY,sEAA6B;wCAA7B,6BAA6B;IADzC,IAAA,mBAAU,GAAE;qCAE0B,0BAAa;GADvC,6BAA6B,CA8GzC"}
|
package/hedhog/data/menu.yaml
CHANGED
|
@@ -307,3 +307,20 @@
|
|
|
307
307
|
- where:
|
|
308
308
|
slug: admin-lms
|
|
309
309
|
|
|
310
|
+
- url: /lms/video-resolution-profiles
|
|
311
|
+
menu_id:
|
|
312
|
+
where:
|
|
313
|
+
slug: /lms
|
|
314
|
+
icon: film
|
|
315
|
+
name:
|
|
316
|
+
en: Video Profiles
|
|
317
|
+
pt: Perfis de Vídeo
|
|
318
|
+
slug: /lms/video-resolution-profiles
|
|
319
|
+
order: 13
|
|
320
|
+
relations:
|
|
321
|
+
role:
|
|
322
|
+
- where:
|
|
323
|
+
slug: admin
|
|
324
|
+
- where:
|
|
325
|
+
slug: admin-lms
|
|
326
|
+
|
package/hedhog/data/route.yaml
CHANGED
|
@@ -286,6 +286,15 @@
|
|
|
286
286
|
- where:
|
|
287
287
|
slug: admin-lms
|
|
288
288
|
|
|
289
|
+
- url: /lms/courses/:id/structure/sessions/:sessionId/lessons/:lessonId/video-conversions
|
|
290
|
+
method: POST
|
|
291
|
+
relations:
|
|
292
|
+
role:
|
|
293
|
+
- where:
|
|
294
|
+
slug: admin
|
|
295
|
+
- where:
|
|
296
|
+
slug: admin-lms
|
|
297
|
+
|
|
289
298
|
- url: /lms/instructors/me
|
|
290
299
|
method: GET
|
|
291
300
|
relations:
|
|
@@ -4115,3 +4124,127 @@
|
|
|
4115
4124
|
slug: admin-lms
|
|
4116
4125
|
- where:
|
|
4117
4126
|
slug: lms-student
|
|
4127
|
+
|
|
4128
|
+
# video-resolution-profiles
|
|
4129
|
+
- tool_name: lms.video-resolution-profiles.list
|
|
4130
|
+
type: MCP
|
|
4131
|
+
name: List Video Resolution Profiles
|
|
4132
|
+
relations:
|
|
4133
|
+
role:
|
|
4134
|
+
- where:
|
|
4135
|
+
slug: admin
|
|
4136
|
+
- where:
|
|
4137
|
+
slug: admin-lms
|
|
4138
|
+
|
|
4139
|
+
- tool_name: lms.video-resolution-profiles.list-active
|
|
4140
|
+
type: MCP
|
|
4141
|
+
name: List Active Video Resolution Profiles
|
|
4142
|
+
relations:
|
|
4143
|
+
role:
|
|
4144
|
+
- where:
|
|
4145
|
+
slug: admin
|
|
4146
|
+
- where:
|
|
4147
|
+
slug: admin-lms
|
|
4148
|
+
|
|
4149
|
+
- tool_name: lms.video-resolution-profiles.create
|
|
4150
|
+
type: MCP
|
|
4151
|
+
name: Create Video Resolution Profile
|
|
4152
|
+
relations:
|
|
4153
|
+
role:
|
|
4154
|
+
- where:
|
|
4155
|
+
slug: admin
|
|
4156
|
+
- where:
|
|
4157
|
+
slug: admin-lms
|
|
4158
|
+
|
|
4159
|
+
- tool_name: lms.video-resolution-profiles.update
|
|
4160
|
+
type: MCP
|
|
4161
|
+
name: Update Video Resolution Profile
|
|
4162
|
+
relations:
|
|
4163
|
+
role:
|
|
4164
|
+
- where:
|
|
4165
|
+
slug: admin
|
|
4166
|
+
- where:
|
|
4167
|
+
slug: admin-lms
|
|
4168
|
+
|
|
4169
|
+
- tool_name: lms.video-resolution-profiles.toggle-status
|
|
4170
|
+
type: MCP
|
|
4171
|
+
name: Toggle Video Resolution Profile Status
|
|
4172
|
+
relations:
|
|
4173
|
+
role:
|
|
4174
|
+
- where:
|
|
4175
|
+
slug: admin
|
|
4176
|
+
- where:
|
|
4177
|
+
slug: admin-lms
|
|
4178
|
+
|
|
4179
|
+
- tool_name: lms.video-resolution-profiles.delete
|
|
4180
|
+
type: MCP
|
|
4181
|
+
name: Delete Video Resolution Profile
|
|
4182
|
+
relations:
|
|
4183
|
+
role:
|
|
4184
|
+
- where:
|
|
4185
|
+
slug: admin
|
|
4186
|
+
- where:
|
|
4187
|
+
slug: admin-lms
|
|
4188
|
+
|
|
4189
|
+
- url: /lms/video-resolution-profiles
|
|
4190
|
+
method: GET
|
|
4191
|
+
relations:
|
|
4192
|
+
role:
|
|
4193
|
+
- where:
|
|
4194
|
+
slug: admin
|
|
4195
|
+
- where:
|
|
4196
|
+
slug: admin-lms
|
|
4197
|
+
|
|
4198
|
+
- url: /lms/video-resolution-profiles/all
|
|
4199
|
+
method: GET
|
|
4200
|
+
relations:
|
|
4201
|
+
role:
|
|
4202
|
+
- where:
|
|
4203
|
+
slug: admin
|
|
4204
|
+
- where:
|
|
4205
|
+
slug: admin-lms
|
|
4206
|
+
|
|
4207
|
+
- url: /lms/video-resolution-profiles
|
|
4208
|
+
method: POST
|
|
4209
|
+
relations:
|
|
4210
|
+
role:
|
|
4211
|
+
- where:
|
|
4212
|
+
slug: admin
|
|
4213
|
+
- where:
|
|
4214
|
+
slug: admin-lms
|
|
4215
|
+
|
|
4216
|
+
- url: /lms/video-resolution-profiles/:id
|
|
4217
|
+
method: PATCH
|
|
4218
|
+
relations:
|
|
4219
|
+
role:
|
|
4220
|
+
- where:
|
|
4221
|
+
slug: admin
|
|
4222
|
+
- where:
|
|
4223
|
+
slug: admin-lms
|
|
4224
|
+
|
|
4225
|
+
- url: /lms/video-resolution-profiles/:id
|
|
4226
|
+
method: DELETE
|
|
4227
|
+
relations:
|
|
4228
|
+
role:
|
|
4229
|
+
- where:
|
|
4230
|
+
slug: admin
|
|
4231
|
+
- where:
|
|
4232
|
+
slug: admin-lms
|
|
4233
|
+
|
|
4234
|
+
- url: /lms/courses/:courseId/video-resolution-profiles
|
|
4235
|
+
method: GET
|
|
4236
|
+
relations:
|
|
4237
|
+
role:
|
|
4238
|
+
- where:
|
|
4239
|
+
slug: admin
|
|
4240
|
+
- where:
|
|
4241
|
+
slug: admin-lms
|
|
4242
|
+
|
|
4243
|
+
- url: /lms/courses/:courseId/video-resolution-profiles/sync
|
|
4244
|
+
method: POST
|
|
4245
|
+
relations:
|
|
4246
|
+
role:
|
|
4247
|
+
- where:
|
|
4248
|
+
slug: admin
|
|
4249
|
+
- where:
|
|
4250
|
+
slug: admin-lms
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
- name: 1080p Full HD
|
|
2
|
+
ffmpeg_params: '-vf "yadif=mode=0,scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2" -c:v libx264 -preset slower -profile:v high -level:v 4.0 -crf 23 -x264-params "aq-mode=2:aq-strength=1.0" -fps_mode cfr -movflags +faststart -c:a aac -ac 2'
|
|
3
|
+
status: active
|
|
4
|
+
|
|
5
|
+
- name: 720p HD
|
|
6
|
+
ffmpeg_params: '-vf "yadif=mode=0,scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2" -c:v libx264 -preset slower -profile:v high -level:v 4.0 -crf 23 -x264-params "aq-mode=2:aq-strength=1.0" -fps_mode cfr -movflags +faststart -c:a aac -ac 2'
|
|
7
|
+
status: active
|