Ticket #9301: mythbrowser-volume.patch

File mythbrowser-volume.patch, 725 bytes (added by Jonatan <mythtv@…>, 10 years ago)
  • mythplugins/mythbrowser/mythbrowser/mythflashplayer.cpp

    diff --git a/mythplugins/mythbrowser/mythbrowser/mythflashplayer.cpp b/mythplugins/mythbrowser/mythbrowser/mythflashplayer.cpp
    index 4fddfb4..95d9ffe 100644
    a b bool MythFlashPlayer::keyPressEvent(QKeyEvent *event) 
    8282            evaluateJavaScript("seek(60);");
    8383        else if (action == "CHANNELDOWN")
    8484            evaluateJavaScript("seek(-60);");
     85        else if (action == "VOLUMEUP")
     86            evaluateJavaScript("adjustVolume(2);");
     87        else if (action == "VOLUMEDOWN")
     88            evaluateJavaScript("adjustVolume(-2);");
    8589        else
    8690            handled = false;
    8791