OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * Copyright (C) 2011 Ericsson AB. All rights reserved. | 3 * Copyright (C) 2011 Ericsson AB. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 USING_GARBAGE_COLLECTED_MIXIN(MediaStreamTrack); | 50 USING_GARBAGE_COLLECTED_MIXIN(MediaStreamTrack); |
51 DEFINE_WRAPPERTYPEINFO(); | 51 DEFINE_WRAPPERTYPEINFO(); |
52 public: | 52 public: |
53 static MediaStreamTrack* create(ExecutionContext*, MediaStreamComponent*); | 53 static MediaStreamTrack* create(ExecutionContext*, MediaStreamComponent*); |
54 ~MediaStreamTrack() override; | 54 ~MediaStreamTrack() override; |
55 | 55 |
56 String kind() const; | 56 String kind() const; |
57 String id() const; | 57 String id() const; |
58 String label() const; | 58 String label() const; |
59 bool remote() const; | 59 bool remote() const; |
60 bool readonly() const; | |
61 | 60 |
62 bool enabled() const; | 61 bool enabled() const; |
63 void setEnabled(bool); | 62 void setEnabled(bool); |
64 | 63 |
65 bool muted() const; | 64 bool muted() const; |
66 | 65 |
67 String readyState() const; | 66 String readyState() const; |
68 | 67 |
69 static void getSources(ExecutionContext*, MediaStreamTrackSourcesCallback*,
ExceptionState&); | 68 static void getSources(ExecutionContext*, MediaStreamTrackSourcesCallback*,
ExceptionState&); |
70 void stopTrack(ExceptionState&); | 69 void stopTrack(ExceptionState&); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 bool m_isIteratingRegisteredMediaStreams; | 108 bool m_isIteratingRegisteredMediaStreams; |
110 bool m_stopped; | 109 bool m_stopped; |
111 Member<MediaStreamComponent> m_component; | 110 Member<MediaStreamComponent> m_component; |
112 }; | 111 }; |
113 | 112 |
114 typedef HeapVector<Member<MediaStreamTrack>> MediaStreamTrackVector; | 113 typedef HeapVector<Member<MediaStreamTrack>> MediaStreamTrackVector; |
115 | 114 |
116 } // namespace blink | 115 } // namespace blink |
117 | 116 |
118 #endif // MediaStreamTrack_h | 117 #endif // MediaStreamTrack_h |
OLD | NEW |