Creating Lectures
Lectures are the individual video lessons within your course. Each lecture belongs to a specific section.Accessing the Lecture Form
From your instructor dashboard:- Find your course in the “Tus cursos” section
- Click the “Crea clases” button
- You’ll be taken to
/instructor/{course-id}/createLecture
~/workspace/source/src/views/Instructor/Instructor.jsx:316-319
Lecture Creation Process
Enter Lecture Details
Fill in the lecture title, description, select the section, and upload your video file.
Video Processing
The system automatically calculates video duration and uploads it to Firebase Storage.
Lecture Form Fields
Lecture Title
- Field name:
title - Type: Text input
- Max length: 70 characters
- Validation:
- Required field
- Minimum 3 characters
~/workspace/source/src/views/FormLecture/FormLecture.jsx:164-172
Description
- Field name:
description - Type: Textarea
- Max length: 100 characters
- Validation:
- Required field
- Minimum 20 characters
~/workspace/source/src/views/FormLecture/FormLecture.jsx:175-182
Section Assignment
- Field name:
section - Type: Select dropdown
- Options: Dynamically generated based on the number of sections defined in the course
- Validation:
- Required field
- Must be ≥ 1
- Cannot be “Seccion:” (default placeholder)
sections value:
~/workspace/source/src/views/FormLecture/FormLecture.jsx:185-198
Sections are numbered starting from 1. Make sure to assign lectures to the appropriate section for logical content organization.
Video Upload
- Field name:
video_url - Type: File input
- Storage: Firebase Storage at
courses/{course-title}/{lecture-title} - {course-id} - Duration: Automatically calculated when video is selected
- Validation: Required field
~/workspace/source/src/views/FormLecture/FormLecture.jsx:201-207
Video Duration Calculation
When you select a video file, the system automatically calculates its duration:~/workspace/source/src/views/FormLecture/FormLecture.jsx:51-75
Lecture Submission
When you submit a lecture, the following occurs:Video Upload
The video file is uploaded to Firebase Storage with the path:
courses/{course-title}/{lecture-title} - {course-id}Create Lecture Record
A POST request is sent to Reference:
/lessons/create with:~/workspace/source/src/views/FormLecture/FormLecture.jsx:106-108Editing Course Content
Editing Course Details
To edit your course information:- Navigate to your instructor dashboard
- Find your course in the “Tus cursos” or “Tus cursos desactivados” sections
- Click “Editar curso”
- Modify any field and click “Modificar curso”
~/workspace/source/src/views/Instructor/Instructor.jsx:322-324
Editable Course Fields
From the edit page, you can modify:- Course Title: Text input, max 100 characters
- Description: Textarea, max 300 characters
- Category: Select from available categories
- Course Image: Upload a new image (optional - keeps existing if not changed)
- Price: Number input, 9,999.99
- Lectures: Select and edit individual lectures by section
~/workspace/source/src/views/EditCourse/EditCourse.jsx:236-353
Editing Lectures
The edit course page allows you to modify existing lectures:- Select Section: Lectures are organized by section
- Choose Lecture: Select the lecture from the dropdown
- Modify Fields: A modal appears where you can update:
- Lecture title
- Description (max 300 characters)
- Section assignment
- Video file (optional)
~/workspace/source/src/views/EditCourse/EditCourse.jsx:172-224
If you don’t modify a field in the lecture edit modal, it will maintain its current value.
Managing Course Status
Deactivating a Course
To temporarily remove a course from the catalog:- Click “Desactivar curso” on your course card
- Confirm the action in the dialog
- The course moves to “Tus cursos desactivados”
~/workspace/source/src/views/Instructor/Instructor.jsx:340-343
~/workspace/source/src/views/Instructor/Instructor.jsx:42-102
Restoring a Deactivated Course
To reactivate a course:- Find your course in “Tus cursos desactivados”
- Click “Restaurar curso”
- Confirm the restoration
- The course returns to your active courses
~/workspace/source/src/views/Instructor/Instructor.jsx:376-379
Banned courses cannot be restored by instructors. Contact support if you believe your course was banned in error.
Lecture Validation Rules
Lectures must meet these requirements:Title Requirements
Title Requirements
- Required field
- Minimum 3 characters
- Maximum 70 characters
~/workspace/source/src/utils/validation.js:42-46Description Requirements
Description Requirements
- Required field
- Minimum 20 characters
- Maximum 100 characters (form) or 300 characters (edit)
~/workspace/source/src/utils/validation.js:48-52Section Requirements
Section Requirements
- Required field
- Must be a valid section number (≥ 1)
- Cannot be the placeholder “Seccion:”
~/workspace/source/src/utils/validation.js:54-58Video Requirements
Video Requirements
- Required field
- Must upload a video file
~/workspace/source/src/utils/validation.js:60-62Best Practices
Troubleshooting
Video upload fails
Video upload fails
Possible causes:
- File size too large
- Network connection issues
- Unsupported video format
- Compress your video file
- Check your internet connection
- Convert to a supported format (MP4 recommended)
Lecture doesn't appear after creation
Lecture doesn't appear after creation
Solution: Refresh the page or navigate back to your instructor dashboard. The cache may need to update.
Can't select the right section
Can't select the right section
Solution: Ensure you created enough sections when setting up your course. To add more sections, edit your course and increase the sections count.
Related Documentation
Creating Courses
Learn how to create your first course
Student Management
View ratings and manage student interactions