I am very new to this and I am trying to make it ork since last Friday. It was quite hard to find out that I have to install the old Animate Edge 2014 - version to make the samples work, which has been provided by Seppo Sormunen. So I am using the E2C_Library v0.7.1.
I have build a template which contains 2 text-fields called teamA and teamB and 2 images called logoA and logoB. The Name of the html-file is matchID.html.
This is what I send with my own client: CG 1-20 ADD 1 Hockey/MATCHID “0” "<componentData id=“teamA”><data id=“text” value=“Lok Rackwitz”/><componentData id=“teamB”><data id=“text” value=“RW Jena”/>"
That works well so far, but I have no idea how to change the logos (images).
Thats why I tried to call this: CALL 1-20 updateImage(“logoA”, “images/logos/EHC.png”)
updateImage is a function of E2C_Library and I hoped, that this would work, which does´nt.
images/logos/EHC.png is placed where the matchID.html is located.
What I am doing wrong?
Is there a chance to send all contents in 1 command?
I am not an expert in HTML and neither in Sepo’s library, but have you tried to set the images the same way as you set the texts, just by adding another <componentData> node for each of the images to the XML string?
Not really but it’s realistic anyway. By the way, the Swiss flag should not be that distorted, Officially the flag is a square, but there is also a rectangle version around…
Yes I know. Usually flags like the Swiss one, will be shown also as rectangle with some added colored space to keep the original dimensions. I did not took the time to prepare this, as I was to excited, that it was working.
As soon I have it working from my Client, I would finally give a feedback for those who are also facing this question.
It was hard for me to find out how to load an HTML-Template, as it was to easy to load Images and Videos.
To fill the template with some content was even harder to find out. Thats why I would like to share this:
Text-Objects are named with _home, _away, _period, _hpoint, _apoint
Images are hflagge and aflagge. The path could send as absolute path or like the example as relative path.