#πŸ”’ is there any way to force someone to watch the video on a video player?

25 messages Β· Page 1 of 1 (latest)

zenith summit
#

i wanna force the person who launches said program to watch the video that launches
until the end
no alt tabbing
no "esc" key
nothing just watch it until the end and it closes

`import pygame
import sys
from pyvidplayer import Video

Initialize Pygame

pygame.init()

Get the size of the screen

screen_info = pygame.display.Info()
SCREEN_WIDTH, SCREEN_HEIGHT = screen_info.current_w, screen_info.current_h

Set up the display to match the screen size

SCREEN = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT), pygame.FULLSCREEN)
pygame.display.set_caption("Video Player")

Load the video

vid = Video("vid/hi.mp4")
vid.set_size((SCREEN_WIDTH, SCREEN_HEIGHT)) # Scale the video to the screen size

def intro():
clock = pygame.time.Clock()
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT: # Handle the quit event
vid.close() # Stop the video playback
pygame.quit()
sys.exit()
elif event.type == pygame.KEYDOWN and event.key == pygame.K_ESCAPE:
# Allow exit with the ESC key
vid.close()
pygame.quit()
sys.exit()

    # Draw the video frame
    vid.draw(SCREEN, (0, 0))

    # Update the display
    pygame.display.update()

    # Control frame rate
    clock.tick(30)  # Adjust to 30 FPS or the desired frame rate

Run the intro function

intro()
`

this is my current script

ebon arrowBOT
#

@zenith summit

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

zenith summit
#

yes i used chat gpt

flat crater
#

First issue, you're using ChatGPT, the code it wrote doesn't even work

#

Second, why would you want someone to forcefully watch a video?

zenith summit
#

pranking my friend

#

also whats wrong with chat gpt

#

the code works perfectly for me

#

Β―_(ツ)_/Β―

#

i just wanna add the part where they cant click off

flat crater
zenith summit
#

dant it

#

dang*

flat crater
#

Mostly because people use those kind of things for malware

#

I'm not saying you're making anything malicious

#

That's just what people usually use that kind of stuff for

zenith summit
#

ik

#

i was js trynna prank my friend telling him he got the king von piracy screen πŸ’€

azure thunder
pine vapor
azure thunder
pine vapor
#

thats wild

ebon arrowBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.