-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Video extension #951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Video extension #951
Conversation
with add extraInitializationFromInitialInstance custom size now supported
problem with access to object pixi on scene
action condition expression
For localization in GD5
The others fix in next commit
-Change playbackspeed for consistence with animation play scale (0-1) instead (0-100) - Prettier - Clean comments
…elop into Bouh-Copy_video_extention_2
I've updated pixi but impossible to start GD |
Properties : Volume, Opacity, Looped Autoplay by pause()
|
So pause seems to work now, not sure why it was not the case before. I'll assume I forgot to update something! I'm making a bit of cleaning, we don't need to change volume nor looping of the video rendered on the scene because it's actually not playing. Same thing, we don't need to pause the video when the instance is removed from the scene editor because it's not played. |
…elop into Bouh-Copy_video_extention_2
Made quite a few changes to robustify the whole extension and avoid relying on internals/private members ;) GitHub again messed up the changed files of the whole PR, they can be seen here: What we're missing is now an icon for the object, and a warning within the editor about the format of the videos and another one like this: "For one video resource, only one video exists in memory. If multiple objects with the same videos are used, they will share the same status (paused/played/current time, etc...)". |
I can see for the icon, I will see the icons for the other game engines, and I will make a unique for GD with the colors. I've already illustrator installed its perfect ! |
Sweet! 👍 Use the SVG here #980 (comment) as a basis :) |
|
That was fast 😄I'll add it then. Thanks! 👍 |
I've added the icon. I'm going to merge this, though there are still a few things to do before the extension is ready:
Ideally we would need some loading indicator while the video is loaded before it's shown in the scene editor. Thanks a lot for you work on this :) This is going to be very useful for games that want to have cut-scenes! |
It's great thanks for the progress on the code !
But like warning about file format this will be better in properties pannel, imo.
|
For warnings no worries I'll be adding them soon :) (and as you've properly guessed, the Hints file is useful for this ;)) Video looks nice, although a bit big.
Unless I'm mistaken, any object that want to support being resized with events must add actions to do so. (Expressions are available for all objects, but some objects might not have a notion of width/height, like shape painters) |
We can go ahead with your example as is, let's just center the video and make the background black :) |
I can do it, give me few minutes, i will check all for the last time. |
Here the example, i've used the Tweens, thank @Wend1go it's very easy to use ! |
Sorry for the crash I have to update libGD.js I'll look at the example tomorrow, but I just tested the online version with my smartphone and it's working well! |
@Bouh I love the video (really funny haha) but it's 8mb, quite large if I bundle the example with GD. Could we find a ~1mb short video? |
I will try to do that now
|
Here, i've just crop the video and use the compression. 1,02 Mo ~10sc |
Awesome, I've added the example :) |
Continuity of PR Video extension #934 and #948