Giter VIP home page Giter VIP logo

Comments (9)

ousia avatar ousia commented on June 12, 2024 1

The new button is here:

media-play

I think it is a visible option for most of the color combinations (I have tested 😅).

Many thanks for your help.

from pympress.

ousia avatar ousia commented on June 12, 2024

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:

una-now-fs8

Maybe a way to do this would be to add a play sign:

uncomp-audio-fs8

Just in case it might help (it could be a workaround for video too).

Many thanks for your help.

from pympress.

ousia avatar ousia commented on June 12, 2024

To test the button, you may use this PDF.

from pympress.

Cimbali avatar Cimbali commented on June 12, 2024

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:

  1. a placeholder (e.g. an image or something),
  2. the first frame of the video (typically done with a video started and immediately paused)
  3. 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.

ousia avatar ousia commented on June 12, 2024

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.

Cimbali avatar Cimbali commented on June 12, 2024

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.

ousia avatar ousia commented on June 12, 2024

@Cimbali,

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.

Cimbali avatar Cimbali commented on June 12, 2024

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.

ousia avatar ousia commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.