OLD | NEW |
---|---|
(Empty) | |
1 <link rel="import" href="chrome://resources/html/polymer.html"> | |
2 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> | |
3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/av-icons.htm l"> | |
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-slider/paper-slid er.html"> | |
5 <dom-module id="route-controls"> | |
6 <link rel="import" type="css" href="../../media_router_common.css"> | |
7 <link rel="import" type="css" href="route_controls.css"> | |
8 <template> | |
9 <div id="media-controls"> | |
10 <div class="ellipsis" id="route-description" | |
11 title="[[routeStatus_.description]]"> | |
12 [[routeStatus_.description]]</div> | |
13 <div class="ellipsis" id="route-display-name" | |
14 title="[[routeStatus_.title]]"> | |
15 [[routeStatus_.title]]</div> | |
16 <div> | |
17 <div id="route-time-controls" | |
18 hidden="[[!routeStatus_.canSeek]]"> | |
19 <paper-slider | |
20 id="route-time-slider" | |
21 on-change="onTimeSliderChange_" | |
22 on-immediate-value-change="onImmediateTimeSliderChange_" | |
23 min="0" max="1" step="0.01" | |
mark a. foltz
2017/05/03 21:26:59
Should this be in seconds reflecting the media dur
takumif
2017/05/05 18:57:38
Yup, doing seconds here would be a good idea. Chan
| |
24 title="[[i18n('seekTitle')]]" | |
25 value="[[timeSliderValue_]]"></paper-slider> | |
26 <div id="timeline"> | |
mark a. foltz
2017/05/03 21:26:59
Presumably, non-seekable live media can still have
takumif
2017/05/05 18:57:39
This is the existing behavior. We can change it in
| |
27 <span id="current-time"> | |
28 [[getFormattedTime_(displayedCurrentTime_)]]</span> | |
29 <span id="duration">[[getDuration_(routeStatus_)]]</span> | |
30 </div> | |
31 </div> | |
32 <div id="play-pause-volume-controls"> | |
33 <span id="button-holder"> | |
34 <paper-icon-button | |
35 id="route-play-pause-button" | |
36 hidden="[[!routeStatus_.canPlayPause]]" | |
37 disabled="[[!routeStatus_.canPlayPause]]" | |
38 icon="[[getPlayPauseIcon_(routeStatus_)]]" | |
39 title="[[getPlayPauseTitle_(routeStatus_.isPaused)]]" | |
mark a. foltz
2017/05/03 21:26:59
Should this be i18n('play') or i18n('pause')? Can
takumif
2017/05/05 18:57:38
getPlayPauseTitle_() defined in route_controls.js
| |
40 on-click="onPlayPause_"></paper-icon-button> | |
41 <paper-icon-button | |
42 id="route-volume-button" | |
43 hidden="[[!routeStatus_.canMute]]" | |
mark a. foltz
2017/05/03 21:26:59
disable this control as well for consistency with
takumif
2017/05/05 18:57:38
Done.
| |
44 icon="[[getMuteUnmuteIcon_(routeStatus_)]]" | |
45 title="[[getMuteUnmuteTitle_(routeStatus_.isMuted)]]" | |
mark a. foltz
2017/05/03 21:26:59
Similar comment here
takumif
2017/05/05 18:57:38
Same, i18n-ized text is returned by JS.
| |
46 on-click="onMuteUnmute_"></paper-icon-button> | |
47 </span> | |
48 <span id="volume-holder"> | |
49 <paper-slider | |
50 id="route-volume-slider" | |
51 hidden="[[!routeStatus_.canSetVolume]]" | |
mark a. foltz
2017/05/03 21:26:59
Also disable if hidden
takumif
2017/05/05 18:57:39
Done.
| |
52 on-change="onVolumeSliderChange_" | |
53 on-immediate-value-change="onImmediateVolumeSliderChange_" | |
54 title="[[i18n('volumeTitle')]]" | |
55 value="[[volumeSliderValue_]]" | |
56 min="0" max="1" step="0.01"></paper-slider> | |
57 </span> | |
58 </div> | |
59 </div> | |
60 </div> | |
61 </template> | |
62 <script src="route_controls.js"></script> | |
63 </dom-module> | |
OLD | NEW |