Sub topic 8
Replace lessons in place
This chapter assumes you have already audited the course and classified the changes. It also assumes you have a re-recorded segment ready, and that you know your platform's lecture editor. Here you swap the new recording into the live course without breaking anything students already have.
What "in place" means
A lecture in a course platform is a record, not just a video file. The record has an ID, a position in a section, a URL, and links to quiz attempts, comments, bookmarks, and each student's progress. The video is one attribute of that record.
Replacing in place means you keep the record and change only its media, captions, and description. Deleting a lecture and uploading a new one creates a different record with a different ID. Every link to the old record then breaks.
| What is attached to the lecture record | If you delete and re-create | If you replace in place |
|---|---|---|
| Completion status per student | Lost, the new lecture shows as incomplete | Kept |
| Resume position | Lost | Kept, but see the edge cases below |
| Question and answer threads, comments | Orphaned or deleted | Kept |
| Deep links in emails, forums, and your own lessons | Return an error | Still work |
| Certificate eligibility | May drop below the required percentage | Unchanged |
Platforms differ in what they call this. You may see "replace video", "upload new version", or "swap source". Look at your platform's help pages and test on a draft or a private test enrollment before touching live content. Some platforms keep completion as a stored flag. Others recompute it from the current lecture list each time a student visits. The second kind is much less forgiving of structural edits.
Choose the right operation
Not every change is a replacement. Decide which of these four you are doing.
- Swap the media only. The lecture covers the same topic, with the same title and position. Replace the video, captions, and transcript on the existing record.
- Edit the lecture text or attachments. Update the description, slides, or downloads on the existing record. No video change is needed.
- Add a new lecture. The content did not exist before. Add it as a new record, and see the completion rules below.
- Restructure. You split, merge, move, or remove lectures. This is the riskiest operation and is usually a sign that the change is major.
The replacement procedure
Follow the same sequence for each lecture. Doing it in the same order every time makes mistakes easy to spot.
- Record the current state. Note the lecture ID, title, position, duration, caption file, and attached files. A screenshot of the section outline is enough. This is your rollback reference.
- Finish the new media offline. Export the new video at the same resolution and format as the old one. Do not upload a half-finished file, because students can watch it the moment it is attached.
- Replace the media on the existing record. Use the platform's replace function. Wait for processing to finish before moving on.
- Replace captions and transcript. Old captions on new audio are worse than no captions. Check that the caption timing matches the new video.
- Update the description and attachments. Slides and downloads must match what the new video shows. Keep the same file names where possible so that links from other lessons still work.
- Check the record. Open the lecture as a student would. Confirm that the title, position, and ID are unchanged and that the new video plays.
Verify that IDs and positions survived
If your platform lets you export the course structure, compare the exports from before and after. The manifest from the audit chapter gives you the IDs to check. The script below flags the three classic mistakes: a lecture that vanished, a new ID that appeared, and a media change nobody planned.
def check_in_place(before, after, to_replace):
"""Compare two course snapshots and return a list of problems."""
problems = []
before_by_id = {lec["id"]: lec for lec in before}
after_by_id = {lec["id"]: lec for lec in after}
for lid, old in before_by_id.items():
new = after_by_id.get(lid)
if new is None:
problems.append(f"{lid}: missing after update (deleted and re-created?)")
continue
if new["position"] != old["position"]:
problems.append(f"{lid}: moved from {old['position']} to {new['position']}")
media_changed = new["media"] != old["media"]
if lid in to_replace and not media_changed:
problems.append(f"{lid}: planned replacement but media is unchanged")
if lid not in to_replace and media_changed:
problems.append(f"{lid}: media changed but it is not in the plan")
for lid in after_by_id:
if lid not in before_by_id:
problems.append(f"{lid}: new ID that did not exist before")
return problems
before = [
{"id": "L-014", "position": 14, "media": "a1"},
{"id": "L-015", "position": 15, "media": "b1"},
{"id": "L-021", "position": 21, "media": "c1"},
]
after = [
{"id": "L-014", "position": 14, "media": "a2"},
{"id": "L-015", "position": 15, "media": "b1"},
{"id": "L-090", "position": 21, "media": "c2"}, # L-021 was re-created by mistake
]
for problem in check_in_place(before, after, {"L-014", "L-021"}):
print(problem)Running it prints two lines: L-021: missing after update (deleted and re-created?) and L-090: new ID that did not exist before. An empty result means the structure is intact. It does not prove the content is right, so you still need the quality check described in a later chapter.
Edge cases that catch people out
Duration changes and completion rules
Many platforms mark a lecture complete when a student has watched a set percentage, such as 90 percent. A student who finished a 10-minute lecture has watched 10 minutes. If the new version is 6 minutes, the student has watched more than 100 percent, and completion is safe. If the new version is 14 minutes, some platforms recompute the percentage and the lecture may drop below the threshold. Test this with a test student who has already completed the old version. If your platform behaves this way, keep the new video close to the old length, or move the extra material into a new optional lecture.
Resume position
A student who stopped at minute 8 of the old video will resume at minute 8 of the new one. If you shortened or reordered the content, that point may fall in the wrong place or past the end. This only affects students partway through the lecture, so it is a minor problem. Mention it in the announcement if the lecture changed a lot.
Adding lectures when completion is required
If a certificate requires 100 percent completion, a newly added required lecture makes every finished student incomplete. Depending on the platform, the certificate may disappear or may stay because it was already issued. Find out which before you add anything. The safe default is to mark new lectures optional or unscored, or to add them as a bonus section that is excluded from completion tracking. The earlier chapter on protecting progress covers how to check this.
Quizzes
Changing a question's wording is usually safe. Changing the correct answer, the number of questions, or the passing score can alter past results or invalidate attempts. If a re-recorded lecture needs a quiz change, make the smallest edit that keeps the quiz correct. Do not reset past attempts unless you have a clear reason and have told students.
Captions, transcripts, and downloads
Replacing the video does not always replace the transcript. Students using captions are the first to notice a mismatch. Check each lecture's caption file after every swap. For downloads, replace the file contents on the existing attachment when the platform allows it. If you must upload a new file, keep the old name or update every lesson that links to it.
Platform processing delays
Video processing can take minutes or hours. During that time the lecture may show the old video, a spinner, or an error. Do the swaps outside peak hours for your students, and do not announce the update until every swap shows as processed.
A worked example
Take the manifest from the audit. Lecture L-014 needs a new video only. Lecture L-021 needs a new video and an updated quiz.
- Record the current state of both lectures and the quiz.
- Export both new videos with the same format as the originals.
- Replace L-014's media on its existing record and replace its captions. Check that the ID and position are still the same.
- Replace L-021's media on its existing record. Edit the quiz questions that use the renamed table, and leave the passing score and question count alone.
- Export the structure again and run the comparison. Fix anything it reports.
- Open both lectures as a test student who completed the old versions. Confirm that they still show as complete.
Only after these checks should the update move on to the pre-publish review and the announcement.
Exercise
You re-recorded a 10-minute lecture as a 15-minute version. Your platform marks a lecture complete once a student has watched 90 percent of it. List one risk and one way to avoid it.
Show answer
Risk: students who completed the old version may no longer meet the 90 percent threshold if the platform recomputes completion against the longer video, so their progress could drop. Test this with a test student who finished the old version. To avoid it, keep the replacement close to the old length, or keep the original topic in the replaced lecture and move the extra five minutes into a new optional lecture that is excluded from completion tracking.
Exercise
After an update, your comparison script reports "L-030: missing after update" and "L-091: new ID that did not exist before", and L-091 has the title of L-030. What happened, and what should you do?
Show answer
L-030 was deleted and re-created, which gave it a new ID, so student progress, comments, and links tied to L-030 are no longer connected to the visible lecture. Do not repeat the delete. Check whether the platform can restore L-030 or merge the records. If it cannot, replace the media on the original record if it is still recoverable, or tell affected students and restore their progress manually. Then update your procedure so the swap always uses the replace function.