Skip to content

Commit

Permalink
ui/video: Use self.control for injecting events
Browse files Browse the repository at this point in the history
  • Loading branch information
andoma committed Mar 15, 2016
1 parent 2c0c353 commit 32dd567
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions glwskins/flat/pages/video.view
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ widget(container_z, {
source: $self.source;

focusable: 0.1;
injectEventsFrom($self.control);

onEvent(left, deliverEvent($self.media.eventSink, "SeekReverse"));
onEvent(right, deliverEvent($self.media.eventSink, "SeekForward"));
Expand Down Expand Up @@ -192,7 +193,7 @@ widget(container_z, {

PLAYDECK_BUTTON("skin:https://icons/ic_stop_48px.svg",
_("Stop"),
targetedEvent("videowidget", Stop),
deliverEvent($self.control, Stop),
true, "stop-btn");

PLAYDECK_BUTTON("skin:https://icons/ic_subtitles_48px.svg",
Expand All @@ -204,7 +205,7 @@ widget(container_z, {

PLAYDECK_BUTTON("skin:https://icons/ic_skip_previous_48px.svg",
_("Previous"),
targetedEvent("videowidget", PreviousTrack),
deliverEvent($self.control, PreviousTrack),
$self.media.canSkipBackward ||
$self.media.canSeek,
"prev-btn");
Expand All @@ -214,13 +215,13 @@ widget(container_z, {
"pause",
"skin:https://icons/ic_play_arrow_48px.svg"),
_("Play/Pause"),
targetedEvent("videowidget", PlayPause),
deliverEvent($self.control, PlayPause),
$self.media.canPause,
"pause-btn");

PLAYDECK_BUTTON("skin:https://icons/ic_skip_next_48px.svg",
_("Next"),
targetedEvent("videowidget", NextTrack),
deliverEvent($self.control, NextTrack),
$self.media.canSkipForward,
"next-btn");

Expand Down

0 comments on commit 32dd567

Please sign in to comment.