-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
basics_Zazulya_2 #3
Conversation
playground/server/docker-compose.yml
Outdated
|
||
# Сервис для MongoDB | ||
mongo-db: | ||
image: mongo:latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Зафиксировать версию образа для избежания потенциальных ошибок, вызванных новыми версиями.
image: mongo:latest | ||
container_name: mongo-db | ||
ports: | ||
- "27017:27017" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это dev версия. В prod версии такого быть не должно на будущее.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Выглядит хорошо. Позже посмотрю с практической точки зрения.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Хороший прототип для проекта. Есть недостатки, которые уже будут учитываться при разработке основного варианта программы.
playground/Zazulya/client/index.js
Outdated
recorder = new MediaRecorder(combinedStream, {mimeType: "video/webm"}); | ||
console.log(recorder); | ||
// Получаем путь для сохранения файла | ||
fileHandler = await directoryHandle.getFileHandle("testreco.webm", {create: true}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Получается, что файл локально будет постоянно перезаписываться. Для начала думаю пойдет, но пользователь ожидает, что если он 3 раза сделает скринкаст, то и записей будет 3. Подумай, как можно создавать несколько записей. Скорее всего помимо предмета, группы и ФИО придется передавать еще время начала записи.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Для нескольких записей добавил время к названию файла. Время сделал без ':', чтобы сохранялось на всех системах. И в базу теперь заносится начало и конец записи, можно как-нибудь по-другому их сохранять.
e08387d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Все остальное сделано отлично.
if (directoryHandle === null) { | ||
uploadInfo.textContent = "Выберите место сохранения"; | ||
return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не понял для чего нужно дублирование if (выше в коде - 25 строка):
if (!directoryHandle) {
uploadInfo.textContent = "Выберите место сохранения";
return;
}
No description provided.