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

Add fullscreen option. #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ It takes the following optional parameters to influence the project:
* `--backdrop=FILE` sets a still image to place behind other elements. This can be used to fill in the empty space in the frame.
* `--opening-credits=FILE[:DURATION]` and `--closing-credits=FILE[:DURATION]` will add credits to project. These can either be videos or still images (which will default to 3 seconds duration). These options can be repeated to add multiple credits.
* `--annotations` will include whiteboard annotations and red dot cursor to slides.
* `--fullscreen` shows slides or screenshare in fullscreen and webcam over it.

Some accepted `TIME` formats:

Expand Down
4 changes: 3 additions & 1 deletion make-xges.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Presentation:
def __init__(self, opts):
self.opts = opts
self.cam_width = round(opts.width * opts.webcam_size / 100)
self.slides_width = opts.width - self.cam_width
self.slides_width = opts.width if self.opts.fullscreen else opts.width - self.cam_width

self.timeline = GES.Timeline.new_audio_video()

Expand Down Expand Up @@ -454,6 +454,8 @@ def main(argv):
help='File to use as closing credits (may be repeated)')
parser.add_argument('--annotations', action='store_true', default=False,
help='Add annotations to slides (requires inkscape)')
parser.add_argument('--fullscreen', action='store_true', default=False,
help='Show slides/screenshare in fullscreen and webcam over it')
parser.add_argument('basedir', metavar='PRESENTATION-DIR', type=str,
help='directory containing BBB presentation assets')
parser.add_argument('project', metavar='OUTPUT', type=str,
Expand Down