aboutsummaryrefslogtreecommitdiffhomepage
path: root/player/lua
Commit message (Collapse)AuthorAge
* ytdl_hook: add pre-parsed chapters, if availableGravatar Ricardo Constantino2017-07-02
| | | | Available since 2017.05.07 but only on certain extractors.
* ytdl_hook: don't override start time set by saved stateGravatar Martin D2017-06-09
| | | | This affects resuming playback from a watch_later directory so that you can resume playback even for URLs that have a start parameter.
* ytdl_hook: don't override user-set start timeGravatar Ricardo Constantino2017-06-08
|
* OSD message: "Drop files or URLs to play here."Gravatar nodiscc2017-05-31
| | | | Add "or URLs" to the default OSD message when mpv is launched without parameters. Since this works flawlessly with youtube-dl integration, the fact that you can drop URLs directly to the window should be advertised more.
* ytdl_hook: rework edl joining to use lua tablesGravatar Ricardo Constantino2017-05-04
| | | | Seems much more resource efficient than concatenating a string.
* osc: also add processing for axis_up/down eventsGravatar Ricardo Constantino2017-04-25
| | | | | | Considered semantically equivalent with mouse_btn3/4. This is a preemptive fix for upcoming changes to AXIS_* events.
* ytdl_hook: treat single-entry playlists as a single videoGravatar Ricardo Constantino2017-04-23
|
* ytdl_hook: move single video code to a separate functionGravatar Ricardo Constantino2017-04-23
|
* osc: add user_opts.boxmaxchars for box layout title limitGravatar Avi Halachmi (:avih)2017-04-19
| | | | | The default of 80 is conservative to allow relatively wide fonts, but with many common fonts a bigger number can be used without overflow.
* osc: add volume icons to osd font and use themGravatar Ricardo Constantino2017-04-19
| | | | | Glyphs taken and based on U+1F507 to U+1F50A from Symbola, which is available under public domain: http://users.teilar.gr/~g1951d/
* osc: move volume left of fullscreen buttonGravatar Ricardo Constantino2017-04-19
|
* osc: bottom/topbar: add fullscreen buttonGravatar Ricardo Constantino2017-04-19
|
* osc: add volume buttonGravatar Ricardo Constantino2017-04-19
| | | | | Click to toggle mute, mouse wheel to change volume. OSD is shown on volume change.
* osc: support handling mouse wheel eventsGravatar Ricardo Constantino2017-04-19
|
* osc: simplify checks in key handlerGravatar Ricardo Constantino2017-04-19
| | | | Use a helper function for these safety checks.
* osc: fix last potential race condition on key eventsGravatar Ricardo Constantino2017-04-19
|
* osc: use "loop-playlist" instead of "loop" propertyGravatar wm42017-04-11
|
* osc: escape ASS and strip newlines on titleGravatar Ricardo Constantino2017-03-27
|
* osc: make title configurable and use property expansion on itGravatar Ricardo Constantino2017-03-27
|
* Revert "osc: make the title toggleable between media-title and filename"Gravatar Ricardo Constantino2017-03-27
| | | | This reverts commit 6573b73462e336da0daca845ba4df02782afc2b6.
* osc: make the title toggleable between media-title and filenameGravatar Ricardo Constantino2017-03-26
| | | | Close #4221
* osc: fix PlayResX undefined warning when aspect is 0Gravatar Ricardo Constantino2017-03-24
|
* osc: bottom/topbar: don't clip title verticallyGravatar Ricardo Constantino2017-03-24
|
* osc: bottom/topbar: increase timecodes width a bitGravatar Ricardo Constantino2017-03-24
| | | | | | | Compensates for wider fonts like DejaVu Sans Mono. Further compensate for the minus sign in the right timecode by 10px. Closes #3952
* osc: refactor cache status displayGravatar Ricardo Constantino2017-03-24
| | | | This removes the twitch of the right-aligned cache status.
* osc: refactor osc message scalingGravatar Ricardo Constantino2017-03-24
| | | | | | | | | | Will still hide playlist items with long enough filenames and osd-font-size but not as soon. osc messages should now preserve their scaling with fullscreen toggling and cycling through audio-only files and files with video. Closes #4081, #4083, #4102
* osc: fix window dragging with showwindowed=noGravatar Akemi2017-02-27
| | | | | | | initialise OSC with a zero mouse area so mp_input_test_dragging returns a proper value. Fixes #1819
* ytdl_hook: support livestream segmented DASH VODsGravatar Ricardo Constantino2017-02-10
| | | | | | | | | | | | Seen with a VOD of a recently ended livestream on Youtube. They seem to use segmented DASH but unlike normal Youtube segmented DASH, the segments don't seem to need the initialization segment. The video actually fails to start to play if the init segment is prepended with a lot of 'Found duplicated MOOV Atom. Skipped it' errors popping up.
* ytdl_hook: reenable support for length-less segments in EDLGravatar Ricardo Constantino2017-02-06
| | | | They're unsupported only in MP4 DASH mode.
* ytdl_hook: fix EDL syntaxGravatar wm42017-02-05
| | | | | All entries must be separated by ";" or "\n". The parser just doesn't enforce it if an entry uses quoting.
* ytdl_hook: Add non-dash fallbacks to default formatsGravatar Ricardo Constantino2017-02-04
|
* ytdl_hook, edl: implement pseudo-DASH supportGravatar wm42017-02-04
| | | | | | | | | We use the metadata provided by youtube-dl to sort-of implement fragmented DASH streaming. This is all a bit hacky, but hopefully a makeshift solution until libavformat has proper mechanisms. (Although in danger of being one of those temporary hacks that become permanent.)
* ytdl: support segmented dashGravatar Ricardo Constantino2017-02-04
|
* osc: allow playlist buttons when loopingGravatar Ricardo Constantino2017-02-01
| | | | Closes #4092
* osc: box: clip with ellipsis after too much stretchingGravatar Ricardo Constantino2017-01-31
|
* osc: bottom/topbar: clip title instead of stretchingGravatar Ricardo Constantino2017-01-31
|
* ytdl_hook: refactor edl track joiningGravatar Ricardo Constantino2017-01-30
| | | | | | Only used once for now. Also, support switched format strings, like bestaudio+bestvideo.
* ytdl_hook: respect --no-audio, don't force-select trackGravatar Ricardo Constantino2017-01-30
|
* ytdl_hook: fix opening hitbox.tv rtmp streamGravatar Ricardo Constantino2017-01-29
| | | | | Worked with librtmp, but ffrtmp needs to set rtmp_swfurl in addition to rtmp_swfverify, even if they're the same value.
* stream_lavf: add support for data URIsGravatar Ricardo Constantino2017-01-25
| | | | | | | Only FFmpeg supports them and they need to be in the format data:// like other protocols or prefixed with ffmpeg:// or lavf://. Closes #4058
* osc: fix crashes related to field eventresponder being nilGravatar Roland Hieber2017-01-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I'm still getting some crashes after issue #3210 was fixed in commit 5beb2306904b4437b5acf136b02aeaa073c351c7. It's hard to reproduce those crashes, they happen maybe once a month, so I guess it could be a race condition. But in any case, I don't see anything wrong in applying some defensive programming here. For reference, here is what was happening on 0.23.0-1 from Debian testing: Playing: ytdl://usL5CeP_row (+) Video --vid=1 (*) (h264) (+) Audio --aid=1 --alang=und (*) (aac) [osc] [osc] stack traceback: [osc] @osc.lua:2074: in function 'process_event' [osc] @osc.lua:2246: in function 'cb' [osc] mp.defaults:107: in function 'fn' [osc] mp.defaults:60: in function 'handler' [osc] mp.defaults:339: in function 'handler' [osc] mp.defaults:448: in function 'call_event_handlers' [osc] mp.defaults:485: in function 'dispatch_events' [osc] mp.defaults:441: in function <mp.defaults:440> [osc] [C]: in ? [osc] [C]: in ? [osc] Lua error: @osc.lua:2074: attempt to index field 'eventresponder' (a nil value) Note that the location is different from where issue #3210 happens. Signed-off-by: Roland Hieber <rohieb@rohieb.name>
* lua: allow unregistration of idle handlersGravatar Olivier Perret2017-01-15
|
* osc: bottombar/topbar: make chapter markers slightly biggerGravatar Ricardo Constantino2016-12-25
| | | | | | | 1px squares to 2px triangles and layout=box markers from 1px squares to 2x1px rectangles. While we're at it, wrap a few lines to 80col again.
* osc: replace length property with durationGravatar pavelxdd2016-12-04
| | | | | | Length property is deprecated and no longer works. This fixes a bug when the total file duration wasn't visible if the option to display milliseconds was activated.
* osc: don't hide playlist buttons, just disableGravatar Ricardo Constantino2016-12-02
| | | | | | | | Having empty space before the title in layout=*bar looks worse than the floating buttons in layout=box. Also disable both playlist buttons selectively according to the current position.
* osc: topbar: use same styles as bottombarGravatar Ricardo Constantino2016-12-02
|
* osc: fix use of deprecated idle propertyGravatar Ricardo Constantino2016-11-22
| | | | Fixes regression since 7201fd7d
* client API: turn mpv_suspend() and mpv_resume() into stubsGravatar wm42016-11-22
| | | | | | | | | | | As threatened by the API changes document. This commit also removes or stubs equivalent calls in IPC and Lua scripting. The stubs are left to maintain ABI compatibility. The semantics of the API functions have been close enough to doing nothing that this probably won't even break existing API users. Probably.
* osc: fix possible race condition in right timecodeGravatar Ricardo Constantino2016-11-21
|
* ytdl_hook: sort chapters by timeGravatar Ricardo Constantino2016-11-15
| | | | | mpv doesn't work well with unordered chapters. ex: https://youtu.be/DIKPUL6b4N8