html5Player

hh hh at hyperhh.de
Thu Jan 30 13:00:59 EST 2020


> BR wrote: can you save anything from that view?

1. Generally yes.

But this needs ALWAYS, with all modern browsers,
manual user interaction: click a button or select
from a menu.
Similarly user interaction (click, drag and drop)
is needed to read in such objects.

* STACKS
Panels with an LC icon at top left are stacks:

We can save them to the downloads folder (will be
implemented in the webIDE), except the Player/IDE
itself. Or we can save parts of it (images or
text/scripts/prefs) to the downloads folder.

* Image/Pdf/Text/Audio/Video
Panels with an LC icon at top left are javascript
extensions that use callbacks to the main engine:

Saving is browser/server dependent. You have the
browser interface available for actions with manual
user interaction:

For example
rightClick a PDF to save it to your local filesystem
or print it via your OS printing (if the pdf is set
to allow this) or
download a video/audio (if the audio/video is set to
allow this).

2. For the LCPlayer ...

... saving stacks makes sense only for stacks that
are downloaded from server and then changed in the
LCPlayer, like stack "ImageView" that stores local
images for display in a "gallery".
But this stack is part of the LCPlayer and will not
run correctly without the main stack.

Of course you can let the user download stacks that
are "modules" (e.g. in a zip) and then import such
modules into the LCPlayer (via the "click/drop local
stack"). This would work with LC 9-stacks even on
every OS that runs the LCPlayer, even on a Raspi 3/4.






More information about the use-livecode mailing list