MP4PlayerController.h
上传用户:sun1608
上传日期:2007-02-02
资源大小:6116k
文件大小:1k
源码类别:

流媒体/Mpeg4/MP4

开发平台:

Visual C++

  1. #import <Cocoa/Cocoa.h>
  2. #import <player_session_wrap.h>
  3. @interface MP4PlayerController : NSObject
  4. {
  5.     CPS* player;
  6.     CMQ* master_queue;
  7.     SDL_sem *master_sem;
  8.     NSString* filename;
  9.     enum {
  10.         CLOSED,
  11.         PLAYING,
  12.         NOT_PLAYING
  13.     } state;
  14.     BOOL syncThreadStarted;
  15.     
  16.     int screenSize;
  17.     BOOL needToSeek;
  18.     IBOutlet NSTextField* firstLine;
  19.     IBOutlet NSTextField* secondLine;
  20.     IBOutlet NSButton* pauseButton;
  21.     IBOutlet NSButton* playButton;
  22.     IBOutlet NSButton* stopButton;
  23.     
  24.     IBOutlet NSButton* looping;
  25.     IBOutlet NSPopUpButton* videoSize;
  26. IBOutlet NSComboBox* urlComboBox;
  27. IBOutlet NSPanel* openURLPanel;
  28.     
  29.     IBOutlet NSSlider* time;
  30.     IBOutlet NSSlider* volume;
  31. }
  32. - (id)init;
  33. - (IBAction)adjustVolume:(id)sender;
  34. - (IBAction)seek:(id)sender;
  35. - (IBAction)open:(id)sender;
  36. - (IBAction)pause:(id)sender;
  37. - (IBAction)play:(id)sender;
  38. - (IBAction)stop:(id)sender;
  39. - (IBAction)openURL:(id)sender;
  40. - (IBAction)close:(id)sender;
  41. - (IBAction)setVideoSize:(id)sender;
  42. - (IBAction)setLooping:(id)sender;
  43. - (IBAction)doOpenURL:(id)sender;
  44. - (void)stateHasChanged;
  45. - (void)doOpen;
  46. @end