Comments (9)
The new button is here:
I think it is a visible option for most of the color combinations (I have tested
Many thanks for your help.
from pympress.
I have just noticed that slides may embed audio in slides with text and/or images.
This uncompressed PDF document with audio on second slide gives the following:
Maybe a way to do this would be to add a play sign:
Just in case it might help (it could be a workaround for video too).
Many thanks for your help.
from pympress.
To test the button, you may use this PDF.
from pympress.
Thanks for your input @ousia !
Would it be possible that when slides contain videos the first frame could be displayed as next slides?
I have just noticed that slides may embed audio in slides with text and/or images.
So on this, I think it depends on whether the video is specifying:
- a placeholder (e.g. an image or something),
- the first frame of the video (typically done with a video started and immediately paused)
- nothing
I think it’s probably not great to add anything in situation 1., and in situation 2. we can reasonably only do this in the current slide, so adding a frame looking like a play button like you propose would be reasonable on the next-slides. In situation 3. I’m not entirely sure, the question is what the use case is: do people just not bother to put a placeholder but want one? Or do people intentionally want a transparent video frame that can then overlay other content? Anything we do in this latest case has to be presenter-side only and not content-side. Maybe if the overlay is very transparent (like 20%?) we can add it anyway?
from pympress.
Many thanks for your reply, @Cimbali.
Maybe if the overlay is very transparent (like 20%?) we can add it anyway?
Well, I proposed #646464bf (75% opacity), #64646432 (20% opacity) would be hardly visible in most cases.
I see your point about not adding extra elements to the slides, but I think it might make sense in some situations.
Embedded audio doesn’t really have anything to display (but just to play), such as in this PDF document.
In that document, the screen annotation has a zero-size /Rect [ 86.61913 5.551174 86.61913 5.551174 ]
.
For those cases, having an image such as the one above (with #646464bf) could be fine
When you have video (such as in this PDF document), the screen annotation needs a visible rectangle to display the image.
In the document with video, it includes /Rect [ 10.36114 10.36114 435.5541 435.5541 ]
.
At least in the video sample, autoplay is enabled and no icon is included (for what it should be a pushbutton, according to the spec).
Just in case it might help.
from pympress.
You’re right, I haven’t looked at the spec to figure out if there’s something defined there. However it doesn’t look like annotations’ appearance characteristics dictionaries (the MK
field in Screen
annotations) are accessible currently through Poppler. I’m already having a hard time getting additional action info merged even by writing it all out myself… I think for now we have to figure out a sensible default that does not rely on extracting more info from the PDF, unfortunately. That should include what the default values are in the spec.
Basically, I’m worried about people intentionally setting an intentionally-transparent playable annotation on top of other content. Is it OK, or too annoying, to set an overlay on top like you propose (on the presenter side only)? This also should take into account that we currently don’t implement “poster” or “first frame” display.
Also zero-sized rects are kind of annoying -- if you don’t have autoplay, then there’s no way of activating that annotation, as there is no real area on which to click. Even with the button you propose, I thought of imagined it being on the area defined by the annotation rect. Otherwise it gets really messy as soon as you have e.g. 2 sounds on the same page.
Starting from #273 we no longer get a black rectangle on annotations playing audio files, does that mean (if you’re generating these PDFs yourself) that you could now have these annotations have a non-zero area?
from pympress.
many thanks for your reply.
Zero sized rects might make sense when there is nothing to be displayed and any media contained in them is auto-played (otherwise, I agree, such rects would be pure nonsense).
I realize I forgot to explicitly tell the most important feature of my proposal: it should be added only in next slides that contain media, the current slide should always be displayed with no additions (to anyone, including the presenter) .
I intend the overlaid media logo to be a warning for the presenter, such as “next slide x contains media”.
I hope it is clearer now and it might make more sense to adapt it.
from pympress.
I intend the overlaid media logo to be a warning for the presenter
I understand, but I still would prefer to only add something on the annotation area.
from pympress.
I intend the overlaid media logo to be a warning for the presenter
I understand, but I still would prefer to only add something on the annotation area.
Fine for me, but I think this could be problematic for the people who use that area to write annotations.
from pympress.
Related Issues (20)
- Play embedded media with xelatex HOT 4
- How to support presentation remote that sends weird keys and set custom key bindings HOT 3
- player buttons enabled by default (when they should be disabled) HOT 2
- cannot place next slides vertically HOT 2
- GIF in pympress didn't animate Ubuntu 20.04
- Homebrew Pympress does not detect manual gstreamer installation HOT 9
- Look into Gtk 4
- Remove references to deprecated distutils in setup.py HOT 1
- Please create a new release HOT 5
- zooms back to an overview screen HOT 1
- Wrongly sized slides in deck overview HOT 1
- Fix the whole class attribute shenanigans HOT 2
- Audio is played twice at the same time HOT 2
- Pympress (1.5.1+dfsg-3build1) is not loading when using i3 HOT 7
- Pympress crashes on start on Fedora 38 beta. HOT 1
- get_primary_monitor() returns None HOT 2
- Notes are misaligned HOT 2
- Improve Annotations HOT 9
- Undo Clears Slide HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pympress.