d99kris / nchat

Terminal-based Telegram / WhatsApp client for Linux and macOS
MIT License
619 stars 43 forks source link

[Enhancement] Add support for viewing video messages #53

Closed d99kris closed 2 years ago

d99kris commented 2 years ago

This missing feature was pointed out in the Telegram channel t.me/nchatusers.

d99kris commented 2 years ago

Telegram typically sends mp4 video files. While macOS plays them natively by default, some Linux distros may need some configuration to play them correctly. Nchat uses xdg-open to open any attached files under Linux. To get xdg-open to play mp4 files using mplayer one can for example use mimeopen:

mimeopen -d ~/Downloads/myvideo.mp4

Please choose a default application for files of type video/mp4

    1) Other...

use application #1
use command: mplayer

(if no mp4 file is available, one can use nchat to download a video message with CTRL-R)