How do I make video less laggy

0 favourites
  • 10 posts
From the Asset Store
The game will give you a dog that appeared and you must say if he appeared more, less or equal.
  • I followed tutorial on youtube about importing and playing video in construct 2 project. youtube.com/watch

    All 3 formats are in ogv,mp4, and webm but video is laggy as hell, check here: korea.bitballoon.com

    In chrome is hell, but in firefox is bit less.

  • Firstly Construct 2 video plugin is useful for small videos, you can try to preload video, instead of autoplay to improve some lag.

    but if you want to show video like your example page, consider uploading it to youtube and embed into construct 2.

  • Firstly Construct 2 video plugin is useful for small videos, you can try to preload video, instead of autoplay to improve some lag.

    but if you want to show video like your example page, consider uploading it to youtube and embed into construct 2.

    Same with preload :/

    Embed youtoube video is not an option, since i need only video without all those buttons elements, links etc. on it.

  • I'm afraid the best way to provide a fluid video is to reduce its overall quality, that is to say provide it in 480 p (a resolution of 720×480 pixels).

    This will reduce the download size of your video and will make it easier to be read across all computers/browsers.

    Once you have such a video, allowing only the user to play it once you have downloaded enough of the video to play it should also help out, as previously hinted.

    With videos, preload does not work the same as with audio or layouts.

    You have to "delay" the playing of your video until your reach

    On playback event

    "Can play": triggered when enough data is available to play at least a couple of frames, but there may not be enough data to play through to the end.

    or

    "Can play through": triggered when the browser determines that the load progress and transfer rate are sufficient for playback through to the end without stalling for buffering. However this is not a guarantee, since the transfer rate could drop or be cut off completely.

    Using "Can play through" will make sure you have loaded the whole video.

    But it requires to hold on on playing the video.

    Once this event triggers, you may then want to provide your user with a play button of sorts allowing them to launch the video and experience it comfortably.

    The user action is also required on certain devices, and some devices (like iPhone) WILL show the controls for the video anyway (because Apple).

  • I tried both events and video always starts immediately :/

    Never mind, i found in rex plugin option that disable youtube elements, but still video pauses when i click on it ><

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Change the autoplay property value. It won't start automatically.

    Makes sure you are not using the "Play" action in a "On start of layout" event.

    Do read the manual and learn what tools you have at your disposal.

  • Change the autoplay property value. It won't start automatically.

    Makes sure you are not using the "Play" action in a "On start of layout" event.

    Do read the manual and learn what tools you have at your disposal.

    Don't know what I'm doing wrong then.

    puu.sh/pUswQ/3e437c529c.capx

  • >

    > Embed youtoube video is not an option, since i need only video without all those buttons elements, links etc. on it.

    >

    Youtube has bandwith. From there point of view, it is theire 'upload' speed. Wich is just uncomparable to the upload speed of a single user.

    If you gooing to host this video yourself, you are limited to your own 'upload speed' / amount of users you want to serve. That is a simple calculation, and you gooing to be suprised about the small amount of bits that you can serve. Watch it, upload speed is usaly shown as Mega Bit / sec. Roughtly 10 times less than MegaByte /sec.

    If you cant host on youtube, then encode the video towards what is possible (back to the 90tys) for you. Or find a host with a big bandwith (will cost you).

    You can also, as suggested, totaly kill the autoplay. And make the user wait till its all loaded. (also back to the 90tys)

  • Your Autoplay value is "Preload", once loaded, the video plays.

    Moreover, you used the "Can play through" condition to execute the play action.

    So very quickly, the video plays, as intended.

    With video, in the start of layout, you want to set the source for your video, and possibly make it so that a user action is requested.

    Using a button and setting Autoplay to No, this gives :

    By default the button is outside of the layout, when loading of the video is complete, it appears under the video and clicking it allows to play the video.

    On my computer the video does not lag at all.

    If it does on yours, consider profiling your program with the debugger and checking for errors in your browser as well, make sure you are using a up to date browser with up to date graphic card drivers and make sure your computer is powerful enough to be able to decode video and audio on the fly.

  • Use SDK or cocoon?

    I can not play any video in cocoon

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)