ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: Movies
Date: Thu, 09 Feb 2006 00:14:35 +0100	[thread overview]
Message-ID: <43EA7B5B.7090705@wxs.nl> (raw)
In-Reply-To: <C1E66C15-C6F5-4A64-9D90-69C98442C2EE@science.uva.nl>

Hans van der Meer wrote:
> That's what I had and somehow could not get working again.
>   
you mean that you saw no movie?
> I therefore did some experimenting and now I have something working:
>
>
> In the above I first thought "StartMovie" etc would work but  
> "StartRendering" etc did the trick. As of the special purpose of  
> StartMovie and friends I am still in the dark.
>   
\externalfigure[whatever.mov][....,label=somelabel]

\goto{start}[StartMovie{somelabel}]

(i didn't test it; this is typically one of the areas where pdf specs 
and viewers evolve over time; what works in version 3 viewers may fail 
in version 5; normally i adapt that kind of stuff when i run into it / 
need it (with the danger of breaking oder stuff); one problem is that 
there is a relationship (now) betwene the page where the resource is and 
where it is activated [it's that kind of dependencies that has shown 
up]; the same for sounds: resources need to be on the same page as where 
they are clled (which over time made some examples fail when viewers 
changed their expectations).

> \definerenderingwindow
>     [movie]
>     [width=1.33\makeupheight,height= 
> \makeupheight,strut=no,offset=0pt,frame=off,
>      background=color,backgroundcolor=BackgroundColor,
>      closepageaction=StopCurrentRendering]
>
> I had to remove the openpageaction from the example in the context  
> fle and then it stopped putting the movie on each and every page once  
> it had been opened.
>   
the rendering mechanism is using the pdf 1.5/6 features i.e. separation 
between resource and rendering view (buggy in acrobat 6, but may be 
better by now) ; there is some example code in x-res-50 etc

> Finally typesetting the movie with:
>
> \useexternalrendering[purple][video/quicktime][purpleshort.mov]
> \defineoverlay
> 	[theimage]
> 	[{\externalfigure[themovie][width=\overlaywidth,height= 
> \overlayheight,type=jpg]}]
> starttext
> \hfill\framed[offset=0pt,strut=no,background={foreground,theimage}]
> 	{\placerenderingwindow[movie][themovie]}\hfill\null
>
> As you can seen I placed the movie in a framed. This because I wanted  
> the still image showing over it (you mentioned a "preview=yes" I will  
> later experiment with it. I guess it also will work here?
>   
not sure, but overlays are ok (since the undocumented behaviour of 
viewers is that the annots end up on top when activated, they have their 
own rendering layer (and as a side effect cannot be made invisible in 
pdf layers; a typical example of pdf feature creap without forseeing 
implicationswhich then needs to be repaired in later pdf specs/viewers)

> The PROBLEM I encountered was that I thought to change the  
> renderingwindow's background with a local call to
> 	\setuprenderingwindow[movie][parameters leading to the overlay as in  
> framed]
> but to no avail.
> Maybe I did something wrong here? Could it be with the naming and/or  
> the number of parameters in the setup?
>   
dunno, if you send me a zip with all resources and a small test file i 
can have a look
> Anyway, the stuff seems to work. From your answer I guess a sort of  
> manual is still far way. Pity.
>   
well, it should go in the widgets manual, but only when the pdf specs is 
stable for this; there is some example code in the x-res files (media 
libraires and so)
> If you can spare some further hints, if necessary, I will be grateful  
> as always.
>
>   
Hans
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>   


-- 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

  reply	other threads:[~2006-02-08 23:14 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-08 14:45 Movies Hans van der Meer
2006-02-08 16:19 ` Movies Hans Hagen
2006-02-08 20:37   ` Movies Hans van der Meer
2006-02-08 23:14     ` Hans Hagen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-01-18  4:44 Movies David Arnold
2008-01-18  7:51 ` Movies Andrea Valle
2008-01-18  8:11   ` Movies luigi scarso
2008-01-18 12:42 ` Movies Miguel Queiros
2000-06-01 19:26 Movies David Arnold
2000-06-01 23:07 ` Movies Hans Hagen
2000-06-01 23:08 ` Movies Hans Hagen
1999-06-09 11:58 movies Hans Hagen
1999-06-09 11:10 Movies Gilbert van den Dobbelsteen
1999-06-09  5:03 Movies David Arnold
1999-06-09  9:35 ` Movies Hans Hagen

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=43EA7B5B.7090705@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /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).