# seqPlayer

## PURPOSE

Simple GUI to play seq files.

## SYNOPSIS

function seqPlayer( fName, dispFunc )

## DESCRIPTION

     Simple GUI to play seq files.

     Use arrow keys to play the video. Controls are as follows:
     (1) If stopped: [L] play backward, [R] play forward
     (2) If playing forward: [L] halve speed, [R] double speed, [U/D] stop
     (3) If playing backward: [L] double speed, [R] halve speed,[U/D] stop
     You can explicitly enter a frame or use the slider to jump in the video.

     One can pass in a function handle dispFunc, where "hs=dispFunc(frame)"
     performs additional custom display for the given frame (and returns the
     handles for any created objects).

     USAGE
      seqPlayer( [fName], [dispFunc] )

     INPUTS
      fName    - optional seq file to load at start
      dispFunc - allow custom display per frame

     OUTPUTS

     EXAMPLE
      load images; [h,w,n]=size(video);
      info=struct('height',h,'width',w,'codec','monojpg','fps',20);
      sw=seqIo('video','w',info); for t=1:n, sw.addframe(video(:,:,t)); end
      sw.close(); seqPlayer('video');

     See also SEQIO

     Piotr's Image&Video Toolbox      Version 2.61
     Copyright 2012 Piotr Dollar.  [pdollar-at-caltech.edu]
     Please email me if you find bugs, or have suggestions or questions!
     Licensed under the Simplified BSD License [see external/bsd.txt]