2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Pause/resume supported in the video player in MediaView.

Autoplay video in MediaView only from showDocument(), otherwise pause.
This commit is contained in:
John Preston
2016-07-13 14:24:31 +03:00
parent 647759f0d1
commit fc716af002
13 changed files with 217 additions and 35 deletions

View File

@@ -2936,7 +2936,7 @@ void HistoryItem::clipCallback(Media::Clip::Notification notification) {
switch (notification) {
case NotificationReinit: {
bool stopped = false;
if (reader->paused()) {
if (reader->autoPausedGif()) {
if (MainWidget *m = App::main()) {
if (!m->isItemVisible(this)) { // stop animation if it is not visible
media->stopInline();