blob: 66875246ee972a222f9d19b490740c373869b338 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/public/platform/modules/mediastream/web_platform_media_stream_track.h"
#include "third_party/blink/renderer/platform/mediastream/media_stream_component.h"
namespace blink {
// static
WebPlatformMediaStreamTrack* WebPlatformMediaStreamTrack::GetTrack(
const WebMediaStreamTrack& track) {
if (track.IsNull())
return nullptr;
MediaStreamComponent& component = *track;
return component.GetPlatformTrack();
}
WebPlatformMediaStreamTrack::WebPlatformMediaStreamTrack(bool is_local_track)
: is_local_track_(is_local_track) {}
WebPlatformMediaStreamTrack::~WebPlatformMediaStreamTrack() {}
} // namespace blink