Skip to content

Add a playback speed property to VideoStreamPlayer #920

@nonunknown

Description

@nonunknown

Describe the project you are working on:
A Racing Game

Describe the problem or limitation you are having in your project:
I'm using inside game videos to follow other game car behaviours, and using Engine.TimeScale, but
I was impressed why not videos are affected by it, if VideoPlayer Node has PlaybackSpeed variable I could adapt it to TimeScale myself.
Describe the feature / enhancement and how it helps to overcome the problem or limitation:
Add a playbackspeed to VideoPlayer Node
and/or make it be affected by Engine.TimeScale
Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:

you can use
VideoPlayer.set_playback_speed(0....X)
VideoPlayer.affected_by_timescale(true/false)

If this enhancement will not be used often, can it be worked around with a few lines of script?:

Nope, there's no way

Is there a reason why this should be core and not an add-on in the asset library?:
Its an enhancement for a built-in node

PS
I want to metion this issue, since I'm using ubuntu and only was able to use webm videos under 30fps to avoid black video

https://godotengine.org/qa/71720/why-do-webm-videos-stop-working-above-30fps-on-linux-ubuntu

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions