PageRenderTime 1609ms queryTime 51ms sortTime 1ms getByIdsTime 1368ms findMatchingLines 121ms

100+ results results for 'os.system mplayer %s' (1609 ms)

Not the results you expected?
NotificationPlayer.java https://github.com/nadlabak/android_frameworks_base.git | Java | 360 lines
                    
27import android.os.PowerManager;
                    
28import android.os.SystemClock;
                    
29import android.provider.Settings;
                    
37/* TI FM UI port -start */
                    
38import android.os.SystemProperties;
                    
39/* TI FM UI port -stop */
                    
109                    player.start();
                    
110                    if (mPlayer != null) {
                    
111                        mPlayer.release();
                    
112                    }
                    
113                    mPlayer = player;
                    
114                }
                    
180                    if (mDebug) Log.d(mTag, "STOP");
                    
181                    if (mPlayer != null) {
                    
182                        long delay = SystemClock.uptimeMillis() - cmd.requestTime;
                    
                
SampleMediaRouterActivity.java https://gitlab.com/brian0218/rk3188_rk3066_r-box_android4.4.2_sdk | Java | 748 lines
                    
34import android.os.Bundle;
                    
35import android.os.SystemClock;
                    
36import android.support.v4.app.FragmentManager;
                    
108    private final SessionManager mSessionManager = new SessionManager("app");
                    
109    private Player mPlayer;
                    
110
                    
132
                    
133            mPlayer = Player.create(SampleMediaRouterActivity.this, route);
                    
134            mPlayer.updatePresentation();
                    
134            mPlayer.updatePresentation();
                    
135            mSessionManager.setPlayer(mPlayer);
                    
136            mSessionManager.unsuspend();
                    
152            }
                    
153            mPlayer.updatePresentation();
                    
154            mPlayer.release();
                    
                
MediaPlaybackService.java https://github.com/ldnladiesman217/android_packages_apps_StockMusic.git | Java | 1283 lines
                    
42import android.os.PowerManager;
                    
43import android.os.SystemClock;
                    
44import android.os.PowerManager.WakeLock;
                    
105    
                    
106    private MultiPlayer mPlayer;
                    
107    private String mFileToPlay;
                    
168                        mCurrentVolume = 0f;
                    
169                        mPlayer.setVolume(mCurrentVolume);
                    
170                        play();
                    
178                        }
                    
179                        mPlayer.setVolume(mCurrentVolume);
                    
180                    }
                    
294        // Needs to be done in this thread, since otherwise ApplicationContext.getPowerManager() crashes.
                    
295        mPlayer = new MultiPlayer();
                    
296        mPlayer.setHandler(mMediaplayerHandler);
                    
                
MediaPlaybackService.java https://gitlab.com/optlasuta/Programming-Mobile-Applications-for-Android-Handheld-Systems | Java | 1270 lines
                    
48import android.os.PowerManager;
                    
49import android.os.SystemClock;
                    
50import android.os.PowerManager.WakeLock;
                    
111    
                    
112    private MultiPlayer mPlayer;
                    
113    private String mFileToPlay;
                    
177                    }
                    
178                    mPlayer.setVolume(mCurrentVolume);
                    
179                    break;
                    
186                    }
                    
187                    mPlayer.setVolume(mCurrentVolume);
                    
188                    break;
                    
249                                mCurrentVolume = 0f;
                    
250                                mPlayer.setVolume(mCurrentVolume);
                    
251                                play(); // also queues a fade-in
                    
                
NotificationPlayer.java https://gitlab.com/AvayKumar/android_frameworks_base | Java | 392 lines
                    
26import android.os.PowerManager;
                    
27import android.os.SystemClock;
                    
28import android.util.Log;
                    
115                    player.start();
                    
116                    if (mPlayer != null) {
                    
117                        mPlayer.release();
                    
118                    }
                    
119                    mPlayer = player;
                    
120                }
                    
185                    if (mDebug) Log.d(mTag, "STOP");
                    
186                    if (mPlayer != null) {
                    
187                        long delay = SystemClock.uptimeMillis() - cmd.requestTime;
                    
190                        }
                    
191                        mPlayer.stop();
                    
192                        mPlayer.release();
                    
                
FmRecorder.java https://gitlab.com/vitek999/device_oukitel_orange | Java | 807 lines
                    
47import android.os.Environment;
                    
48import android.os.SystemClock;
                    
49import android.provider.MediaStore;
                    
107    // player use for play recording file
                    
108    private MediaPlayer mPlayer = null;
                    
109    // recorder use for record file
                    
238
                    
239        mPlayer = new MediaPlayer();
                    
