CDN

The PlayFab CDN Module is specifically designed to retrieve files from the Content Delivery Network servers which hosts your files from different geographically distributed locations around the world, for optimized worldwide access.

PlayFab hosts your files to their servers across the whole world from different regions, this is done to optimize performance into distributing your data, depending on the player's current network location.

This feature is useful for loading assets or files into your application, distributed all across the world, for cases like updating or extending your game.

 

Intstructions

1. The first step is to add the PlayFab API addon into the project.

2. Then, add the Authentication addon into the project.

3. Finally, add the CDN addon into the project.

Features :

  • Globally scaled CDN for per-region optimization.

  • Images, audio, binary content, etc.

  • High reliability & cheap for only $0.10/GB.

  • Account synced and profiled.

  • Organized request and update feature.

Network Services :

  • Facebook

  • Google Plus

  • Game Center

  • Google Play

  • Facebook Instant Games

  • Steam

  • Xbox Live

  • Nintendo Switch

  • PS4

  • PlayFab

Actions, Conditions & Expressions

Actions

Content Delivery Network :

  • Get Download URL - This API retrieves a pre-signed URL for accessing a content file for the title. A subsequent HTTP "GET" to the returned URL will attempt to download the content. A "HEAD" query to the returned URL will attempt to retrieve the metadata of the content.

    • Key - The key of the content item to fetch, usually formatted as a path, e.g. "images/a.png".

    • HTTP Method - HTTP method to fetch item - GET or HEAD. Use HEAD when only fetching metadata. Default is GET.

    • Through CDN - True to download through CDN. CDN provides higher download bandwidth and lower latency. However, if you want the latest, non-cached version of the content during development, set this to false. Default is "True".

    • Tag - The tag name of the event request.

Conditions

Content Delivery Network :

  • On Get Content - Triggers when the "Get Download URL" request has succeeded.

    • Tag - The tag name of the event request.

  • On Get Content Failed - Triggers when the "Get Download URL" request has failed.

    • Tag - The tag name of the event request.

  • On Any Get Content - Triggers when any "Get Download URL" request has succeeded.

  • On Any Get Content Failed - Triggers when any "Get Download URL" request has failed.

Expressions

Content Delivery Network :

  • getURL - Returns the URL for downloading content via HTTP GET or HEAD method. The URL will expire in approximately one hour.

  • retTag - Returns the tag name of the event request.

  • retKey - Returns the key of the request.

  • retMethod - Returns the method of the request. Either "GET" or "HEAD".

  • retCDN - Returns the boolean of the request if it is "Through the CDN". Either "True" or "False".

Server Response :

  • ServerResponse - Return the "Server Response" from every request from the PlayFab Server. The server response can also be shown in the "Chrome Developer Tools : Console", if in "debug mode".

 

Server Setup

The CDN or Content Delivery Network works by distributing the files or assets you've uploaded to the PlayFab Server into its other servers across the world from different regional servers. Ensuring the files or assets are sent from the nearest server to the requesting player's device.

File Management.png

Step 1 : Select the "Content" menu option and the "File Management" tab.

Step 2 : Click on the 'upload files' button and upload your files.

Step 3 : Use the CDN addon to retrieve the content files from the server, automatically selecting the nearest regional server.

 
 

Game Project

Sample Setup Project

Specifications

  • Instructions - The sample project has comments and instructions on how to use the addon and its features.

  • A.C.E. Coverage - It covers the implementation of each action, condition and expression.

  • Tips and Tricks - It provides some tips and tricks to a better use of the addon and of the event-sheet system alongside it.

Supporters

Only

Easy Game Project

Sample Setup Project

Specifications

  • Instructions - The sample project has comments and instructions on how to use the addon and its features.

  • A.C.E. Coverage - It covers the implementation of each action, condition and expression.

  • Tips and Tricks - It provides some tips and tricks to a better use of the addon and of the event-sheet system alongside it.

Supporters

Only

Get the tools

for your pro games!

Constuct Master Collection - Itch.io
Constuct Master Collection - Discord
Constuct Master Collection - Construct 3

© Construct Master Collection 2020 • All rights reserved

Contact Information: