Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Side by Side Diff: ui/file_manager/video_player/js/cast/cast_video_element.js

Issue 397813004: Video Player: Add a message which is shown on casting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 'use strict';
6
7 /**
8 * This class is dummy class which has same interface as VideoElement. This
9 * behaves like VideoElementand <video>) uses for making Chromecast player
fukino 2014/07/18 10:18:43 Comment broken?
yoshiki 2014/07/18 15:56:34 Thanks for notifying.
10 * controlled instead of true <video> tag.
11 */
12 function CastVideoElement() {
13 this.duration_ = null;
14 this.currentTime_ = null;
15 this.src_ = '';
16 this.volume_ = 100;
17 }
18
19 CastVideoElement.prototype = {
20 __proto__: cr.EventTarget.prototype,
21
22 /**
23 * Returns a parent node. This must always be null.
24 * @return {Element}
25 */
26 get parentNode() {
27 return null;
28 },
29
30 /**
31 * The total time of the video.
32 * @type {number}
33 */
34 get duration() {
35 return this.duration_;
36 },
37
38 /**
39 * The current timestamp of the video.
40 * @type {number}
41 */
42 get currentTime() {
43 return this.currentTime_;
44 },
45 set currentTime(currentTime) {
46 this.currentTime_ = currentTime;
47 },
48
49 /**
50 * If this video is pauses or not/
fukino 2014/07/18 10:18:43 trailing slash. Should it be period?
yoshiki 2014/07/18 15:56:34 Done.
51 * @type {boolean}
52 */
53 get paused() {
54 return false;
55 },
56
57 /**
58 * If this video is ended or not/
59 * @type {boolean}
60 */
61 get ended() {
62 return false;
63 },
64
65 /**
66 * If this video is seelable or not/
67 * @type {boolean}
68 */
69 get seekable() {
70 return false;
71 },
72
73 /**
74 * Value of the volume
75 * @type {number}
76 */
77 get volume() {
78 return this.volume_;
79 },
80 set volume(volume) {
81 this.volume_ = volume;
82 },
83
84 /**
85 * Returns the source of the current video.
86 * @return {string}
87 */
88 get src() {
89 return this.src_;
90 },
91
92 /**
93 * Plays the video.
94 */
95 play: function() {
96 // TODO(yoshiki): Implement this.
97 },
98
99 /**
100 * Pauses the video.
101 */
102 pause: function() {
103 // TODO(yoshiki): Implement this.
104 },
105
106 /**
107 * Loads the video.
108 */
109 load: function() {
110 // TODO(yoshiki): Implement this.
111 },
112 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698