Skip to Content

Create your first "Hello World" in Streamezzo

Printer-friendly versionSend to friendPDF version
Rookie

This tutorial is a step-by-step guide to develop and publish your first Streamezzo application with Streamezzo Workbench Developer.

Creating a new project

Launch Workbench Developer either by clicking on the shortcut on your desktop or selecting the program from the start menu.

  • If you are launching Workbench Developer for the first time, you will have the Welcome screen displayed, providing access to documentation, samples, etc. Click "Go to workbench" button or close this window (you will be able open it at anytime from Help > Welcome).
  • Select File > New Service
  • Enter “Hello World” as a Service name
  • In the Content area, either check "Use default location", or click "Browse" button to select another folder were your project files will be stored (you may create one while browsing)

  • Click "Finish" button

A "Hello World" project is then created and 3 views are updated:

  • In the Service Desk view you will find the logical representation fo your project, with:
    • sources (your client and server scenes can be found here)
    • libraries (all libraries used by the service – not used in this sample)
    • resources (all media assets – images, videos, audios – and other files used by the service)
  • In the Service Browser view you will find a physical representation of the service file system with all folders and files created for the "Hello World" project. Please take a look at this tree representation.
  • IIn the Service Settings you can configure your service parameters (nothing needs to be changed by now)

Building "Hello World!" step-by-step

Creating a RSP file

Now that the workspace is ready, we start by creating the RSP file. To do that, from the Service Desk expand Sources element, then right-click on Client and select New > RSP file:

  • Enter "Hello_World" as a name
  • Click "Next" button
  • Select "New RSP Template" as template

  • Click "Finish" button

Now you have "Hello_World" file located under the Client category of Sources folder and it should be opened filled with the selected empty template. 


Adding Text

Starting from the obtain 'blank' RSP template we have, we will now simply add the "Hello World" text.

Use [CTRL]+[SPACE] to have code assistance and auto completion.

  • Add an Insert tag to add content to the RSP; this must be put right after the Background tag
  • Inside the Insert block, add a Transform node
  • Inside the Transform block, add a Text node with string attribute set to "Hello World!"

As the Text we added will be displayed by default in the middle of screen, horizontally aligned left, let's really center it on the screen; set Text node horizAlign attribute to "CENTERED".

The obtained code should look like this:

" colorBits="8" lengthBits="16" resolution="2" idBits="16" scaleBits="15" encodingType="0"/>

Emulating

In order to check the behaviour of your project, it can be emulated:

  • Select Service > Emulate Service
  • In the Emulation dialog box, select a device

  • Click "OK" button to launch the emulation

The console will then display the compilation and emulation messages. There should be no errors and the messages led should be green. If not please check the previous steps.


Deploying the application

Publishing on Rich Media Server

This set is only required for connected services in order to deploy the webapp for the application, containing all server-side RSP, on a Rich Media Server instance, that will be then requested by client in order to process and deliver dynamic rich media content.

This feature can be accessed by selecting Service > Publish Service.

Here this simple application contains only one scene that is set client-side (i.e. local to the device), so we can skip this step.

Creating the installer for a device

Now that the application has been successfully emulated, it is time to deploy in on a real device:

  • Select Service > Create Client Packages
  • Select the brand and model for the device on which you want to install your application (some specific parameters may be necessary to specify, depending on the target platform, like certificates; you can edit them in Rich Media Customization)
  • Specify the ouput folder where the application installer will be made available once generated

  • Click "Finish" button

The application installer will then be generated in background and you will be able to follow its progression in the Client packages creation view (if it is not displayed, you can select it from Window > Show view > Other... > Other > Client packages creation). Once the application installer is ready, from this view you will be able to open the specified output folder right-clicking the device.


You now simply have to transfer the application installer on your device, using the connection cable, BlueTooth, WAP site...

AttachmentSize
hello_world.swz2.66 KB
Share this