Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to manipulate the size of the output? #16

Closed
TilmanGriesel opened this issue Jul 18, 2014 · 3 comments
Closed

How to manipulate the size of the output? #16

TilmanGriesel opened this issue Jul 18, 2014 · 3 comments

Comments

@TilmanGriesel
Copy link

Hi, thank you for the great library 👍
But one big question: How can I change the size of the output video (video canvas)?
I looked into the jsmpg.js an I think that the canvas always applies the video width (line 515/516).

Thanks in advance,
Tilman

@phoboslab
Copy link
Owner

jsmpeg only sets the canvas' internal size. You can still resize the output element using CSS.

<canvas id="video" style="width: 640px; height: 480px"/>

@TilmanGriesel
Copy link
Author

Now I feel a bit stupid :) or I think to complicated sometimes. I was a bit confused because the example html set the size via width="640" height="480" and I thought that had some reason. Nevermind ... Thank you!

@phoboslab
Copy link
Owner

Well, the example html didn't make much sense. The above commit should make a bit clearer. Thanks for bringing this up :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants