aboutsummaryrefslogtreecommitdiffhomepage
path: root/player/lua
Commit message (Collapse)AuthorAge
* osc: avoid annoying verbose mode log spamGravatar wm42015-08-10
| | | | | | | | enable_key_bindings()/disable_key_bindings() now prints a log message on each call, thus we should avoid makign redundant calls. This could probably be solved more elegantly, but since this is all legacy/private API, don't bother.
* lua: implement input_enable_section/input_disable_section via commandsGravatar wm42015-08-06
| | | | | | | | | | | | | | | Removes some more internal API calls from the Lua scripting backend. Which is good, because ideally the scripting backend would use libmpv functions only. One awkwardness is that mouse sections are still not supported by the public commands (and probably will never), so flags like allow-hide- cursor make no sense to an outside user. Also, the way flags are passed to the Lua function changes. But that's ok, because they're only undocumented internal functions, and not supposed to be used by script users. osc.lua only does due to historical reasons.
* lua: make mp.input_define_section use the define-section commandGravatar wm42015-08-06
|
* osc: completely disable if no VO window existsGravatar wm42015-08-04
| | | | | Fixes relatively excessive CPU usage when paused while playing audio only.
* player: remove higher-level remains of DVD/BD menu supportGravatar wm42015-08-03
| | | | | | | | | | | | | | | Nobody wanted to restore this, so it gets the boot. If anyone still wants to volunteer to restore menu support, this would be welcome. (I might even try it myself if I feel masochistic and like wasting a lot of time for nothing.) But if it does get restored, it should be done differently. There were many stupid things about how it was done. For example, it somehow tried to pull mp_nav_events through all the layers (including needing to "buffer" them in the demuxer), which was needlessly complicated. It could be done simpler. This code was already inactive, so this commit actually changes nothing. Also keep in mind that normal DVD/BD playback still works.
* ytdl: get start_timeGravatar Ricardo Constantino2015-07-29
|
* ytdl: print command in debug modeGravatar Ricardo Constantino2015-07-29
|
* ytdl: don't print failure warning when youtube-dl was killed by usGravatar wm42015-06-27
|
* osc: time display configuration optionsGravatar Teoh Han Hui2015-06-19
| | | | Total time and ms
* ytdl_hook: Support 'multi_video' resultsGravatar Jaime Marquínez Ferrándiz2015-06-07
| | | | | They can be handled by the same codes used for playlists, most of them will use an EDL. Fixes #2027.
* lua: fix options submoduleGravatar wm42015-05-29
| | | | | | | | | It polluted the global namespace, instead of exporting the function properly. For now, keep it compatible by explicitly keeping the bogus export. Also fix a mistake in the manpage example.
* input: allow - as separator between commands, instead of _Gravatar wm42015-05-25
| | | | | | | | | | Wnile it seems quite logical to me that commands use _ as word separator, while properties use -, I can't really explain the difference, and it tends to confuse users as well. So always prefer - as separator for everything. Using _ still works, and will probably forever. Not doing so would probably create too much chaos and confusion.
* ytdl: do not use deprecated optionGravatar wm42015-05-23
| | | | This was missed in commit 450af053.
* options: rename --media-title optionGravatar wm42015-05-22
| | | | Conflicts with the property.
* command: deprecate the "length" propertyGravatar wm42015-05-22
| | | | It collides with the --length option.
* ytdl_hook: remove tabsGravatar wm42015-05-09
| | | | We don't allow tabs in normal source code.
* ytdl_hook: Escape EDL URLsGravatar ChrisK22015-05-07
| | | | | Should prevent the EDL parser from tripping over = and , in the URL.
* osc: redo slider position translationGravatar ChrisK22015-04-28
| | | | | | Now done in one place instead of mulitple times all over the code. Fixes #1876
* ytdl_hook.lua: Change format options when vid is "off"Gravatar robin2015-04-27
| | | | | | | | This will change the format option to "bestaudio/best" instead of passing the "-x" argument to yt-dl. Prevents the video still being downloaded in the new mpv versions where the yt-dl format is set to "best" by default.
* osc: add nil check for element.eventresponderGravatar wm42015-04-23
| | | | Possibly fixes a crash (see #1101).
* osc: paint over a crashGravatar wm42015-04-22
| | | | | Sometimes tries to index a nil object when seeking close to the end of the file. See #1101.
* ytdl: set additional properties for rtmp streamsGravatar Sebastian Mayr2015-04-09
|
* ytdl_hook.lua: Disable video when vid option is "no"Gravatar robin2015-04-09
| | | | | | When setting options like --no-video, ytdl_hook adds the "-x" argument to youtube-dl, so that bandwith is saved by not downloading the video on some sites.
* lua: replace getcwd() implementationGravatar wm42015-03-24
|
* Lua: add unpack shim for Lua 5.2/5.3 compatibility.Gravatar torque2015-03-06
| | | | | | | | | The global unpack function got moved to table.unpack in Lua 5.2, and it's only available as the global if 5.2 is built with compatibility enabled (the default). Lua 5.3 does not build with 5.1 compatibility by default. Fixes #1648.
* ytdl: add "--ytdl-params" optionGravatar Thiago Kenji Okada2015-02-25
| | | | | | | | | | | This option allows the user to pass non-supported options directly to youtube-dl, such as "--proxy URL", "--username USERNAME" and '--password PASSWORD". There is no sanity checking so it's possible to break things (i.e. if you pass "--version" mpv exits with random JSON error). Signed-off-by: wm4 <wm4@nowhere>
* ytdl: add --no-warningsGravatar wm42015-02-24
| | | | | | Silences "[ytdl_hook] WARNING: video doesn't have subtitles", which was an annoying and pointless message printed with almost all youtube videos.
* ytdl: Adapt to new subtitles structureGravatar Jaime Marquínez Ferrándiz2015-02-24
| | | | The requested formats can be sorted by preference and the result gives now an url or the subtitles file content
* 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
|