aboutsummaryrefslogtreecommitdiffhomepage
path: root/player/lua
Commit message (Collapse)AuthorAge
* lua: do not use math.pow()Gravatar wm42015-01-25
| | | | | It's the first thing that breaks with Lua 5.3. I don't know if there are other failures because I don't care enough.
* ytdl: implement user-agent and cookie overridesGravatar wm42015-01-24
| | | | | | | | | | | | | | | | For some sites, youtube-dl sends a special user-agent. If we don't send the same user-agent, the server will reject mpv's connection attempt. This was observed with trailers.apple.com. Fix it by forcing the user-agent youtube-dl uses. Some sites set cookies when doing a website access, and require the client to provide these cookies when downloading the actual media. This is needed at least by nicovideo.jp. Fix by adding youtube-dl's cookies to our request headers. Both of these require a very recent youtube-dl version (youtube-dl added the necessary headers a few hours ago). The script still works with older youtube-dl versions, though.
* ytdl_hook: Check for empty playlistsGravatar ChrisK22015-01-16
| | | | | Sometimes we get empty playlists back, print a warning message instead of crash
* OSC: Reset all styles for idle messageGravatar ChrisK22015-01-16
|
* osc: fix disabling OSCGravatar wm42015-01-15
| | | | | | | Upon the "DEL" key binding or the "disable-osc" message, the OSC should stay permanently invisible. This was recently broken (not sure by what), because other code accidentally reenables it anyway, which resulted in the OSC appearing again when moving the mouse.
* ytdl: silence "succeeded" messageGravatar wm42015-01-03
| | | | Pretty useless by now.
* OSC: idlemessage: fix alignmentGravatar ChrisK22015-01-02
|
* OSC: add osc-message script command (wip)Gravatar ChrisK22015-01-02
|
* OSC: display "drop files here" message when idle + forced-windowGravatar ChrisK22015-01-02
| | | | This currently doesn't work properly on OSX due to some bugs.
* options: deprecate 'lua' based options/dirs for 'script'Gravatar Avi Halachmi (:avih)2014-12-15
| | | | | | | | | | | | - --lua and --lua-opts change to --script and --script-opts - 'lua' default script dirs change to 'scripts' - DOCS updated - 'lua-settings' dir was _not_ modified The old lua-based names/dirs still work, but display a warning. Signed-off-by: wm4 <wm4@nowhere>
* lua: don't ignore key press events for script key bindingsGravatar wm42014-12-10
| | | | Meh.
* osc: improve slimbox layout and minor code cleanupsGravatar ChrisK22014-12-05
|
* assdraw: Properly approximate circle for rounded boxGravatar ChrisK22014-12-05
| | | | source: http://spencermortensen.com/articles/bezier-circle/
* osc, dvd, bd: fix mouse state when changing menu modesGravatar wm42014-12-05
| | | | | | | | | The flags weren't correctly set, and the mouse cursor remained visible after leaving menu mode. This was apparently broken in 0.7.0 too. Fixes #1316.
* dvd, bd, osc: disable OSC while a menu is activeGravatar wm42014-12-04
| | | | | | | They interfere. It turns out that commit b6ca4a48 actually broke this in weird ways, but this solution is better anyway.
* lua: fully cleanup removed key bindingsGravatar wm42014-12-03
| | | | This is basically cosmetic; it was leaking the old handler functions.
* osc: always force mouse_move bindingGravatar wm42014-12-02
| | | | | | So the OSC will still appear when using --no-input-default-bindings. It also means it may override a user's mouse_move binding, but I guess users who don't want the OSC should just use the --no-osc option.
* lua: add a function that formats Lua values as stringsGravatar wm42014-11-29
| | | | | | | | Yep, Lua is so crappy that the stdlib doesn't provide anything like this. Repurposes the undocumented mp.format_table() function and moves it to mp.utils.
* ytdl: bump requrired youtube-dl version to 2014.11.26Gravatar ChrisK22014-11-26
|
* ytdl: Try to handle multi-arc videosGravatar ChrisK22014-11-26
| | | | | | | | this currently uses a sketchy but apparently working workaround, which will be removed once the neccessary changes in youtube-dl are implemented Fixes #1277
* ytdl: When using DASH, print actual durationGravatar ChrisK22014-11-26
| | | | | prints the actual duration as reported by youtube-dl to the terminal when available
* lua: remove redundant callGravatar wm42014-11-24
|
* lua: always handle key repeat on the script sideGravatar wm42014-11-24
| | | | | | Simpler, and leaves the decision to repeat or not fully to the script (instead of requiring the user to care about it when remapping a script binding).
* lua, ipc: remove leftoversGravatar wm42014-11-24
| | | | | | MPV_EVENT_SCRIPT_INPUT_DISPATCH is now unused/deprecated. Also remove a debug-print from defaults.lua.
* input, lua: redo input handlingGravatar wm42014-11-23
| | | | | Much of it is the same, but now there's the possibility to distinguish key down/up events in the Lua API.
* input: set mouse area by default for all inputGravatar wm42014-11-23
| | | | | | | | | | Otherwise, mouse button bindings added by mp.add_key_binding() would be ignored. It's possible that this "breaks" some older scripts using undocumented Lua script functions, but it should be safe otherwise. Fixes #1283.
* lua: add a way to add repeatable key bindingsGravatar wm42014-11-21
| | | | For these, autorepeat is enabled.
* options: add --ytdl-format option for youtube-dl formatGravatar Jaime Marquínez Ferrándiz2014-11-20
| | | | | | | | | It's passed with the '--format' option to youtube-dl. If it isn't set, we don't pass '--format best' so that youtube-dl can use the options from its configuration file. Signed-off-by: wm4 <wm4@nowhere>
* lua: add youtube-dl hook scriptGravatar ChrisK22014-11-19
| | | | | | | This merely adds the file without using it, for the sake of retaining authorship information. Signed-off-by: wm4 <wm4@nowhere>
* man: document osc seekbarstyle optionGravatar ahoka2014-11-15
|
* osc: add validation for string user optionsGravatar ahoka2014-11-15
|
* osc: add seekbarstyle optionGravatar ahoka2014-11-15
|
* osc: make text squuezing layout dependentGravatar ChrisK22014-10-24
| | | | | | | | | | | Wether and when the text of a button should be squeezed when it gets too long can now be configured in the layout: lo.button.maxchars = <number> nil = no squeezing (default) If the button text has more than <maxchars> characters, it will be squeezed to the estimated width of <maxchars>.
* osc: make tooltip_an default propertyGravatar ChrisK22014-10-24
|
* osc.lua: add “bottombar” and “topbar” layoutsGravatar Martin Herkt2014-10-23
|
* lua: add convenience function for hooksGravatar wm42014-10-21
| | | | So the user doesn't have to care about the awkward low-level details.
* osc: update cache displayGravatar ChrisK22014-09-25
| | | | now similar to what the status line displays
* options.lua: call msg.debug after resolving 'identifier'Gravatar Otto Modinos2014-09-16
|
* osc: Use osd-font for playlist buttonsGravatar ChrisK22014-08-22
| | | | | Now that we use the symbols from the font, we should also actually use the font.
* osc: revert disabling use_suspendGravatar wm42014-08-21
| | | | It was an unintended/accidental change.
* osd+osc: Add left-arrow to osd-fontGravatar ChrisK22014-08-21
| | | | | For use as playlist navigation button in OSC, now the osd-font carries all symbols needed by the OSC.
* osc: Overhaul (wip)Gravatar ChrisK22014-08-15
| | | | | | | | | | | | Code reorganized to make layouts exchangeable alternative test layout can be tested with layout=slimbox in the OSC config timers are now used to properly animate the fade out when the player is paused duplicate seeks are discarded again
* lua: allow disabling suspendGravatar wm42014-08-14
| | | | | I'd like to enable this by default, but unfortunately the OSC seems to have some problems with it.
* osc: Do precise seeks on simple clicks on seekbarGravatar ChrisK22014-07-29
|
* osc: improve previous commitGravatar ChrisK22014-07-10
|
* osc: round displayed cache valueGravatar ChrisK22014-07-10
| | | | Fixes #919
* osc: fix failure when using DVD menusGravatar wm42014-07-07
| | | | [osc] Lua error: mp.assdraw:31: attempt to concatenate local 's' (a nil value)
* player: make the time display relative to start PTSGravatar Tsukasa OMOTO2014-06-29
| | | | | | This commit makes the playback start time always at time 0. Signed-off-by: wm4 <wm4@nowhere>
* client API: change mpv_wait_event() timeout semanticsGravatar wm42014-06-07
| | | | | | | | | Now a negative timeout mean an infinite timeout. This is similar to the poll() system call. Apparently this is more intuitive and less confusing than specifying a "very high" value as timeout if you want to wait forever. For callers that never pass negative timeouts, nothing changes.
* osc: keep track of the "fullscreen" state when it changesGravatar Marcoen Hirschberg2014-06-02
| | | | | This avoids having to poll the "fullscreen" property in the tick callback.