On Thu, Jan 11, 2018 at 10:34 AM, genesis <[email protected]> wrote:

> I have an angular app wich reproduces the video record of the session. Its
> working fine but i cannot find how to fit it on a modal. I used the
> guacamole-playback-example project as model. There“s a scale method on the
> Guacamole.Display object which I think is the way to go.
>
>
Yes.

My html is something like:
>
>          <div class="modal-body">
>            <div id="player">
>              <div id="display">
>              </div>
>            </div>
>          </div>
>
> And on my component.ts class I do:
>          // ..some code
>          this.display = $('#display');
>          this.recordingDisplay.onresize = (width, height) => {
>               this.recordingDisplay.scale(this.display.outerWidth() /
> width);
>          }
>
> But it doesnt fit correctly, as you can see on the image  link
> <https://ibb.co/gkNgnR>   .
> What im missing here?
>
>
It's hard to see what you're aiming for with the provided image, but based
on the quoted code, I assume the issue is that you're only fitting the
display based on the width of the available area. In the case of the
example code within guacamole-client, fitting the width is all that was
needed, but you may also want take the height into account.

- Mike

Reply via email to