ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* question about multimedia renderings
@ 2023-01-15 21:49 Pablo Rodriguez via ntg-context
  2023-01-16  1:42 ` Michal Vlasák via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2023-01-15 21:49 UTC (permalink / raw)
  To: ConTeXt users; +Cc: Pablo Rodriguez

Dear list,

I’m planning to add an explanation about multimedia inclusion to the
wiki, but first I wanted to discuss an issue I have found.

I have the following sample (adapted from scrn-wid.mklx):

  \setupinteraction[state=start]
  \starttext
  \null\page
  \definerenderingwindow[myrenderingwindow]
    [width=\textwidth, height=\textwidth,
     %openpageaction=StartCurrentRendering,
     %closepageaction=StopCurrentRendering,
     openpageaction=StartRendering{\currentrendering},
     closepageaction=StopRendering{\currentrendering},
     framecolor=red]
  \startTEXpage[offset=1em, pagestate=start]
  \userendering[key-name][video/mp4][video.mp4]
    [embed=yes,
     auto,
     ]
  \placerenderingwindow[myrenderingwindow][key-name]
  \stopTEXpage
  \null\page
  \stoptext

\userendering[][][auto] would enable automatic play or stop when the
page with the rendering is reached or left (respectively).

I cannot get it working. Neither do work the commented lines in
\definerenderingwindow.

Inspecting the PDF code, the screen annotation only gets an additional
actions dictionary
(https://opensource.adobe.com/dc-acrobat-sdk-docs/standards/pdfstandards/pdf/PDF32000_2008.pdf#G11.2096829)
with /PO and /PC entries, when open and close page actions are set to
StartRendering{\currentrendering} and StopRendering{\currentrendering}.

Just for reference, this is the screen annotation object with the
additional actions dictionary:

  13 0 obj
  <<
    /Type /Annot
    /A <<
      /AN 13 0 R
      /OP 0
      /R 12 0 R
      /S /Rendition
    >>
    /AA <<
      /PC <<
        /AN 13 0 R
        /OP 1
        /R 12 0 R
        /S /Rendition
      >>
      /PO <<
        /AN 13 0 R
        /OP 0
        /R 12 0 R
        /S /Rendition
      >>
    >>
    /Border [ 0 0 0 ]
    /P 14 0 R
    /Subtype /Screen
    /T <FEFF006B00650079002D006E0061006D0065>
    /Rect [ 12.353668 12.353668 437.54664 437.54664 ]
  >>
  endobj

And this is what I get with \userendering[][][auto]:

  13 0 obj
  <<
    /Type /Annot
    /A <<
      /AN 13 0 R
      /OP 0
      /R 12 0 R
      /S /Rendition
    >>
    /Border [ 0 0 0 ]
    /P 14 0 R
    /Subtype /Screen
    /T <FEFF006B00650079002D006E0061006D0065>
    /Rect [ 12.353668 12.353668 437.54664 437.54664 ]
  >>
  endobj

Could anyone be so kind to confirm the issue?

Many thanks for your help,

Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-01-16 16:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-15 21:49 question about multimedia renderings Pablo Rodriguez via ntg-context
2023-01-16  1:42 ` Michal Vlasák via ntg-context
2023-01-16 16:48   ` Pablo Rodriguez via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).