| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "webkit/media/android/media_source_delegate.h" | 5 #include "webkit/media/android/media_source_delegate.h" |
| 6 | 6 |
| 7 #include "base/message_loop_proxy.h" | 7 #include "base/message_loop_proxy.h" |
| 8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
| 9 #include "media/base/android/demuxer_stream_player_params.h" | 9 #include "media/base/android/demuxer_stream_player_params.h" |
| 10 #include "media/base/bind_to_loop.h" | 10 #include "media/base/bind_to_loop.h" |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 proxy_->DemuxerReady(player_id_, params); | 398 proxy_->DemuxerReady(player_id_, params); |
| 399 } | 399 } |
| 400 | 400 |
| 401 void MediaSourceDelegate::OnDemuxerOpened() { | 401 void MediaSourceDelegate::OnDemuxerOpened() { |
| 402 media_source_->open(new WebMediaSourceClientImpl( | 402 media_source_->open(new WebMediaSourceClientImpl( |
| 403 chunk_demuxer_.get(), base::Bind(&LogMediaSourceError, media_log_))); | 403 chunk_demuxer_.get(), base::Bind(&LogMediaSourceError, media_log_))); |
| 404 } | 404 } |
| 405 | 405 |
| 406 void MediaSourceDelegate::OnKeyError(const std::string& key_system, | 406 void MediaSourceDelegate::OnKeyError(const std::string& key_system, |
| 407 const std::string& session_id, | 407 const std::string& session_id, |
| 408 media::Decryptor::KeyError error_code, | 408 media::MediaKeys::KeyError error_code, |
| 409 int system_code) { | 409 int system_code) { |
| 410 client_->keyError( | 410 client_->keyError( |
| 411 WebString::fromUTF8(key_system), | 411 WebString::fromUTF8(key_system), |
| 412 WebString::fromUTF8(session_id), | 412 WebString::fromUTF8(session_id), |
| 413 static_cast<WebKit::WebMediaPlayerClient::MediaKeyErrorCode>(error_code), | 413 static_cast<WebKit::WebMediaPlayerClient::MediaKeyErrorCode>(error_code), |
| 414 system_code); | 414 system_code); |
| 415 } | 415 } |
| 416 | 416 |
| 417 void MediaSourceDelegate::OnKeyMessage(const std::string& key_system, | 417 void MediaSourceDelegate::OnKeyMessage(const std::string& key_system, |
| 418 const std::string& session_id, | 418 const std::string& session_id, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 void MediaSourceDelegate::OnDecryptorReady(media::Decryptor* decryptor) {} | 459 void MediaSourceDelegate::OnDecryptorReady(media::Decryptor* decryptor) {} |
| 460 | 460 |
| 461 scoped_ptr<media::TextTrack> MediaSourceDelegate::OnAddTextTrack( | 461 scoped_ptr<media::TextTrack> MediaSourceDelegate::OnAddTextTrack( |
| 462 media::TextKind kind, | 462 media::TextKind kind, |
| 463 const std::string& label, | 463 const std::string& label, |
| 464 const std::string& language) { | 464 const std::string& language) { |
| 465 return scoped_ptr<media::TextTrack>(); | 465 return scoped_ptr<media::TextTrack>(); |
| 466 } | 466 } |
| 467 | 467 |
| 468 } // namespace webkit_media | 468 } // namespace webkit_media |
| OLD | NEW |