240        try {
                    
240        try {
                    
241            mPlayer.setDataSource(mRecordFile.getAbsolutePath());
                    
242            Log.d(TAG, "MediaPlayer.setDataSource(" + mRecordFile.getAbsolutePath() + ")");
                    
274        if (null == mPlayer || STATE_PLAYBACK != mInternalState ||
                    
275                (null != mPlayer && !mPlayer.isPlaying())) {
                    
276            Log.w(TAG, "stopPlayback called in wrong state!!");
                    
                
AsyncPlayer.java https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | Java | 242 lines
                    
21import android.os.PowerManager;
                    
22import android.os.SystemClock;
                    
23import android.util.Log;
                    
65            player.start();
                    
66            if (mPlayer != null) {
                    
67                mPlayer.release();
                    
68            }
                    
69            mPlayer = player;
                    
70            long delay = SystemClock.uptimeMillis() - cmd.requestTime;
                    
100                    if (mDebug) Log.d(mTag, "STOP");
                    
101                    if (mPlayer != null) {
                    
102                        long delay = SystemClock.uptimeMillis() - cmd.requestTime;
                    
105                        }
                    
106                        mPlayer.stop();
                    
107                        mPlayer.release();
                    
                
MainActivity.java https://gitlab.com/vicidroiddev/platform_development | Java | 724 lines
                    
30import android.os.Handler;
                    
31import android.os.SystemClock;
                    
32import android.support.v4.app.FragmentManager;
                    
111    private final SessionManager mSessionManager = new SessionManager("app");
                    
112    private Player mPlayer;
                    
113
                    
135
                    
136            mPlayer = Player.create(MainActivity.this, route);
                    
137            mPlayer.updatePresentation();
                    
137            mPlayer.updatePresentation();
                    
138            mSessionManager.setPlayer(mPlayer);
                    
139            mSessionManager.unsuspend();
                    
204        if (savedInstanceState != null) {
                    
205            mPlayer = (Player) savedInstanceState.getSerializable("mPlayer");
                    
206        }
                    
                
WindowSurfacePlacer.java https://gitlab.com/amardeep434/nitro_base | Java | 1047 lines
                    
61import android.os.RemoteException;
                    
62import android.os.SystemClock;
                    
63import android.os.Trace;
                    
146    }
                    
147    private final LayerAndToken mTmpLayerAndToken = new LayerAndToken();
                    
148
                    
                
Avrcp.java https://gitlab.com/Atomic-ROM/packages_apps_Bluetooth | Java | 1089 lines
                    
49import android.os.ServiceManager;
                    
50import android.os.SystemClock;
                    
51import android.util.Log;
                    
260        private int mPlayStatusChangedNT;
                    
261        private int mPlayerStatusChangeNT;
                    
262        private int mTrackChangedNT;
                    
288            mPlayStatusChangedNT = NOTIFICATION_TYPE_CHANGED;
                    
289            mPlayerStatusChangeNT = NOTIFICATION_TYPE_CHANGED;
                    
290            mTrackChangedNT = NOTIFICATION_TYPE_CHANGED;
                    
320
                    
321    private PlayerSettings mPlayerSettings = new PlayerSettings();
                    
322    private class localPlayerSettings {
                    
                
CallsManager.java https://gitlab.com/Atomic-ROM/packages_services_Telecomm | Java | 1211 lines
                    
24import android.os.Message;
                    
25import android.os.SystemProperties;
                    
26import android.os.Trace;
                    
165
                    
166    private static InCallTonePlayer.Factory mPlayerFactory;
                    
167    private String mLchSub = null;
                    
199        InCallTonePlayer.Factory playerFactory = new InCallTonePlayer.Factory(mCallAudioManager, lock);
                    
200        mPlayerFactory = playerFactory;
                    
201        mRinger = new Ringer(mCallAudioManager, this, playerFactory, context);
                    
                
MediaSessionService.java https://gitlab.com/SkyDragon-OSP/platform_frameworks_support | Java | 1021 lines
                    
29import android.os.Message;
                    
30import android.os.SystemClock;
                    
31import android.support.v4.media.MediaMetadataCompat;
                    
129
                    
130    private MediaPlayer mPlayer;
                    
131    private MediaSessionCompat mMediaSession;
                    
171
                    
172    // A runnable object which will delay the execution of mPlayer.stop()
                    
173    private Runnable mDelayedStopRunnable = new Runnable() {
                    
175        public void run() {
                    
176            mPlayer.stop();
                    
177            mMediaSession.setPlaybackState(createPlaybackStateBuilder(
                    
239        mMediaPlayerHandler.removeCallbacksAndMessages(null);
                    
240        if (mPlayer != null) {
                    
241            // stop and release the media player since it's no longer in use
                    
                
SampleMediaRouterActivity.java https://gitlab.com/SkyDragon-OSP/platform_frameworks_support | Java | 803 lines
                    
30import android.os.Handler;
                    
31import android.os.SystemClock;
                    
32import android.provider.Settings;
                    
112    private final SessionManager mSessionManager = new SessionManager("app");
                    
113    private Player mPlayer;
                    
114
                    
136
                    
137            mPlayer = Player.create(SampleMediaRouterActivity.this, route, mMediaSession);
                    
138            if (isPresentationApiSupported()) {
                    
138            if (isPresentationApiSupported()) {
                    
139                mPlayer.updatePresentation();
                    
140            }
                    
140            }
                    
141            mSessionManager.setPlayer(mPlayer);
                    
142            mSessionManager.unsuspend();
                    
                
MediaController2ImplBase.java https://gitlab.com/SkyDragon-OSP/platform_frameworks_support | Java | 1263 lines
                    
121import android.os.ResultReceiver;
                    
122import android.os.SystemClock;
                    
123import android.support.v4.media.MediaBrowserCompat;
                    
183    @GuardedBy("mLock")
                    
184    private int mPlayerState;
                    
185    @GuardedBy("mLock")
                    
                
CameraSound.java https://github.com/Kali-/android_frameworks_base.git | Java | 217 lines
                    
20import android.media.MediaPlayer;
                    
21import android.os.SystemProperties;
                    
22import android.util.Log;
                    
112        private int mSoundId;
                    
113        private MediaPlayer mPlayer;
                    
114        private Thread mThread;
                    
146            }
                    
147            mPlayer = new MediaPlayer();
                    
148            try {
                    
148            try {
                    
149                mPlayer.setAudioStreamType(AudioManager.STREAM_SYSTEM_ENFORCED);
                    
150                mPlayer.setDataSource(soundFilePath);
                    
150                mPlayer.setDataSource(soundFilePath);
                    
151                mPlayer.setLooping(false);
                    
152                mPlayer.prepare();
                    
                
MusicPlaybackService.java https://gitlab.com/Tu-dou520/android_packages_apps_Eleven | Java | 1514 lines
                    
50import android.os.RemoteException;
                    
51import android.os.SystemClock;
                    
52import android.provider.MediaStore;
                    
385     */
                    
386    private MultiPlayer mPlayer;
                    
387
                    
487
                    
488    private MusicPlayerHandler mPlayerHandler;
                    
489    private HandlerThread mHandlerThread;
                    
                
MusicControlScreenElement.java https://bitbucket.org/chaos_rom/miui_frameworks.git | Java | 558 lines
                    
11import android.os.Handler;
                    
12import android.os.SystemClock;
                    
13import android.text.TextUtils;
                    
75    private int mMusicStatus;
                    
76    private BroadcastReceiver mPlayerStatusListener = new BroadcastReceiver()
                    
77    {
                    
                
MediaPlaybackService.java https://github.com/kernelzilla/android_packages_apps_Music.git | Java | 1229 lines
                    
42import android.os.PowerManager;
                    
43import android.os.SystemClock;
                    
44import android.os.PowerManager.WakeLock;
                    
117    
                    
118    private MultiPlayer mPlayer;
                    
119    private String mFileToPlay;
                    
225                        mCurrentVolume = 0f;
                    
226                        mPlayer.setVolume(mCurrentVolume);
                    
227                        play();
                    
235                        }
                    
236                        mPlayer.setVolume(mCurrentVolume);
                    
237                    }
                    
                
MediaThrottler.java https://gitlab.com/jonnialva90/iridium-browser | Java | 218 lines
                    
11import android.os.Looper;
                    
12import android.os.SystemClock;
                    
13
                    
35    // Watch dog player. Used to listen to all media server crashes.
                    
36    private MediaPlayer mPlayer;
                    
37
                    
71            synchronized (mLock) {
                    
72                if (mRequestCount == 0 && mPlayer != null) {
                    
73                    mPlayer.release();
                    
73                    mPlayer.release();
                    
74                    mPlayer = null;
                    
75                }
                    
104            synchronized (mLock) {
                    
105                if (mPlayer != null || mRequestCount == 0) return null;
                    
106                mPlayer = MediaPlayer.create(mContext, R.raw.empty);
                    
                
NotificationPlayer.java https://github.com/sandy-slin/android_frameworks_base.git | Java | 344 lines
                    
27import android.os.PowerManager;
                    
28import android.os.SystemClock;
                    
29import android.provider.Settings;
                    
105                    player.start();
                    
106                    if (mPlayer != null) {
                    
107                        mPlayer.release();
                    
108                    }
                    
109                    mPlayer = player;
                    
110                }
                    
176                    if (mDebug) Log.d(mTag, "STOP");
                    
177                    if (mPlayer != null) {
                    
178                        long delay = SystemClock.uptimeMillis() - cmd.requestTime;
                    
181                        }
                    
182                        mPlayer.stop();
                    
183                        mPlayer.release();
                    
                
Blitzn.java https://github.com/rconradharris/blitzn.git | Java | 518 lines
                    
24import android.os.Handler;
                    
25import android.os.SystemClock;
                    
26import android.preference.PreferenceManager;
                    
44	private ChessClock mChessClock;
                    
45	private BlitznChessClockButton mPlayer1ClockButton;
                    
46	private BlitznChessClockButton mPlayer2ClockButton;
                    
110
                    
111		mPlayer1ClockButton = initializeClockButton(Player.ONE,
                    
112				R.id.player1Clock, true, mChessClock, chessPlayer1);
                    
112				R.id.player1Clock, true, mChessClock, chessPlayer1);
                    
113		mPlayer2ClockButton = initializeClockButton(Player.TWO,
                    
114				R.id.player2Clock, false, mChessClock, chessPlayer2);
                    
327		if (player == Player.ONE) {
                    
328			mPlayer2ClockButton.activate();
                    
329			mPlayer1ClockButton.deactivate();
                    
                
MediaThrottler.java https://gitlab.com/0072016/Facebook-SDK- | Java | 224 lines
                    
11import android.os.Looper;
                    
12import android.os.SystemClock;
                    
13
                    
35    // Watch dog player. Used to listen to all media server crashes.
                    
36    private MediaPlayer mPlayer;
                    
37
                    
71            synchronized (mLock) {
                    
72                if (mRequestCount == 0 && mPlayer != null) {
                    
73                    mPlayer.release();
                    
73                    mPlayer.release();
                    
74                    mPlayer = null;
                    
75                }
                    
104            synchronized (mLock) {
                    
105                if (mPlayer != null || mRequestCount == 0) return null;
                    
106                try {
                    
                
Ringer.java https://gitlab.com/Tu-dou520/android_packages_services_Telecomm | Java | 335 lines
                    
26import android.os.Bundle;
                    
27import android.os.SystemVibrator;
                    
28import android.os.Vibrator;
                    
71    private final CallsManager mCallsManager;
                    
72    private final InCallTonePlayer.Factory mPlayerFactory;
                    
73    private final Context mContext;
                    
92        mCallsManager = callsManager;
                    
93        mPlayerFactory = playerFactory;
                    
94        mContext = context;
                    
270                mCallWaitingPlayer =
                    
271                        mPlayerFactory.createPlayer(InCallTonePlayer.TONE_CALL_WAITING);
                    
272                mCallWaitingPlayer.startTone();
                    
                
Metronome.py https://github.com/litdream/Metronome.git | Python | 143 lines
                    
139    os.system("rm -f t.wav")
                    
140    os.system("mplayer a.wav")
                    
141
                    
                
Transitions.java https://github.com/android/platform_frameworks_base.git | Java | 730 lines
                    
36import android.os.RemoteException;
                    
37import android.os.SystemProperties;
                    
38import android.provider.Settings;
                    
83    private final ShellExecutor mAnimExecutor;
                    
84    private final TransitionPlayerImpl mPlayerImpl;
                    
85    private final RemoteTransitionHandler mRemoteTransitionHandler;
                    
111        mAnimExecutor = animExecutor;
                    
112        mPlayerImpl = new TransitionPlayerImpl();
                    
113        // The very last handler (0 in the list) should be the default one.
                    
135        mAnimExecutor = null;
                    
136        mPlayerImpl = null;
                    
137        mRemoteTransitionHandler = null;
                    
179    public void register(ShellTaskOrganizer taskOrganizer) {
                    
180        if (mPlayerImpl == null) return;
                    
181        taskOrganizer.registerTransitionPlayer(mPlayerImpl);
                    
                
NotificationPlayer.java https://gitlab.com/Atomic-ROM/packages_apps_Messaging | Java | 363 lines
                    
25import android.os.PowerManager;
                    
26import android.os.SystemClock;
                    
27
                    
102                    player.start();
                    
103                    if (mPlayer != null) {
                    
104                        mPlayer.release();
                    
105                    }
                    
106                    mPlayer = player;
                    
107                } catch (final Exception e) {
                    
153    private void stopSound(final Command cmd) {
                    
154        if (mPlayer == null) {
                    
155            return;
                    
160        }
                    
161        mPlayer.stop();
                    
162        mPlayer.release();
                    
                
PaintPreviewPlayerTest.java git://github.com/chromium/chromium.git | Java | 218 lines
                    
7import android.graphics.Rect;
                    
8import android.os.SystemClock;
                    
9import android.support.test.InstrumentationRegistry;
                    
53
                    
54    private PlayerManager mPlayerManager;
                    
55    private TestLinkClickHandler mLinkClickHandler;
                    
73        PostTask.postTask(UiThreadTaskTraits.DEFAULT, () -> {
                    
74            mPlayerManager.destroy();
                    
75            destroyed.notifyCalled();
                    
86        initPlayerManager();
                    
87        final View playerHostView = mPlayerManager.getView();
                    
88        final View activityContentView = getActivity().findViewById(android.R.id.content);
                    
111        initPlayerManager();
                    
112        final View playerHostView = mPlayerManager.getView();
                    
113
                    
                
GroundWork.py https://code.google.com/p/groundwork/ | Python | 280 lines
                    
61            time.sleep(5)
                    
62            g=os.system('google-chrome ~/Pictures/video.html')
                    
63            if g <= 0:
                    
103                standard="w=480:h=800:i420:format=rgb32"
                    
104            os.system("(while true; do nc -l 9000; done) | mplayer -demuxer rawvideo -rawvideo "+standard+" -nosound - ")
                    
105            
                    
115                s='480x800'
                    
116            os.system("while true; do nc -l 9000; done | zcat | mplayer -demuxer rawvideo -rawvideo "+standard+" -nosound - ")
                    
117        if mode=='3' and connect=='w' and compression=='n':
                    
148                standard="w=480:h=800:i420:format=rgb32"
                    
149            os.system("while true; do /home/"+user+"/android-sdk-linux_86/platform-tools/adb shell fbread ;done | mplayer -demuxer rawvideo -rawvideo "+standard+" -cache 4096 -fixed-vo -nosound - ")
                    
150        if mode=="1" and connect=="a":
                    
176    def run(self):
                    
177        os.system("nc -l 9003 | mplayer -fixed-vo - ")
                    
178        stream().start()
                    
                
ShowJersey.java https://gitlab.com/0072016/0072016-milk-heis | Java | 201 lines
                    
90	private void updateJersey() {
                    
91		mPlayerNameView.setText(mPlayerName);
                    
92		// We need the extra ""s here because if we don't pass setText a string;
                    
93		// It'll assume we've passed a resource ID
                    
94		mPlayerNumberView.setText(mPlayerNumber + "");
                    
95		Log.e("SJ", "Index: " + mJerseyColorIndex);
                    
110		Paint textPaint = mPlayerNameView.getPaint();
                    
111		textPaint.getTextBounds(mPlayerName, 0, mPlayerName.length(), bounds);
                    
112		int textWidth = bounds.width();
                    
114		while (textWidth > widthThreshold) {
                    
115			mPlayerNameView.setTextSize(mPlayerNameView.getTextSize() - 1);
                    
116			bounds = new Rect();
                    
117			textPaint = mPlayerNameView.getPaint();
                    
118			textPaint.getTextBounds(mPlayerName, 0, mPlayerName.length(), bounds);
                    
119			textWidth = bounds.width();
                    
                
magnetizer.py https://github.com/aleray/datateb.git | Python | 95 lines
                    
94# 
                    
95# os.system("killall mplayer")
                    
                
AsyncPlayer.java https://bitbucket.org/chaos_rom/miui_frameworks.git | Java | 189 lines
                    
6import android.os.PowerManager.WakeLock;
                    
7import android.os.SystemClock;
                    
8import android.util.Log;
                    
16    private final LinkedList<Command> mCmdQueue = new LinkedList();
                    
17    private MediaPlayer mPlayer;
                    
18    private int mState = 2;
                    
62            localMediaPlayer.start();
                    
63            if (this.mPlayer != null)
                    
64                this.mPlayer.release();
                    
64                this.mPlayer.release();
                    
65            this.mPlayer = localMediaPlayer;
                    
66            long l = SystemClock.uptimeMillis() - paramCommand.requestTime;
                    
150                        continue;
                    
151                        if (AsyncPlayer.this.mPlayer != null)
                    
152                        {
                    
                
gradual-prg.py https://github.com/litdream/Metronome.git | Python | 43 lines
                    
34    cur_speed = int(working) + bump_up
                    
35    os.system("python Metronome.py -t %d --gradual-dura=%s" % (cur_speed, dura))
                    
36    print '''
                    
40''' % cur_speed
                    
41    os.system("mplayer a.wav > /dev/null")
                    
42    
                    
                
musicplayer.py https://gitlab.com/Rakowski/linsw_zad4 | Python | 85 lines
                    
7FILES = '/mnt/files'
                    
8FIFO = '/root/mplayer_fifo'
                    
9MM = None
                    
10
                    
11class MplayerManager:
                    
12    def send(self, msg):
                    
12    def send(self, msg):
                    
13        os.system('echo "' + msg + '" > ' + FIFO)
                    
14
                    
74if __name__ == "__main__":
                    
75    MM = MplayerManager()
                    
76
                    
                
import_rosetta_stone.py https://gitlab.com/sampablokuper/mnemosyne-proj | Python | 165 lines
                    
105                if img.endswith("PCT"):
                    
106                    os.system("convert " + full_path + " " + \
                    
107                        os.path.join(full_media_subdir, img).replace("PCT", "JPG"))
                    
132                if snd.endswith("SWA"):
                    
133                    os.system("mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader " \
                    
134                        + full_path + " && lame audiodump.wav " + \
                    
136                    # High bitrate version, not really needed.
                    
137                    #os.system("mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader " \
                    
138                    #    + full_path + " && lame -h --resample 44.1 -b 128 audiodump.wav " + \
                    
                
MediaServerCrashListener.java https://github.com/chromium/chromium.git | Java | 109 lines
                    
7import android.media.MediaPlayer;
                    
8import android.os.SystemClock;
                    
9
                    
25    // Watchdog player. Used to listen to all media server crashes.
                    
26    private MediaPlayer mPlayer;
                    
27
                    
49    public void releaseWatchdog() {
                    
50        if (mPlayer == null) return;
                    
51
                    
51
                    
52        mPlayer.release();
                    
53        mPlayer = null;
                    
57    public boolean startListening() {
                    
58        if (mPlayer != null) return true;
                    
59
                    
                
millconsole.py http://tinycode.googlecode.com/svn/ | Python | 313 lines
                    
24
                    
25import pymplayer
                    
26
                    
49            player - player background process wrapper
                    
50                (e.g. pymplayer.Player class instance);
                    
51            stream_prototype - prototype for media stream
                    
157        """
                    
158        os.system(args)
                    
159    
                    
173        self.__player.seek(
                    
174            *(pymplayer.str2seek(self.__bookmarks.get(args, args)))
                    
175        )
                    
306    prototype = MP3DummyStream(None, None)
                    
307    app = MillConsole(pymplayer.Player(), prototype)
                    
308    app.cmdloop()
                    
                
handler.py https://github.com/mackstann/htpicker.git | Python | 126 lines
                    
64
                    
65        os.system(command + ' &')
                    
66
                    
70        # the above "should" work but results in a mysterious situation
                    
71        # on my eeepc: mplayer outputs one line ("MPlayer SVN-r29237-4.4.1
                    
72        # (C) 2000-2009 MPlayer Team") to the shell, and then everything
                    
72        # (C) 2000-2009 MPlayer Team") to the shell, and then everything
                    
73        # stops.  mplayer is hung, and htpicker has mysteriously received a
                    
74        # SIGSTOP from somewhere.  i don't get it AT ALL.
                    
                
LiveControl.java https://bitbucket.org/hikong/newenergy.git | Java | 1040 lines
                    
420
                    
421        mPlayerPort = mPlayerHandler.getPort();
                    
422        if (-1 == mPlayerPort) {
                    
442
                    
443        ret = mPlayerHandler.setDisplayCB(mPlayerPort, this);
                    
444        if (!ret) {
                    
447                    "startPlayer() mPlayerHandle.setDisplayCB() failed errorCode is P"
                    
448                            + mPlayerHandler.getLastError(mPlayerPort));
                    
449            return false;
                    
462
                    
463        ret = mPlayerHandler.play(mPlayerPort, surfaceHolder);
                    
464        if (!ret) {
                    
466                    "startPlayer() mPlayerHandle.play failed!" + "Port: " + mPlayerPort + "PlayView Surface: "
                    
467                            + surfaceHolder + "errorCode is P" + mPlayerHandler.getLastError(mPlayerPort));
                    
468            return false;
                    
                
musicplayer.py https://gitlab.com/Rakowski/linsw_zad4 | Python | 109 lines
                    
7FILES = '/mnt/files'
                    
8FIFO = '/root/mplayer_fifo'
                    
9MM = None
                    
12
                    
13class MplayerManager():
                    
14    mute = 0
                    
19        print command
                    
20        os.system(command)
                    
21
                    
97if __name__ == "__main__":
                    
98    MM = MplayerManager()
                    
99
                    
                
__init__.py https://gitlab.com/Aituglo/Onyx | Python | 88 lines
                    
46	if platform.system() == "Linux":
                    
47		os.system("sudo apt-get install moc mplayer python-dev")
                    
48		try:
                    
                
AmisGuiGtk.py https://github.com/daisy/amis.git | Python | 92 lines
                    
56def play_audio(filepath, clipbegin, clipend):
                    
57	cmd = "mplayer %s >/dev/null 2>&1 1</dev/null"%filepath
                    
58	os.system(cmd)
                    
                
PlaybackActivity.java https://bitbucket.org/chadlevesque/gbenthusiast.git | Java | 465 lines
                    
10import android.os.PowerManager;
                    
11import android.os.SystemClock;
                    
12import android.util.Log;
                    
72    private PlaybackControlView mController;
                    
73    private SimpleExoPlayer mPlayer;
                    
74    private MappingTrackSelector mTrackSelector;
                    
74    private MappingTrackSelector mTrackSelector;
                    
75    private boolean mPlayerNeedsSource = true;
                    
76    private Video mVideo;
                    
124        super.onResume();
                    
125        if (mPlayer == null) {
                    
126            initializePlayer();
                    
153    private void initializePlayer() {
                    
154        if (mPlayer == null) {
                    
155            final TrackSelection.Factory videoTrackSelectionFactory = mVideo.isLive() ?
                    
                
VideoSplit.py https://github.com/aminzai/Split-Video.git | Python | 64 lines
                    
32    """
                    
33    getLengthCommand = "mplayer -vo null -ao null -frames 0 -identify %s  2>/dev/null \
                    
34| grep ID_LENGTH=\
                    
60            print 'Run:',cmd
                    
61            os.system(cmd)
                    
62
                    
                
TunerSessionWorker.java https://bitbucket.org/TinkerBoard_Android/packages-apps-tv.git | Java | 1455 lines
                    
33import android.os.Message;
                    
34import android.os.SystemClock;
                    
35import android.text.Html;
                    
154    private Surface mSurface;
                    
155    private int mPlayerGeneration;
                    
156    private int mPreparingGeneration;
                    
157    private int mEndedGeneration;
                    
158    private volatile MpegTsPlayer mPlayer;
                    
159    private volatile TunerChannel mChannel;
                    
172    private PlaybackParams mPlaybackParams = new PlaybackParams();
                    
173    private boolean mPlayerStarted = false;
                    
174    private boolean mReportedDrawnToSurface = false;
                    
274        // TODO: More precise time may be necessary.
                    
275        MpegTsPlayer mpegTsPlayer = mPlayer;
                    
276        long currentTime = mpegTsPlayer != null
                    
                
MainActivity.java https://gitlab.com/vbnhat/seek-in-vod-stream | Java | 132 lines
                    
5import android.os.Message;
                    
6import android.os.SystemClock;
                    
7import android.support.v7.app.AppCompatActivity;
                    
20    private static final int MESSAGE_HANDLE_SEEK_BAR = 1;
                    
21    final MediaPlayer mPlayer = new MediaPlayer();
                    
22    private SurfaceView sfvStream = null;
                    
39                sfHolder = holder;
                    
40                mPlayer.setDisplay(sfHolder);
                    
41            }
                    
55        try {
                    
56            mPlayer.setDataSource(url);
                    
57            mPlayer.prepare();
                    
61
                    
62        mPlayer.start();
                    
63        mPlayer.setScreenOnWhilePlaying(true);
                    
                
vthumb.py http://video4fuze.googlecode.com/svn/trunk/ | Python | 202 lines
                    
6# PIL 1.1.6 or later: http://www.pythonware.com/products/pil/index.htm
                    
7# FFMPEG: http://ffmpeg.mplayerhq.hu/download.html
                    
8#
                    
99        cmd = cmd + " -v -1" #> /dev/null 2>&1"
                    
100    if os.system(cmd):
                    
101        print "Error invoking ffmpeg"
                    
                
RockOnNextGenService.java https://github.com/wmbest2/rockonnggl.git | Java | 2680 lines
                    
31import android.os.RemoteException;
                    
32import android.os.SystemClock;
                    
33import android.os.PowerManager.WakeLock;
                    
74    
                    
75    private MultiPlayer mPlayer;
                    
76    private String mFileToPlay;
                    
164                        mCurrentVolume = 0f;
                    
165                        mPlayer.setVolume(mCurrentVolume);
                    
166                        play();
                    
174                        }
                    
175                        mPlayer.setVolume(mCurrentVolume);
                    
176                    }
                    
266        // Needs to be done in this thread, since otherwise ApplicationContext.getPowerManager() crashes.
                    
267        mPlayer = new MultiPlayer();
                    
268        mPlayer.setHandler(mMediaplayerHandler);
                    
                
MusicService.java https://bitbucket.org/alistair_holmes/timber.git | Java | 2861 lines
                    
56import android.os.RemoteException;
                    
57import android.os.SystemClock;
                    
58import android.provider.MediaStore;
                    
177    private final IBinder mBinder = new ServiceStub(this);
                    
178    private MultiPlayer mPlayer;
                    
179    private String mFileToPlay;
                    
222
                    
223    private MusicPlayerHandler mPlayerHandler;
                    
224    private final OnAudioFocusChangeListener mAudioFocusListener = new OnAudioFocusChangeListener() {
                    
227        public void onAudioFocusChange(final int focusChange) {
                    
228            mPlayerHandler.obtainMessage(FOCUSCHANGE, focusChange, 0).sendToTarget();
                    
229        }
                    
321        mPlayer = new MultiPlayer(this);
                    
322        mPlayer.setHandler(mPlayerHandler);
                    
323
                    
                
SampleMediaRouterActivity.java https://bitbucket.org/rimmer/android_tools.git | Java | 774 lines
                    
31import android.os.Handler;
                    
32import android.os.SystemClock;
                    
33import android.support.v4.app.FragmentManager;
                    
109    private final SessionManager mSessionManager = new SessionManager("app");
                    
110    private Player mPlayer;
                    
111
                    
133
                    
134            mPlayer = Player.create(SampleMediaRouterActivity.this, route, mMediaSession);
                    
135            mPlayer.updatePresentation();
                    
135            mPlayer.updatePresentation();
                    
136            mSessionManager.setPlayer(mPlayer);
                    
137            mSessionManager.unsuspend();
                    
152            }
                    
153            mPlayer.updatePresentation();
                    
154            mPlayer.release();
                    
                
NotificationPlayer.java https://bitbucket.org/nemoid/griffinproject.git | Java | 441 lines
                    
28import android.os.PowerManager;
                    
29import android.os.SystemClock;
                    
30import android.telephony.TelephonyManager;
                    
157                    /* @} */
                    
158                    if (mPlayer != null) {
                    
159                        mPlayer.release();
                    
160                    }
                    
161                    mPlayer = player;
                    
162                }
                    
227                    if (mDebug) Log.d(mTag, "STOP");
                    
228                    if (mPlayer != null) {
                    
229                        long delay = SystemClock.uptimeMillis() - cmd.requestTime;
                    
232                        }
                    
233                        mPlayer.stop();
                    
234                        mPlayer.release();
                    
                
CameraSound.java git://github.com/android/platform_frameworks_base.git | Java | 223 lines
                    
20import android.media.MediaPlayer;
                    
21import android.os.SystemProperties;
                    
22import android.util.Log;
                    
113        private int mAudioStreamType;
                    
114        private MediaPlayer mPlayer;
                    
115        private Thread mThread;
                    
147            }
                    
148            mPlayer = new MediaPlayer();
                    
149            try {
                    
149            try {
                    
150                mPlayer.setAudioStreamType(mAudioStreamType);
                    
151                mPlayer.setDataSource(soundFilePath);
                    
151                mPlayer.setDataSource(soundFilePath);
                    
152                mPlayer.setLooping(false);
                    
153                mPlayer.prepare();
                    
                
generate_png.py git://github.com/mmal/fpde.git | Python | 83 lines
                    
71
                    
72    os.system("gnuplot {0}".format(options.out))
                    
73
                    
77        if os.path.exists(movie_file) and not options.recreate:
                    
78            os.system("mplayer -loop 0 {file}".\
                    
79                          format(file=movie_file))
                    
81        else:
                    
82            os.system("{scripts}/make_movie.sh {dir}".format(
                    
83                    dir=file,scripts=options.scripts))
                    
                
MediaPlaybackService.java https://github.com/zyiro/android_packages_apps_Music.git | Java | 2086 lines
                    
43import android.os.PowerManager;
                    
44import android.os.SystemClock;
                    
45import android.os.PowerManager.WakeLock;
                    
110    
                    
111    private MultiPlayer mPlayer;
                    
112    private String mFileToPlay;
                    
178                        mStartPlayback = false;
                    
179                        mPlayer.setVolume(0f);
                    
180                        play();
                    
188                        }
                    
189                        mPlayer.setVolume(mCurrentVolume);
                    
190                    }
                    
286                            Log.v(LOGTAG, "New attentuated volume: " + duckVolume);
                    
287                            mPlayer.setVolume(duckVolume);
                    
288                        } else {
                    
                
play.py https://gitlab.com/opensourcevideo/variabletv.git | Python | 61 lines
                    
10FFMPEG = "ffmpeg"
                    
11MPLAYER = "mplayer"
                    
12VIDEOS = "/opt/piratebox/share/Shared/"
                    
50    start = random() * (totalduration-playduration)
                    
51    cmd = '{0} -fs -ss {1} -endpos {2} "{3}"'.format(MPLAYER, start, playduration, p)
                    
52    print cmd
                    
52    print cmd
                    
53    os.system(cmd)
                    
54
                    
                
Avrcp.java https://gitlab.com/math4youbyusgroupillinois/android_packages_apps_Bluetooth.git | Java | 4153 lines
                    
44import android.os.ServiceManager;
                    
45import android.os.SystemClock;
                    
46import android.util.Log;
                    
85    private int mPlayStatusChangedNT;
                    
86    private int mPlayerStatusChangeNT;
                    
87    private int mTrackChangedNT;
                    
253
                    
254    private PlayerSettings mPlayerSettings = new PlayerSettings();
                    
255    private class localPlayerSettings {
                    
295    public static final int ATTRIBUTE_SCANMODE = 4;
                    
296    public static final int NUMPLAYER_ATTRIBUTE = 2;
                    
297
                    
324        mTrackChangedNT = NOTIFICATION_TYPE_CHANGED;
                    
325        mPlayerStatusChangeNT = NOTIFICATION_TYPE_CHANGED;
                    
326        mAddressedPlayerChangedNT = NOTIFICATION_TYPE_CHANGED;
                    
                
FizicnaBudilkaActivity.java https://github.com/primoz990/PJ-testGuthub.git | Java | 212 lines
                    
28import android.os.PowerManager;
                    
29import android.os.SystemClock;
                    
30import android.os.PowerManager.WakeLock;
                    
49	public SensorManager SenMan;
                    
50	public MediaPlayer mPlayer = null;
                    
51	
                    
159    	SenMan.unregisterListener(SenLis);
                    
160    	mPlayer.release(); 
                    
161    	wakeL.release();
                    
168  {
                    
169      mPlayer = new MediaPlayer();
                    
170      try {
                    
170      try {
                    
171    	  mPlayer.setDataSource(this, potDomuzike);
                    
172          mPlayer.setLooping(true);
                    
                
rip.py https://bitbucket.org/danielfalk/ripencode | Python | 377 lines
                    
74		print "Complete."
                    
75		os.system("eject " + settings["path"])
                    
76	finally :
                    
141			self._text = commands.getoutput(
                    
142				"mplayer dvd://%d -dvd-device %s -vo dummy -ao dummy -identify 2>/dev/null" 
                    
143				% (self.title, self.disc_path))
                    
264
                    
265	cmd = "mplayer dvd://%d -v -chapter %s -dumpstream -dumpfile '%s' -dvd-device %s 2> /dev/null" \
                    
266		% (title_num, chapter, output_file, disc_path)
                    
                
AudioRecordDialog.java https://bitbucket.org/Fidenz-kelumw/ec_ivivaanyware_android.git | Java | 270 lines
                    
11import android.os.Environment;
                    
12import android.os.SystemClock;
                    
13import android.support.annotation.NonNull;
                    
49    private MediaRecorder mRecorder = null;
                    
50    private MediaPlayer mPlayer = null;
                    
51
                    
230
                    
231        mPlayer = new MediaPlayer();
                    
232        try {
                    
232        try {
                    
233            mPlayer.setDataSource(Environment.getExternalStorageDirectory().getAbsolutePath() + "/" + mFileName);
                    
234
                    
234
                    
235            mPlayer.setOnCompletionListener(mp -> stopPlayback());
                    
236
                    
                
ListViewCursorAdapter.java https://github.com/AlexStarc/MM5.git | Java | 475 lines
                    
33import android.os.Handler;
                    
34import android.os.SystemClock;
                    
35import android.provider.MediaStore;
                    
72    private Runnable mUpdatePlayProgress = null;
                    
73    MediaPlayer mPlayer = null;
                    
74
                    
87        // create MediaPlayer for playing of selected sound
                    
88        this.mPlayer = new MediaPlayer();
                    
89        this.mPlayer.setOnCompletionListener(this);
                    
97                // make elapsed time bigger
                    
98                if( ListViewCursorAdapter.this.mPlayer != null ) {
                    
99                    ListViewCursorAdapter.this.mnPlayTime = ListViewCursorAdapter.this.mPlayer.getCurrentPosition() / 1000;
                    
356        try {
                    
357            this.mPlayer.reset();
                    
358            this.mnPlayIndex = nPlayIndex;
                    
                
NotificationPlayer.java https://github.com/android/platform_frameworks_base.git | Java | 452 lines
                    
28import android.os.PowerManager;
                    
29import android.os.SystemClock;
                    
30import android.util.Log;
                    
141                    if (DEBUG) { Log.d(mTag, "player.start"); }
                    
142                    if (mPlayer != null) {
                    
143                        if (DEBUG) { Log.d(mTag, "mPlayer.release"); }
                    
143                        if (DEBUG) { Log.d(mTag, "mPlayer.release"); }
                    
144                        mPlayer.release();
                    
145                    }
                    
145                    }
                    
146                    mPlayer = player;
                    
147                }
                    
213                    if (DEBUG) Log.d(mTag, "STOP");
                    
214                    if (mPlayer != null) {
                    
215                        long delay = SystemClock.uptimeMillis() - cmd.requestTime;
                    
                
MediaPlaybackService.java https://github.com/CyanogenMod/android_packages_apps_Music.git | Java | 2071 lines
                    
49import android.os.PowerManager.WakeLock;
                    
50import android.os.SystemClock;
                    
51import android.provider.MediaStore;
                    
113    private Notification status;
                    
114    private MultiPlayer mPlayer;
                    
115    private String mFileToPlay;
                    
178                    }
                    
179                    mPlayer.setVolume(mCurrentVolume);
                    
180                    break;
                    
187                    }
                    
188                    mPlayer.setVolume(mCurrentVolume);
                    
189                    break;
                    
239                                mCurrentVolume = 0f;
                    
240                                mPlayer.setVolume(mCurrentVolume);
                    
241                                play(); // also queues a fade-in
                    
                
TabbedPaintPreview.java git://github.com/chromium/chromium.git | Java | 333 lines
                    
133
                    
134        mPlayerManager = new PlayerManager(mTab.getUrl(), mTab.getContext(), getService(),
                    
135                String.valueOf(mTab.getId()), listener,
                    
176        PaintPreviewCompositorUtils.stopWarmCompositor();
                    
177        if (mTab == null || mPlayerManager == null || mFadingOut) return;
                    
178        TraceEvent.begin("TabbedPaintPreview.remove");
                    
180        mFadingOut = true;
                    
181        mPlayerManager.setAcceptUserInput(false);
                    
182        mTab.removeObserver(mTabObserver);
                    
183        Point scrollPosition = mPlayerManager.getScrollPosition();
                    
184        float scale = mPlayerManager.getScale();
                    
185        final boolean supportsAccessibility = mPlayerManager.supportsAccessibility();
                    
317        public View getView() {
                    
318            return mPlayerManager == null ? null : mPlayerManager.getView();
                    
319        }
                    
                
dvb.py https://github.com/Josep/dvb_py.git | Python | 181 lines
                    
5deb=open('debug.log','w')
                    
6ch = '.mplayer/channels.conf' # channels for mplayer below ~
                    
7command = 'mplayer -ao pulse -vf pp=fd dvb://' 
                    
151                #curses.endwin()                
                    
152                os.system(st)              
                    
153                self.unsort()
                    
                
Player.java https://github.com/nikclayton/android-squeezer.git | Java | 226 lines
                    
146    public PlayerState getPlayerState() {
                    
147        return mPlayerState;
                    
148    }
                    
150    public void setPlayerState(@NonNull PlayerState playerState) {
                    
151        mPlayerState = playerState;
                    
152    }
                    
202                ", mHashCode=" + mHashCode +
                    
203                ", mPlayerState=" + mPlayerState +
                    
204                ", mConnected=" + mConnected +
                    
210        double trackCorrection = mPlayerState.rate * (now - mPlayerState.statusSeen);
                    
211        int trackElapsed = (int) (trackCorrection <= 0 ? mPlayerState.getCurrentTimeSecond() : mPlayerState.getCurrentTimeSecond() + trackCorrection);
                    
212        if (trackElapsed > mPlayerState.getCurrentSongDuration()) {
                    
221        double correction = now - mPlayerState.statusSeen;
                    
222        double remaining = (correction <= 0 ? mPlayerState.getSleep() : mPlayerState.getSleep() - correction);
                    
223
                    
                
compost.py https://github.com/aleray/datateb.git | Python | 100 lines
                    
33snd = "/Volumes/STOCK/Users/aleray/Travaux/PZI/not_from_scratch/sounds/piezorw1.wav"
                    
34os.system("mplayer -loop 1000 %s &" % snd)
                    
35
                    
99# 		
                    
100os.system("killall mplayer")
                    
                
ApolloService.java https://bitbucket.org/tbeemster/rhythm.git | Java | 2356 lines
                    
57import android.os.PowerManager.WakeLock;
                    
58import android.os.SystemClock;
                    
59import android.provider.BaseColumns;
                    
172
                    
173    private MultiPlayer mPlayer;
                    
174
                    
263                    }
                    
264                    mPlayer.setVolume(mCurrentVolume);
                    
265                    break;
                    
272                    }
                    
273                    mPlayer.setVolume(mCurrentVolume);
                    
274                    break;
                    
338                                mCurrentVolume = 0f;
                    
339                                mPlayer.setVolume(mCurrentVolume);
                    
340                                play(); // also queues a fade-in
                    
                
worldservices.py https://github.com/mixxit/solinia_depreciated.git | Python | 402 lines
                    
34    clusterCount = 0
                    
35    numPlayers = 0
                    
36    
                    
58        self.reboot = True
                    
59        self.numPlayers = 0
                    
60        self.live = False
                    
108            s = os.path.normpath(s)
                    
109            os.system(s)
                    
110        else:
                    
116            print s
                    
117            os.system(s)
                    
118    
                    
270    def perspective_playerJoinedWorld(self, publicname):
                    
271        ZoneClusterAvatar.numPlayers += 1
                    
272    
                    
                
RtspPlayerActivity.java https://bitbucket.org/cheban_natali/rtspplayer.git | Java | 1590 lines
                    
17import android.os.Handler;
                    
18import android.os.SystemClock;
                    
19import android.support.v7.app.AlertDialog;
                    
129    private MediaInfoAdapter mAdapter;
                    
130    private MediaPlayer.EventListener mPlayerListener = new MyPlayerListener(this);
                    
131
                    
290
                    
291        mMediaPlayer.setEventListener(mPlayerListener);
                    
292
                    
                
Controller.java https://gitlab.com/unmaintained/ctrlaltdlna | Java | 201 lines
                    
34import android.os.Bundle;
                    
35import android.os.SystemClock;
                    
36import android.support.v7.media.MediaControlIntent;
                    
66
                    
67    private MediaPlayer mPlayer = new MediaPlayer();
                    
68
                    
72        mAudio = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
                    
73        mPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
                    
74        mPlayer.setOnPreparedListener(this);
                    
78    public void onRelease() {
                    
79        mPlayer.release();
                    
80    }
                    
109            try {
                    
110                mPlayer.reset();
                    
111                mPlayer.setDataSource(mContext, intent.getData());
                    
                
patchwork.py https://github.com/aleray/datateb.git | Python | 75 lines
                    
19	#snd = "paper_shredder.wav"
                    
20	#os.system("/Users/aleray//bin/mplayer %s < /dev/tty1 >| ~/error.log" % snd)
                    
21	#os.system("/Users/aleray/bin/mplayer %s >| ~/error.log" % snd)
                    
21	#os.system("/Users/aleray/bin/mplayer %s >| ~/error.log" % snd)
                    
22	#os.system("/Applications/VLC.app/Contents/MacOS/VLC -I ncurses %s &" % snd)
                    
23	#sound = NSSound.alloc()
                    
                
alarm.py https://github.com/dachrisch/Bash-Utils.git | Python | 129 lines
                    
38MUSIC_DIR = '/home/jabba/bin/alarm/at_a_given_time/assets/rock'
                    
39MEDIA_PLAYER = '/usr/bin/mplayer'
                    
40DEFAULT_TIME = '6h55'
                    
44    for f in sorted(glob.glob(os.path.join(MUSIC_DIR, '*.mp3'))):
                    
45        val = os.system("{0} \"{1}\"".format(MEDIA_PLAYER, f))
                    
46        if val == 2:    # interrupted with CTRL-C
                    
                
td_monitor.py https://github.com/jsonkey/neo.git | Python | 125 lines
                    
39        self.men        =60
                    
40        self.mzombieName=("mencoder", "ffmpeg", "mplayer", "lame", "mp4creator", "yamdi", "codewav", "codevideo")
                    
41        self.kill_pid   =[]
                    
56        try:
                    
57            os.system("kill -9 %s"%pid)
                    
58        except OSError, err:
                    
                
1942.py https://gitlab.com/death-of-the-authors/1942.git | Python | 225 lines
                    
64cmd = "bash intro.sh"
                    
65os.system(cmd)
                    
66
                    
67cmd ="convert -background black -bordercolor black -gravity center -fill black -size 1280x800 -border 100 -font OSP-DIN.ttf caption:'Patience please!' intro.jpg;"
                    
68os.system(cmd)
                    
69cmd="feh -x --fullscreen 'intro.jpg' &"
                    
69cmd="feh -x --fullscreen 'intro.jpg' &"
                    
70os.system(cmd)
                    
71sleep(delay/2)
                    
87	
                    
88	cmd = "mplayer -really-quiet blanche/blanche.mp3 &"
                    
89	os.system(cmd)
                    
93	#cmd ="convert -background black -bordercolor black -gravity center -pointsize 220 -size 1280 -border 100 -fill white -font OSP-DIN.ttf caption:'" + str(version) + "' intro.jpg;"
                    
94	#os.system(cmd)
                    
95	#cmd="feh -x --fullscreen 'intro.jpg' &"
                    
                
player.py https://github.com/lerosua/gmcore.git | Python | 61 lines
                    
12    def get_length(self,filename):
                    
13        cmd='mplayer -identify -frames 0 2>/dev/null '+filename
                    
14        out = os.popen(cmd)
                    
21    def get_info(self,filename):
                    
22        cmd='mplayer -identify -frames 0 2>/dev/null '+filename
                    
23        out = os.popen(cmd)
                    
38        os.chdir(tmp_dir)
                    
39        cmd  = "mplayer -ss 90 -noframedrop -nosound -vo jpeg -frames 1 2>/dev/null "+filename
                    
40        #out = os.popen(cmd)
                    
46        if b_time == "":
                    
47            self.run("mplayer","-osdlevel","3",filename)
                    
48        else:
                    
48        else:
                    
49            self.run("mplayer","-osdlevel","3","-ss",a_time,"-endpos",b_time,filename)
                    
50
                    
                
csv2movie.py https://github.com/abhishektiwari/csv2movie.git | Python | 143 lines
                    
3frame by frame. Each image plot will become a single frame in the movie. CSV2Movie 
                    
4requires mencoder (http://www.mplayerhq.hu/) or ffmpeg (http://www.ffmpeg.org/) to 
                    
5create the light weight movies for the csv file data. User needs to provide the 
                    
136            mov.createmovie(xtit, ytit, data[fargument], data[i],foutput, fdir, fps)
                    
137            os.system("rm *_tmp.png")
                    
138            i=len(fields);
                    
                
mytube.py https://github.com/arkem/hottest100.git | Python | 114 lines
                    
91
                    
92    os.system("mplayer %s \"%s\"" % (video_output, url))
                    
93    #urllib.urlretrieve(url, dl_dir + "/" + torrent_num + ".torrent")
                    
                
scaler.py https://github.com/clones/kaa.git | Python | 63 lines
                    
59filter = 'scale=%s:%s,expand=%s:%s' % (s[0], s[1], window_width, window_height)
                    
60cmd = 'mplayer -wid %s -vf %s "%s"' % (hex(window.get_id()), filter, sys.argv[3])
                    
61print cmd
                    
61print cmd
                    
62os.system(cmd)
                    
63
                    
                
mplayer.py https://github.com/yarikoptic/pythm.git | Python | 123 lines
                    
41
                    
42    exe_name = 'mplayer' if os.sep == '/' else 'mplayer.exe'
                    
43
                    
45        args = [self.exe_name, '-slave', '-quiet', '-idle','-nolirc']
                    
46        self._mplayer = subprocess.Popen(args,
                    
47                stdin=subprocess.PIPE, stdout=subprocess.PIPE, bufsize=1)
                    
48
                    
49        if self._mplayer and niceval!=None:
                    
50            pid = self._mplayer.pid
                    
50            pid = self._mplayer.pid
                    
51            os.system("renice "+ str(niceval) +" -p "+str(pid))
                    
52
                    
74        self.command("quit",0)
                    
75        self._mplayer.wait()
                    
76
                    
                
AttachmentSendDialog.java https://bitbucket.org/Fidenz-kelumw/ec_ivivaanyware_android.git | Java | 695 lines
                    
18import android.os.ParcelFileDescriptor;
                    
19import android.os.SystemClock;
                    
20import android.provider.MediaStore;
                    
88    private ImageButton mBtnStop;
                    
89    private MediaPlayer mPlayer = null;
                    
90    private Chronometer mPlaybackTime;
                    
                
go.py https://github.com/davidwisch/va-pucks.git | Python | 199 lines
                    
11BINARIES = "bin"
                    
12MPLAYER = os.path.join(BINARIES, "mencoder", "mplayer.exe")
                    
13PIL_INSTALLER = os.path.join(BINARIES, "installers", "PIL-1.1.7.win32-py2.6.exe")	
                    
20	print "Checking Dependencies..."
                    
21	#check that mplayer.exe is around
                    
22	sys.stdout.write("Checking for mplayer...")
                    
22	sys.stdout.write("Checking for mplayer...")
                    
23	if os.path.exists(MPLAYER):
                    
24		sys.stdout.write("FOUND\n")
                    
26		sys.stdout.write("MISSING\n")
                    
27		exit("ERROR: mplayer.exe was not found")
                    
28	
                    
36		time.sleep(3)
                    
37		os.system(PIL_INSTALLER)
                    
38		exit("Exiting...relaunch when ready")
                    
                
pyhredder.py https://github.com/aleray/datateb.git | Python | 108 lines
                    
34	snd = "paper_shredder.wav"
                    
35	#os.system("/Users/aleray//bin/mplayer %s < /dev/tty1 >| ~/error.log" % snd)
                    
36	#os.system("/Users/aleray/bin/mplayer %s >| ~/error.log" % snd)
                    
36	#os.system("/Users/aleray/bin/mplayer %s >| ~/error.log" % snd)
                    
37	#os.system("/Applications/VLC.app/Contents/MacOS/VLC -I ncurses %s &" % snd)
                    
38	sound = NSSound.alloc()
                    
70	cmd = "rm %s" % sys.argv[1]
                    
71	os.system(cmd)
                    
72	
                    
                
alarm.py https://github.com/mogga/mogga-dotfiles.git | Python | 191 lines
                    
39TRAVERSE_RECURSIVELY = True
                    
40MPLAYER = '/usr/bin/mplayer'
                    
41MPLAYER_OPTIONS = '-endpos 00:00:60'    # play first 60 seconds; disabled when -p is used
                    
99    for f in songs:
                    
100        val = os.system("{mplayer} {options} \"{song}\"".format(mplayer=MPLAYER, options=MPLAYER_OPTIONS, song=f))
                    
101        if val == 2:    # interrupted with CTRL-C
                    
174    if options.is_play:
                    
175        global MPLAYER_OPTIONS
                    
176        MPLAYER_OPTIONS = ''
                    
176        MPLAYER_OPTIONS = ''
                    
177        print '# MPLAYER_OPTIONS is disabled'
                    
178
                    
                
MediaPlaybackService.java https://github.com/aospX/platform_packages_apps_Music.git | Java | 2182 lines
                    
49import android.os.PowerManager;
                    
50import android.os.SystemClock;
                    
51import android.os.PowerManager.WakeLock;
                    
116    private Notification status;
                    
117    private MultiPlayer mPlayer;
                    
118    private String mFileToPlay;
                    
203                    }
                    
204                    mPlayer.setVolume(mCurrentVolume);
                    
205                    break;
                    
212                    }
                    
213                    mPlayer.setVolume(mCurrentVolume);
                    
214                    break;
                    
266                                mCurrentVolume = 0f;
                    
267                                mPlayer.setVolume(mCurrentVolume);
                    
268                                play(); // also queues a fade-in
                    
                
playpod.py https://github.com/timabell/mokopod.git | Python | 168 lines
                    
15import gobject,gtk, os, sys, dbus
                    
16import pymplayer, signal
                    
17from time import strftime
                    
73      restorePath = os.environ.get('HOME') + "/.mokorss/restore.state"
                    
74      os.system("alsactl -f "+restorePath+" store")
                    
75      os.system("alsactl -f "+self.stateFileLoad+" restore")
                    
98    
                    
99    self.player = pymplayer.MPlayer()
                    
100    self.player.args = [episode.file]
                    
102    if self.player.start()==False:
                    
103      raise Exception("mplayer failed to start. :-(")
                    
104    self.player.command('volume', volume, 1)
                    
110    
                    
111    #pymplayer.loop()
                    
112  
                    
                
Player.java https://github.com/kaaholst/android-squeezer.git | Java | 201 lines
                    
19import android.os.Parcel;
                    
20import android.os.SystemClock;
                    
21import androidx.annotation.NonNull;
                    
39
                    
40    private final PlayerState mPlayerState = new PlayerState();
                    
41
                    
180                ", mCanPowerOff=" + mCanPowerOff +
                    
181                ", mPlayerState=" + mPlayerState +
                    
182                ", mConnected=" + mConnected +
                    
186    public SongTimeChanged getTrackElapsed() {
                    
187        return new SongTimeChanged(this, mPlayerState.getTrackElapsed(), mPlayerState.getCurrentSongDuration());
                    
188    }
                    
192        double correction = now - mPlayerState.statusSeen;
                    
193        double remaining = (correction <= 0 ? mPlayerState.getSleep() : mPlayerState.getSleep() - correction);
                    
194
                    
                
geturl.py https://github.com/yangsong/projects.git | Python | 74 lines
                    
66                    #newfilename = newfilename.encode('utf-8', 'replace')
                    
67                    cmd = "axel " + " \"" + durl + "\" --output=\"/opt/music/" + newfilename.replace(" ", "") + "\" && mplayer /opt/music/" + newfilename.replace(" ", "")
                    
68                    #cmd = "cd /opt/music && curl " + " \"" + durl + "\" -o \"" + newfilename + "\" && cd -"
                    
70                        print cmd
                    
71                        os.system(cmd.encode('utf-8'))
                    
72                        return
                    
                
Avrcp.java https://github.com/CyanogenMod/android_packages_apps_Bluetooth.git | Java | 6034 lines
                    
51import android.os.ServiceManager;
                    
52import android.os.SystemClock;
                    
53import android.util.Log;
                    
82import com.android.bluetooth.avrcp.AvrcpControllerService;
                    
83import android.os.SystemProperties;
                    
84
                    
272        private int mPlayStatusChangedNT;
                    
273        private int mPlayerStatusChangeNT;
                    
274        private int mTrackChangedNT;
                    
313            mPlayStatusChangedNT = NOTIFICATION_TYPE_CHANGED;
                    
314            mPlayerStatusChangeNT = NOTIFICATION_TYPE_CHANGED;
                    
315            mTrackChangedNT = NOTIFICATION_TYPE_CHANGED;
                    
358
                    
359    private PlayerSettings mPlayerSettings = new PlayerSettings();
                    
360    private
                    
                
tubestrip.py https://github.com/arkem/hottest100.git | Python | 40 lines
                    
34
                    
35    os.system('mplayer -hardframedrop -vo null -cache 8096 -ao pcm:file="%s.pcm" "%s"' % (title, url))
                    
36    os.system('lame "%s.pcm" "%s.mp3"' % (title, title))
                    
36    os.system('lame "%s.pcm" "%s.mp3"' % (title, title))
                    
37    os.system('rm "%s.pcm"' % title) # Dangerous
                    
38
                    
                
tts.py https://gitlab.com/tmartinez69009/googleTTS.git | Python | 64 lines
                    
16#args = parser.add_argument("destination", default='cache/out.mp3', help="destination mp3 file", action='store')
                    
17args = parser.add_argument('-o', '--option', default='', help="mplayer options")
                    
18args = parser.add_argument('-u', '--url', default='', help="tts url")
                    
44            if args.url == 'pico':
                    
45                os.system("pico2wave -l "+args.lang+" -w "+cachepath+"/voice.wav \""+text+"\"")
                    
46                os.system("sox "+cachepath+"/voice.wav -r 48k "+cachepath+"/"+hashfile)
                    
56    
                    
57    cmd = ['mplayer']
                    
58    cmd.extend(args.option.split())
                    
                
saythis.py https://gitlab.com/manufacturaind/saythis.git | Python | 86 lines
                    
31DEFAULT_TEMP_FILE = '/tmp/test.mp3'
                    
32DEFAULT_PLAY_COMMAND = 'mplayer %s'
                    
33
                    
84    if speak:
                    
85        os.system(DEFAULT_PLAY_COMMAND % outfile)
                    
86        os.remove(outfile)
                    
                
streamtheworld.py https://github.com/emacsmirror/emacspeak.git | Python | 108 lines
                    
90def start_mplayer(location):
                    
91	return os.system('mplayer %s' % location)
                    
92
                    
105		u = choice(urls)
                    
106		sys.exit(start_mplayer(u))
                    
107	sys.exit(1)
                    
                
alarm.py https://github.com/jabbalaci/Bash-Utils.git | Python | 195 lines
                    
45TRAVERSE_RECURSIVELY = True
                    
46MPLAYER = cfg.MPLAYER
                    
47MPLAYER_OPTIONS = '-endpos 00:00:60'    # play first 60 seconds; disabled when -p is used
                    
49
                    
50fs.check_if_available(MPLAYER, "Error: {} is not available!".format(MPLAYER))
                    
51
                    
106    for f in songs:
                    
107        val = os.system("{mplayer} {options} \"{song}\"".format(mplayer=MPLAYER, options=MPLAYER_OPTIONS, song=f))
                    
108        if val == 2:    # interrupted with CTRL-C
                    
177    if options.is_play:
                    
178        global MPLAYER_OPTIONS
                    
179        MPLAYER_OPTIONS = ''
                    
179        MPLAYER_OPTIONS = ''
                    
180        print('# MPLAYER_OPTIONS is disabled')
                    
181
                    
                
sineWave.py https://gitlab.com/jack/AVR-Programming.git | Python | 38 lines
                    
21wv.close()
                    
22os.system("mplayer test_mono.wav")
                    
23
                    
36wv.close()
                    
37os.system("mplayer test_stereo.wav")
                    
38
                    
                
PlayerState.java https://github.com/kaaholst/android-squeezer.git | Java | 521 lines
                    
21import android.os.Parcelable;
                    
22import android.os.SystemClock;
                    
23
                    
74        source.readStringList(mSyncSlaves);
                    
75        mPlayerSubscriptionType = PlayerSubscriptionType.valueOf(source.readString());
                    
76        prefs = source.readHashMap(getClass().getClassLoader());
                    
96        dest.writeStringList(mSyncSlaves);
                    
97        dest.writeString(mPlayerSubscriptionType.name());
                    
98        dest.writeMap(prefs);
                    
156    @NonNull
                    
157    private PlayerSubscriptionType mPlayerSubscriptionType = PlayerSubscriptionType.NOTIFY_NONE;
                    
158
                    
437                ", mSyncSlaves=" + mSyncSlaves +
                    
438                ", mPlayerSubscriptionType='" + mPlayerSubscriptionType + '\'' +
                    
439                ", mPlayR='" + mPlayR + '\'' +
                    
                
test.py https://gitlab.com/death-of-the-authors/1942.git | Python | 147 lines
                    
38cmd = "bash intro.sh"
                    
39os.system(cmd)
                    
40
                    
52
                    
53cmd = "mplayer -ss 5 blanche/blanche.wav &"
                    
54os.system(cmd)
                    
71				cmd = "feh -x -Z --fullscreen --image-bg black tina/" + img + " &"
                    
72				os.system(cmd)
                    
73
                    
108				cmd = "convert -background black -bordercolor black -gravity center -fill " + colour + " -size 1024x768 -border 50 -font OSP-DIN.ttf caption:@slide.txt " + img +"; feh -x --fullscreen " + img + " &"
                    
109				os.system(cmd)
                    
110			
                    
125	cmd = "feh -x -Z --fullscreen --image-bg black tina/" + img + " &"
                    
126	os.system(cmd)
                    
127
                    
                
MusicService.java https://bitbucket.org/Naruto-S/haige-android.git | Java | 1549 lines
                    
40import android.os.PowerManager.WakeLock;
                    
41import android.os.SystemClock;
                    
42import android.provider.MediaStore;
                    
147    private final IBinder mBinder = new ServiceStub(this);
                    
148    public MultiPlayer mPlayer;
                    
149    private String mFileToPlay;
                    
171
                    
172    private MultiPlayerHandler mPlayerHandler;
                    
173
                    
208        public void onAudioFocusChange(final int focusChange) {
                    
209            mPlayerHandler.obtainMessage(MultiPlayerHandler.FOCUSCHANGE, focusChange, 0).sendToTarget();
                    
210        }
                    
303        mPlayer = new MultiPlayer(this);
                    
304        mPlayer.setHandler(mPlayerHandler);
                    
305
                    
                
MusicDataManager.java https://bitbucket.org/Naruto-S/haige-android.git | Java | 1186 lines
                    
9import android.net.Uri;
                    
10import android.os.SystemClock;
                    
11import android.provider.MediaStore;
                    
362    public long getNextAudioId() {
                    
363        if (mNextPlayPos >= 0 && mNextPlayPos < mPlaylist.size() && musicService.mPlayer.isInitialized()) {
                    
364            return mPlaylist.get(mNextPlayPos).mId;
                    
369    public long getPreviousAudioId() {
                    
370        if (musicService.mPlayer.isInitialized()) {
                    
371            int pos = getPreviousPlayPosition(false);
                    
                
models.py https://github.com/HiPiH/life.git | Python | 142 lines
                    
105                command = "mencoder '%s' -o '%s' -of lavf -oac mp3lame -lameopts abr:br=56 -srate 22050 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3" % (source, target,)
                    
106                convert_ret_code = os.system(command)
                    
107                
                    
108                os.chdir(os.path.normpath(os.path.join(settings.MEDIA_ROOT, 'video','flv','thumb','tmp')))
                    
109                command = "mplayer -ss 2 -frames 1 -vo jpeg: -nosound %s" % source
                    
110                thumb_ret_code = os.system(command)
                    
                
IntroActivity.java https://github.com/gmcnew/pax.git | Java | 380 lines
                    
17import android.os.Bundle;
                    
18import android.os.SystemClock;
                    
19import android.preference.PreferenceManager;
                    
42    private void reset() {
                    
43    	mPlayerOneAI = true;
                    
44    	mPlayerTwoAI = true;
                    
81    	Intent intent = new Intent(this, Pax.class);
                    
82    	intent.putExtra(Pax.PLAYER_ONE_AI, mPlayerOneAI);
                    
83    	intent.putExtra(Pax.PLAYER_TWO_AI, mPlayerTwoAI);
                    
129    private boolean mTimerIsRunning;
                    
130    private boolean mPlayerOneAI;
                    
131    private boolean mPlayerTwoAI;
                    
240				int rot = (i == 1 ? 1 : -1);
                    
241				float bs = ((i == 0 && !mPlayerOneAI) || (i == 1 && !mPlayerTwoAI)) ? buttonSize * 1.25f : buttonSize;
                    
242				mCirclePainter.draw(gl, buttonXPos * rot, buttonYPos * rot, bs, bs, 180 * i, 1f);
                    
                
scrape.py https://github.com/newhouseb/SCPD-Scraper.git | Python | 56 lines
                    
16	# Put it in a temp file
                    
17	if os.system("mimms -c %s %s" % (work[0], "_" + work[1])) == 0:
                    
18		# Move the file on success
                    
18		# Move the file on success
                    
19		os.system("mv %s %s" % ("_" + work[1], work[1]))
                    
20	print "Finished", work
                    
48		soup = BeautifulSoup(response.read())
                    
49		video = soup.find('object', id='WMPlayer')['data']
                    
50		video = re.sub("http","mms",video)
                    
                
AvrcpPlayer.java https://github.com/Evervolv/android_packages_apps_Bluetooth.git | Java | 375 lines
                    
77        mName = name;
                    
78        mPlayerType = playerType;
                    
79        mPlayerFeatures = Arrays.copyOf(playerFeatures, playerFeatures.length);
                    
163        byte bitMask = (byte) (1 << (featureId % 8));
                    
164        return (mPlayerFeatures[byteNumber] & bitMask) == bitMask;
                    
165    }
                    
253        private BluetoothDevice mDevice = null;
                    
254        private int mPlayerId = AvrcpPlayer.DEFAULT_ID;
                    
255        private int mPlayerType = AvrcpPlayer.TYPE_UNKNOWN;
                    
255        private int mPlayerType = AvrcpPlayer.TYPE_UNKNOWN;
                    
256        private int mPlayerSubType = AvrcpPlayer.SUB_TYPE_UNKNOWN;
                    
257        private String mPlayerName = null;
                    
368        public AvrcpPlayer build() {
                    
369            AvrcpPlayer player = new AvrcpPlayer(mDevice, mPlayerId, mPlayerType, mPlayerSubType,
                    
370                    mPlayerName, mSupportedFeatures, mPlayStatus);
                    
                
ConnectionState.java https://github.com/kaaholst/android-squeezer.git | Java | 291 lines
                    
18
                    
19import android.os.SystemClock;
                    
20import android.text.TextUtils;
                    
88    /** Map Player IDs to the {@link uk.org.ngo.squeezer.model.Player} with that ID. */
                    
89    private final Map<String, Player> mPlayers = new ConcurrentHashMap<>();
                    
90
                    
129            setServerVersion(null);
                    
130            mPlayers.clear();
                    
131            setActivePlayer(null);
                    
136    public void setPlayers(Map<String, Player> players) {
                    
137        mPlayers.clear();
                    
138        mPlayers.putAll(players);
                    
143        if (playerId == null) return null;
                    
144        return mPlayers.get(playerId);
                    
145    }
                    
                
LearnActivity.java https://bitbucket.org/jzallas/xue-chinese-study-cards.git | Java | 563 lines
                    
18import android.os.Bundle;
                    
19import android.os.SystemClock;
                    
20import android.preference.PreferenceManager;
                    
55	//sound items
                    
56    private MediaPlayer mPlayer;
                    
57    private boolean soundFx; // , enableUpdates;
                    
                
import_wav.py https://bitbucket.org/rcompton/musical-gauss-seidel | Python | 44 lines
                    
22
                    
23#os.system("mplayer hayden_same_on_both_speakers.wav")
                    
24
                    
41
                    
42os.system("mplayer sine_wave.wav")
                    
43
                    
                
MediaPlaybackService.java https://github.com/Redux/android_packages_apps_Music.git | Java | 1975 lines
                    
43import android.os.PowerManager;
                    
44import android.os.SystemClock;
                    
45import android.os.PowerManager.WakeLock;
                    
103    
                    
104    private MultiPlayer mPlayer;
                    
105    private String mFileToPlay;
                    
166                    }
                    
167                    mPlayer.setVolume(mCurrentVolume);
                    
168                    break;
                    
216                                mCurrentVolume = 0f;
                    
217                                mPlayer.setVolume(mCurrentVolume);
                    
218                                play(); // also queues a fade-in
                    
287        // Needs to be done in this thread, since otherwise ApplicationContext.getPowerManager() crashes.
                    
288        mPlayer = new MultiPlayer();
                    
289        mPlayer.setHandler(mMediaplayerHandler);
                    
                
rip.py https://github.com/stsquad/ps3enc.git | Python | 331 lines
                    
46    source_opts.add_argument("--dvd", default="/dev/dvd", help="Specify the DVD device.")
                    
47    source_opts.add_argument("--ripper", default="mplayer",
                    
48                             choices=["vobcopy", "mplayer", "vlc"],
                    
74    logger.info("encode cmd: %s", (enc_cmd))
                    
75    os.system(enc_cmd)
                    
76
                    
95    if not args.pretend:
                    
96        os.system(rip_cmd)
                    
97
                    
107        rip_cmd="cvlc dvd://#"+str(track)+' --sout "#standard{access=file,mux=ps,dst='+dump_file+'}"'
                    
108    elif args.ripper == "mplayer":
                    
109        if args.nonav:
                    
114        dump_file=dest_file+".vob"
                    
115        rip_cmd="mplayer "+nav+" -dumpstream -dumpfile "+dump_file
                    
116        rip_cmd += " -dvd-device "+args.dvd
                    
                
marathon.py https://github.com/svip/Marathon.git | Python | 446 lines
                    
123	
                    
124	def mplayer(self, filename, mplayersettings=None):
                    
125		if mplayersettings==None:
                    
125		if mplayersettings==None:
                    
126			s = os.system("mplayer %s \"%s\"" % (self.c.mplayerconfig, filename))
                    
127		else:
                    
127		else:
                    
128			s = os.system("mplayer %s \"%s\"" % (mplayersettings, filename))			
                    
129		return s == 0
                    
373						("BROWSE", "Browse show's files"),
                    
374						("MPLAYER", "MPlayer settings")], "WATCH")
                    
375					if p == "WATCH":
                    
409				print "Select settings to edit."
                    
410				p = self.menu([("MPLAYER", "mplayer options")], None)
                    
411				if p == "MPLAYER":
                    
                
MediaPlaybackService.java https://github.com/pellix/android_packages_apps_Music.git | Java | 2156 lines
                    
42import android.os.PowerManager;
                    
43import android.os.SystemClock;
                    
44import android.os.PowerManager.WakeLock;
                    
115
                    
116    private MultiPlayer mPlayer;
                    
117    private String mFileToPlay;
                    
230                    mCurrentVolume = 0f;
                    
231                    mPlayer.setVolume(mCurrentVolume);
                    
232                    play();
                    
240                    }
                    
241                    mPlayer.setVolume(mCurrentVolume);
                    
242                }
                    
                
 

Source

Language