You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Maria Jose Esteve <mj...@iest.com> on 2022/05/31 08:22:57 UTC

Implementaciones en el SDK para compilaciones SWF/JS

Hi, a few days ago I helped cristallium with his PR #1200 (Video and audio player based on html5 api).
We ran into the compatibility problem between JS only and SWF builds: with ant and with Maven, without swf, they were successful, but with the maven option "option-with-swf" it failed.

In this case we have 3 classes in HTML5: MediaElement, AudioElement and VideoElement, and in Jewel: AudioPlayer and VideoPlayer (This is where the Maven compilation error occurred).
Next, I show you the changes I made to fix it... (left part: doesn't compile, right part: compiles ok)

AudioPlayer.as [1]
VideoPlayer.as [2]

I have never implemented a mixed application (js/swf) and I would like to be clear about the differences to do it right.
Are the changes correct? What guidelines need to be clear?

[1] https://drive.google.com/file/d/1lJrrzxRoDGka7k8CcAX3e7l6zRwkvxQE/view?usp=sharing
[2] https://drive.google.com/file/d/11ZG1zKD2V3oiNuUhn30khUC4wRewRFcH/view?usp=sharing

Thx

Hiedra