ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Pablo Rodriguez via ntg-context <ntg-context@ntg.nl>
To: ConTeXt users <ntg-context@ntg.nl>
Cc: Pablo Rodriguez <oinos@gmx.es>
Subject: question about multimedia renderings
Date: Sun, 15 Jan 2023 22:49:10 +0100	[thread overview]
Message-ID: <1d8f651a-dfa2-7fc1-815a-a6b564ee9908@gmx.es> (raw)

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
___________________________________________________________________________________

             reply	other threads:[~2023-01-15 21:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-15 21:49 Pablo Rodriguez via ntg-context [this message]
2023-01-16  1:42 ` Michal Vlasák via ntg-context
2023-01-16 16:48   ` Pablo Rodriguez via ntg-context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1d8f651a-dfa2-7fc1-815a-a6b564ee9908@gmx.es \
    --to=ntg-context@ntg.nl \
    --cc=oinos@gmx.es \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).