JakobKallin / RPG-Ambience

Bring your tabletop RPGs to life with sound and visuals.
http://rpg-ambience.com
GNU General Public License v3.0
36 stars 9 forks source link

Media files cannot be selected or drag-and-dropped #8

Closed JakobKallin closed 11 years ago

JakobKallin commented 11 years ago

At present, image and sound files can only be used in adventures by specifying their URL or file path. This is due to several factors:

JakobKallin commented 11 years ago

This could also be solved using IndexedDB, which is supported in Chrome, Firefox, and (reportedly) IE10. Since the URLs are only valid for the current session, there is no risk of old files lying around. If support for manually defining paths and URLs is dropped, this could make file selection and drag-and-drop possible in current browsers.

JakobKallin commented 11 years ago

On second thought, the fact that IndexedDB URLs are not persisted over sessions means that auto-saving adventures is not possible, unlike a solution with local file paths or filesystem:// URLs.

JakobKallin commented 11 years ago

It turns out that the data inside the IndexedDB is actually persisted over sessions; it's the object URLs that are cleared when the window closes. This means that auto-saving adventures is indeed possible using IndexedDB.