How do I change video playback time to a specific point

Get help using Construct 2

Post » Sat Jul 11, 2015 3:12 pm

The video object allows you to change the playback position to the second. Is it possible to get more specific? Has anyone made a plugin for this?

I'm working on a project where you can add key-frames to a video. It would be nice to be able to say, for example: playback video from 7.45 seconds :)
B
12
S
2
Posts: 39
Reputation: 1,082

Post » Sat Jul 11, 2015 3:28 pm

I guess you've read this:

Set playback time
Set the video playback time to a specific time in seconds (i.e. seek to the given time). Due to the way video encoding technologies work, the video may only be able to seek close to but not exactly on the specified time.

My guess would be setting it to 7.45 seconds should work also, just like you can set "every x seconds" to 0.2
I haven't tried though..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Jul 12, 2015 11:40 am

Thanks for your reply.

I've tried testing it using floats, but can't even get it to work with an integer at the moment!

For example:
Set Playback Time to 5

This just restarts the video. Has anyone else faced a similar problem?
Have tested it with an mp4 and webm but neither work.
B
12
S
2
Posts: 39
Reputation: 1,082

Post » Mon Jul 27, 2015 12:59 am

In regards to the problem above ^^

Turns out it was my server causing the problem.

I was serving the video using php's built in server which doesn't cut the file into chunks (at least not straight out of the box).
If anyone has a similar problem, this link should help http://stackoverflow.com/questions/8088364/html5-video-will-not-loop
Even though it's talking about looping a video, it still answers the question.

I fixed the problem by setting up a virtual machine with vagrant but that's probably too advanced for the average user. If you're having trouble, try using "wamp" or "xampp".

Long story short, you need a server that can send a video in small chunks.

Hopefully this helps people out with similar video playback problems!
B
12
S
2
Posts: 39
Reputation: 1,082


Return to How do I....?

Who is online

Users browsing this forum: AndreasR, Blendi1223, kellehk and 20 guests