guacamole-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Jumper <mjum...@apache.org>
Subject Re: Is possible to play local .rec files on player?
Date Sat, 23 Mar 2019 22:34:33 GMT
On Thu, Mar 21, 2019 at 6:54 AM genesis <gguth@live.com> wrote:

> I have a situation that the user is able to download the .rec file to its
> machine. I followed the  playback.js example
> <
> https://github.com/apache/guacamole-client/blob/00d464b51181d04e123472050833aa265dfdfee2/doc/guacamole-playback-example/src/main/webapp/playback.js>
>
> and implement a similar player. If the file is stored on some cloud I have
> the url and it works fine. My doubt is how to play local files? Like
> Passing
> the octet-stream instead of the url, is it possible?
>
>
>
>          var tunnel = new Guacamole.StaticHTTPTunnel(RECORDING_URL);
>
>  Here I dont have the "RECORDING_URL" but the file itself stored on the
> users machine.


You can obtain a blob URL after the user chooses the file locally:

https://developer.mozilla.org/en-US/docs/Web/API/File/Using_files_from_web_applications

- Mike

Mime
View raw message