horizontal scrollbar to controll video

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Rey Sciman
Newbie
Posts: 13
Joined: Thu Aug 14, 2014 5:13 am
Contact:

horizontal scrollbar to controll video

#1 Post by Rey Sciman »

Hi!
Has somebody scripted a horizontal scrollbar to controll the time of a video?
You know - "youtube" like... or like any other video players.

I want the user/player to see how long the video is and how much time is remaining...

with

Code: Select all

play move "movie.ogv"
he can only watch the video but not interact with it.

Do you know what I mean?

Greets,
R

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: horizontal scrollbar to controll video

#2 Post by Alex »


nintendotoad
Regular
Posts: 42
Joined: Sat Mar 31, 2012 2:56 pm
Location: projectexist.net
Contact:

Re: horizontal scrollbar to controll video

#3 Post by nintendotoad »

Short answer: I know what you mean. The issue with Alex's solution is that, while it is aesthetically pleasing and works visually, the player still wouldn't be able to use the bar itself to control the position of the video (rewind and whatnot wouldn't work).

Answer extension: We were talking in the IRC channel a while (month?) ago about redoing the audio/video system; something to do with knocking out a range of an audio file to make it sound muffled. Anyway, the basic conclusion was that the system could use a re-work (and would be needed for video-audio player functions to work).
In theory, you could use the PyGame libraries (http://www.pygame.org/docs/ref/movie.html) to do this, but that hasn't been implemented yet from what I've seen.

Rey Sciman
Newbie
Posts: 13
Joined: Thu Aug 14, 2014 5:13 am
Contact:

Re: horizontal scrollbar to controll video

#4 Post by Rey Sciman »

thanks alex.

ok, nintendotoad, thanks, sounds like a challenge. I am new to python and I wanted to finish my game this weekend - actually it is no game - it s an interactive job application with a menues (university, school, jobs) and videos, instead of a resume as .pdf or something.

first I wanted to add a countdown on the right hand to each video

BUT
I will give it a try (without success guarantee...)
Thanks

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: horizontal scrollbar to controll video

#5 Post by PyTom »

You could not use the pygame libraries. They're insufficient for Ren'Py's needs.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Rey Sciman
Newbie
Posts: 13
Joined: Thu Aug 14, 2014 5:13 am
Contact:

Re: horizontal scrollbar to controll video

#6 Post by Rey Sciman »

ok now it sounds too difficult

then pymedia librariers are also insufficent, aren't they?

ok, so no scrollbar in first version

Rey Sciman
Newbie
Posts: 13
Joined: Thu Aug 14, 2014 5:13 am
Contact:

Re: horizontal scrollbar to controll video

#7 Post by Rey Sciman »

just found this
http://code.google.com/p/morphin/
maybe it is possible with morphin
but I did not even unpack it
lets see

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot]