-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Great!

Well, for what it's worth, I don't have the same issue using mpv. (I
tried adding that 2>/dev/null bit just to check if it caused your
problem, but it did not...)

On 07/08/15 01:22, Daniel Roesler wrote:
> Thanks for the responses! I was able to add the following to my
> ~/.elinks/elinks.conf
>
> set document.uri_passing.open_vid = "mplayer %c 2>/dev/null"
> bind "main" "Ctrl-P" = "link-external-command"
>
> So when I highlight a link and press Ctrl+p, it opens in mplayer!
> However, for some reason mplayer isn't responsive to key commands
> while running. Does elinks gobble up the keystrokes while the external
> task is running (is it running in the background)? Is there a way to
> run the external program in the foreground?
>
> Daniel
>
> On Tue, Jul 7, 2015 at 1:34 PM, IngeGNUe <[email protected]> wrote:
>>
> Hi, I do this:
>
> Go to options > Document > URI Passing. Add, then title it something
> like stream-mplayer (do not use spaces). Edit the new entry you just
> made. Type  mplayer %c into the Value box, hit OK, Save, and you're done.
>
> I haven't tried this with mplayer. Personally, I prefer mpv.
>
> This way, you simply press a key (see your keybinding for "pass URI of
> current link to external command") to select what to do with a
> highlighted link, and it will either do the only action available or
> show you a context menu of what to do with it.
>
> There are basically an unlimited variety of things you can do with URI
> passing, including copying the link's URL, or launching any other
> application. One of my personal favorites is opening a link in another
> browser, e.g. IceCat, for those occasions that I need to run JavaScript
> or the page's content won't display properly. When the command
> completes, sometimes the window looks garbled, but Ctrl-L fixes that
easily.
>
>
> On 07/07/15 11:31, Daniel Roesler wrote:
> >>> Howdy all,
> >>>
> >>> I'm trying to stream a video from a local website using elinks, but
> >>> elinks is trying to download the entire video before opening it using
> >>> mplayer. Is there a way I can pass the url of the link into the
> >>> download command instead of the downloaded file?
> >>>
> >>> What I'm trying to open:
> >>> <a href="vid.mp4">Vid</a>
> >>>
> >>> What I currently do:
> >>> I highlight that link and hit Enter. The dialog pops up and asks if I
> >>> want to open with "/usr/bin/mplayer %". I select Open. Then it starts
> >>> downloading the full video file. I have to wait for the entire file to
> >>> download before it opens in mplayer :(
> >>>
> >>> What I'd like to happen:
> >>> When I hit Enter, I'd like to run "/usr/bin/mplayer %url%". That way,
> >>> mplayer will just stream the video without waiting for the whole thing
> >>> to download :)
> >>>
> >>> How do I do this in elinks?
> >>>
> >>> Thanks!
> >>> Daniel
>
>>
>>
>> --
>> http://lists.linuxfromscratch.org/listinfo/elinks-users
>> Unsubscribe: See the above information page

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJVnSkIAAoJEN9nJ5jSz519VmIP/25Ai5UtVC2mWDbCjipfYyoM
aMDvzqMmnbw81lTLYaYvSZ7gUCzBZLqcP6Itg3CSbLH9HTBSrVMlm5yLoNlk+00d
HanBKo7O7TKSxBElgc/YKUGMeVyx00bMek691h9U+rfT4xkU5s42OVX3PI1CaZ7t
ETdi/3cx3Pg35EQgHGo0LhuJlA7N0rTSyO8zimETVQrux4Cyzo5p8eC2h8cgc0gX
dV0gz0+ALlMrfsLog8gELKpBX9p/yruN8eoewQInrVNtHWKTLq5K4gsUqWWJ+AWO
xADdT0EoosVDF8l97XLYn9za3WcjR8DwrJpQop56Jup+nEWZ0AMXIRLPLXw3Hhra
Gf7jb+Xam2BjrIhV2tJY9qCNWiwjYzq3ChUNrD6EY5LsjjD/ppWvGofqn9HDc8Sb
MNjy58WOADSlqnCjYq0NPBQGRBoQB9bs69IiX6tXiUpYKvZowrBgMJu7ObLdKfBR
Fk70mVFK5DtcnIl6dXANvP4LlqP5HdkBp9YjLE4AuXVadIhw1IXDt8DdonzfWJn7
peZm4MxSowDjDDMHngvgEQHk/+WHa1o942dBzG0+JlCwmFxevE6AcZKR8X2mCEUn
/0F4eK8mO42asAorCnflOiKbPblysHy+FRqyF9n/RiEEV2UkftOqGpYdWHalppAW
KhUY7Tbk+q/0zGMrrbRm
=Vof0
-----END PGP SIGNATURE-----


-- 
http://lists.linuxfromscratch.org/listinfo/elinks-users
Unsubscribe: See the above information page

Reply via email to