Bug #376

Automatic start on media opened

Added by Ted Young over 1 year ago. Updated about 1 year ago.

Status:New Start Date:01/11/2011
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:-
Target version:-

Description

Is it possible to add an option to turn off the automatic start when media is opened? This is possible with MPlayerX but does not seem to be possible with MPlayer OSX Extended. This option would be located under "General" preferences.

Thank you for any help that can be brought to this issue.

History

Updated by Hermi G about 1 year ago

I was able to implement this feature by adding a checkbox to the general pane of the preferences window '[x] Begin playback of opened files.', with a reference binding of MPEInitiallyPaused (using the negate boolean value transformer). I added the corresponding string to Preferences.m and .h, and the code to issue the pause command: if ([[playingItem prefs] boolForKey:MPEInitiallyPaused]) [self pause]; was inserted into the function setState of MPlayerInterface.m as follows:

// Update isMovieOpen
BOOL newIsMovieOpen = !!(newStateMask & MIStateRespondMask);
if ([self isMovieOpen] != newIsMovieOpen) {
    [self setMovieOpen:newIsMovieOpen];
    if ([[playingItem prefs] boolForKey:MPEInitiallyPaused]) [self pause];
}
To make room for the new checkbox, I moved the explanation of the effects cache size into the tooltip for that setting.

This feature is now one of several enumerated here, which I have compiled into my own unofficial build of MPlayer.

Also available in: Atom PDF