File tree Expand file tree Collapse file tree 3 files changed +16
-12
lines changed
collection/step/[stepName]/[recordMode]
courses/[courseId]/exercise/[lessonIndex]/record Expand file tree Collapse file tree 3 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 54
54
$: beatsPerStep =
55
55
detectedSteps .length > 0 ? detectedSteps[0 ].poses .length : 4 ;
56
56
$: avatarSizePixels = videoSrcHeight;
57
- $: headRadius = 0.075 * videoSrcHeight;
57
+ $: headRadius = 0.075 * Math . min ( videoSrcHeight, videoSrcWidth) ;
58
58
let markedSegments = [];
59
59
$: if (keypointSkeleton) {
60
60
markedSegments = limbErrors .map ((limb ) => limb .render (keypointSkeleton));
@@ -359,13 +359,15 @@ once per 250ms. -->
359
359
.poses-details {
360
360
display : flex ;
361
361
overflow-x : auto ;
362
+ max-width : 100% ;
362
363
}
363
364
364
365
.background-strip {
365
366
margin : 10px -25px ;
366
367
padding : 10px 30px ;
367
368
border-radius : 10px ;
368
369
box-shadow : 0px 0px 8px rgba (0 , 0 , 0 , 0.55 );
370
+ text-align : center ;
369
371
}
370
372
371
373
.beat-label {
Original file line number Diff line number Diff line change 24
24
const tracker = Tracker .UniqueStepTracker (instructorStep .id );
25
25
registerTracker (tracker);
26
26
setBpm (120 );
27
- setHalfSpeed (isLearnMode);
27
+ // setHalfSpeed(isLearnMode);
28
+ setHalfSpeed (true );
28
29
29
30
const userCtx = getContext (' user' );
30
31
132
133
if (isLearnMode) {
133
134
showLearnModeHint .set (true );
134
135
showLearnModeHint .subscribe ((hintShown ) => {
135
- if (! $showLearnModeHint && isLearnMode && ! isModelOn) {
136
+ if (! $showLearnModeHint && ! hintShown && ! isModelOn) {
136
137
turnOnRecording ();
137
138
}
138
139
});
141
142
if (isTrainMode) {
142
143
showTrainModeHint .set (true );
143
144
showTrainModeHint .subscribe ((hintShown ) => {
144
- if (! $showTrainModeHint && isTrainMode && ! isModelOn) {
145
+ if (! $showTrainModeHint && ! hintShown && ! isModelOn) {
145
146
turnOnRecording ();
146
147
}
147
148
});
169
170
></VideoReview >
170
171
<div >
171
172
<a href ={reviewVideoSrc } download >
172
- <Button class =" light" symbol =" download" text =" record.download" />
173
+ <Button class =" light wide " symbol =" download" text =" record.download" />
173
174
</a >
174
175
<Button
175
- class =" light"
176
+ class =" light wide "
176
177
on:click ={closeReview }
177
178
symbol =" arrow_back"
178
179
text =" record.back-button"
187
188
</div >
188
189
<div class =" buttons" >
189
190
<Button
190
- class =" light"
191
+ class =" light wide "
191
192
on:click ={openReview }
192
193
symbol =" tv"
193
194
text =" record.review-button"
194
195
/>
195
196
<Button
196
- class =" light"
197
+ class =" light wide "
197
198
on:click ={reset }
198
199
symbol =" videocam"
199
200
text =" record.reset-button"
200
201
/>
201
202
<Button
202
- class =" light"
203
+ class =" light wide "
203
204
on:click ={goBackToStep }
204
205
symbol =" arrow_back"
205
206
text =" record.back-button"
223
224
<div >
224
225
<Button
225
226
on:click ={stopCameraAndRecording }
227
+ class =" light wide"
226
228
symbol =" camera"
227
- text =" record.stop-button "
229
+ text =" record.stop-record "
228
230
/>
229
231
</div >
230
232
<LiveRecordingSettings
265
267
266
268
.buttons {
267
269
display : grid ;
268
- grid-template-columns : auto auto auto ;
270
+ grid-template-columns : auto ;
269
271
}
270
272
271
273
div .title {
Original file line number Diff line number Diff line change 151
151
const detected = tracker .lastDetection ;
152
152
hitRate =
153
153
detected .poseMatches / (detected .poseMisses + detected .poseMatches );
154
- passed = hitRate > 0.6 ;
154
+ passed = hitRate >= 0.6 ;
155
155
if (passed) {
156
156
recordFinishedLesson (id, lessonIndex, 1 );
157
157
}
You can’t perform that action at this time.
0 commit comments