Squeak Class Documentation category index | class index  
 
MPEGMoviePlayerMorph
  category: MPEG-Player
  superclass: AlignmentMorph
  subclasses:

I provide the user-interface for playing MPEG movies, including play/stop/rewind buttons and volume and position sliders. To create an instance of me, evaluate:

MPEGMoviePlayerMorph new openInWorld

Then use the "open" button to open an MPEG movie file. This class supplies the front panel; the real work is done by MPEGDisplayMorph and StreamingMP3Sound.

instance methods
  drawing
  drawOn:

  initialization
  initialize

  private
  addButtonRow
addPositionSlider
addVolumeSlider
buttonFillStyle
buttonName:action:
moviePlayerFillStyle

  stepping
  step
stepTime

class methods
  parts bin
  descriptionForPartsBin

instance methods
  drawing top  
 

drawOn:

Optimization: Do not draw myself if the movie player is one of my submorphs and the only damage is contained within it. This avoids overdrawing while playing a movie.


  initialization top  
 

initialize


  private top  
 

addButtonRow


 

addPositionSlider


 

addVolumeSlider


 

buttonFillStyle


 

buttonName:action:


 

moviePlayerFillStyle


  stepping top  
 

step

Update the position slider from the current movie position.


 

stepTime

Update the position slider a few times a second.


class methods
  parts bin top  
 

descriptionForPartsBin

If the receiver is a member of a class that would like to be represented in a parts bin, answer the name by which it should be known, and a documentation string to be provided, for example, as balloon help. When the 'nativitySelector' is sent to the 'globalReceiver', it is expected that some kind of Morph will result. The parameters used in the implementation below are for documentation purposes only!