save_subtitles on F5 (refresh in firefox)
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 11 Oct 2009 19:51:55 +0000 (21:51 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 11 Oct 2009 19:54:39 +0000 (21:54 +0200)
README
bin/mplayer.pl

diff --git a/README b/README
index fafbe47..be036a1 100644 (file)
--- a/README
+++ b/README
@@ -56,6 +56,7 @@ commands:
        : $1 eq 'F2' ? move_subtitle( -0.3 )
        : $1 eq 'F3' ? move_subtitle( +0.3 )
        : $1 eq 'F4' ? next_subtitle
+       : $1 eq 'F5' ? save_subtitles
        : $1 eq 'F9' ? add_subtitle
        : $1 eq 'F12' ? edit_subtitles
        : warn "CUSTOM $1\n"
index c282bec..6412c5d 100755 (executable)
@@ -174,7 +174,7 @@ sub html5tv {
                        map {
                                qq|
                                        <div id="$_">
-                                               <video controls="controls" width="$html5tv->{slide}->{width}px" height="$html5tv->{slide}->{height}px">
+                                               <video controls="controls" width="$html5tv->{video}->{width}px" height="$html5tv->{video}->{height}px">
                                                <source src="media/$_" />
                                                </video>
                                        </div>
@@ -360,6 +360,7 @@ while ( my $events = epoll_wait($epfd, 10, 1000) ) { # Max 10 events returned, 1
                                        : $1 eq 'F2' ? move_subtitle( -0.3 )
                                        : $1 eq 'F3' ? move_subtitle( +0.3 )
                                        : $1 eq 'F4' ? next_subtitle
+                                       : $1 eq 'F5' ? save_subtitles
                                        : $1 eq 'F2' ? move_subtitle( -0.3 )
                                        : $1 eq 'F3' ? move_subtitle( +0.3 )
                                        : $1 eq 'F9' ? add_subtitle