AJAX - Request Project File - Video

0 favourites
  • 3 posts
From the Asset Store
Add SubRip (SRT) subtitles to your videos in Construct 3
  • What is "AJAX->Request Project File" mean ? If i request a video (inside project), then how do i play that video using video object ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ajax is used to read any of the files stored within your game's directory and get back the data.

    Ajax.lastdata will show you the file's content, so if you make a file called stuff.txt and write "more stuff" inside it, then request it with ajax you will get the string "more stuff" back.

    You can access files that the C2 project uses or external files you imported yourself, and import data into your game, like a json or a txt file.

    You don't need to fetch video files to play them, the video plugin can read the files stored under the files folder, just write the file name with the correct extension in the video plugin settings or in the load action.

  • Headbang Games

    Hi one year on...

    Question: if you have a video (say a webm) on your server can you send an AJAX request to download the contents of that video to your project, which you can then play via Video player???

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