Skip to content

Added looping feature to cache videos#99

Open
tanvithomare wants to merge 1 commit into
SCE-Development:devfrom
tanvithomare:Add_looping_to_cache_video
Open

Added looping feature to cache videos#99
tanvithomare wants to merge 1 commit into
SCE-Development:devfrom
tanvithomare:Add_looping_to_cache_video

Conversation

@tanvithomare
Copy link
Copy Markdown

No description provided.

@vineeshah vineeshah closed this Apr 11, 2026
@vineeshah vineeshah reopened this Apr 11, 2026
@vineeshah vineeshah closed this Apr 11, 2026
@vineeshah vineeshah reopened this Apr 11, 2026
@vineeshah vineeshah closed this Apr 11, 2026
@vineeshah vineeshah reopened this Apr 11, 2026
@vineeshah vineeshah closed this Apr 11, 2026
@vineeshah vineeshah reopened this Apr 11, 2026
@vineeshah vineeshah closed this Apr 11, 2026
@vineeshah vineeshah reopened this Apr 11, 2026
@vineeshah vineeshah closed this Apr 11, 2026
@vineeshah vineeshah reopened this Apr 11, 2026
Comment thread server.py

# terminate a parent process and all its child processes using a specified signal.
def kill_child_processes(parent_pid, sig=signal.SIGKILL):
def kill_child_processes(parent_pid, sig=signal.SIGILL):
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[CRITICAL] The change from signal.SIGKILL to signal.SIGILL in kill_child_processes is incorrect. SIGILL (Illegal Instruction) is not intended for process termination and can be caught or ignored by a process, potentially preventing it from being killed. SIGKILL is the appropriate signal for forceful, unblockable termination.

Comment thread static/cache.html
<div id="listOfVideosContainer" >
</div>
<script>
let holdTimer;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[CRITICAL] The togglePlayVideo function is defined twice. The inner definition async function togglePlayVideo(e, video) at line 22 shadows the outer definition async function togglePlayVideo(e, video, isLooping) at line 20. As a result, the isLooping parameter will always be undefined within the function that makes the fetch request, preventing the video looping functionality from working. The inner function should be removed, and the outer function should contain the logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants