Inheritance diagram for ExternalPlayer::
Public Methods | |
ExternalPlayer () | |
void | setSequencePath (String seqPath) |
void | close () |
void | setMode (int mode) |
void | start () |
void | seek () |
void | stop () |
void | updateNewFrame (int frameNr) |
Static Public Attributes | |
final int | NO_PLAYER = 0 |
final int | AUDIO_PLAYER = 1 |
final int | FULL_PLAYER = 2 |
|
00022 { 00023 _seeking = true; 00024 _played = false; 00025 _player = null; 00026 00027 _seqPath = null; 00028 } |
|
00031 { 00032 _seqPath = seqPath; 00033 } |
|
00036 { 00037 if(_player != null) _player.close(); 00038 _player = null; 00039 } |
|
00042 { 00043 if(_player != null) _player.close(); 00044 _player = null; 00045 00046 if(mode == NO_PLAYER) return; 00047 if(_seqPath == null) return; 00048 00049 HxCorba.VideoPlayerFactory fac = 00050 ServiceRepository.instance().getVideoPlayerFactory(); 00051 if(fac == null) return; 00052 00053 if(mode == AUDIO_PLAYER) _player = fac.makeAudioPlayer(_seqPath); 00054 else if(mode == FULL_PLAYER) _player = fac.makeFullPlayer(_seqPath); 00055 00056 _played = false; 00057 } |
|
Reimplemented from PlayingAdapter.
00061 { 00062 _seeking = false; 00063 } |
|
Reimplemented from PlayingAdapter.
00067 { 00068 _seeking = true; 00069 } |
|
Reimplemented from PlayingAdapter.
00073 { 00074 if(_player == null) return; 00075 00076 if(!_seeking) { 00077 _player.stop(); 00078 _played = false; 00079 //System.out.println("Video stop"); 00080 } 00081 } |
|
Reimplemented from PlayingAdapter.
00085 { 00086 if(_player == null) return; 00087 00088 if(!_seeking && !_played) { 00089 _player.seek(frameNr); 00090 _player.play(); 00091 //System.out.println("Video seek "+frameNr+" and play"); 00092 _played = true; 00093 } 00094 00095 if(_seeking) { 00096 _player.seek(frameNr); 00097 //System.out.println("Video seek "+frameNr); 00098 } 00099 } |
|
|
|
|
|
|