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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 void MediaSourceDelegate::OnDemuxerOpened() { | 440 void MediaSourceDelegate::OnDemuxerOpened() { |
441 if (!media_source_) | 441 if (!media_source_) |
442 return; | 442 return; |
443 | 443 |
444 media_source_->open(new WebMediaSourceClientImpl( | 444 media_source_->open(new WebMediaSourceClientImpl( |
445 chunk_demuxer_.get(), base::Bind(&LogMediaSourceError, media_log_))); | 445 chunk_demuxer_.get(), base::Bind(&LogMediaSourceError, media_log_))); |
446 } | 446 } |
447 | 447 |
448 void MediaSourceDelegate::OnKeyError(const std::string& key_system, | 448 void MediaSourceDelegate::OnKeyError(const std::string& key_system, |
449 const std::string& session_id, | 449 const std::string& session_id, |
450 media::Decryptor::KeyError error_code, | 450 media::MediaKeys::KeyError error_code, |
451 int system_code) { | 451 int system_code) { |
452 if (!client_) | 452 if (!client_) |
453 return; | 453 return; |
454 | 454 |
455 client_->keyError( | 455 client_->keyError( |
456 WebString::fromUTF8(key_system), | 456 WebString::fromUTF8(key_system), |
457 WebString::fromUTF8(session_id), | 457 WebString::fromUTF8(session_id), |
458 static_cast<WebKit::WebMediaPlayerClient::MediaKeyErrorCode>(error_code), | 458 static_cast<WebKit::WebMediaPlayerClient::MediaKeyErrorCode>(error_code), |
459 system_code); | 459 system_code); |
460 } | 460 } |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 void MediaSourceDelegate::OnDecryptorReady(media::Decryptor* decryptor) {} | 511 void MediaSourceDelegate::OnDecryptorReady(media::Decryptor* decryptor) {} |
512 | 512 |
513 scoped_ptr<media::TextTrack> MediaSourceDelegate::OnAddTextTrack( | 513 scoped_ptr<media::TextTrack> MediaSourceDelegate::OnAddTextTrack( |
514 media::TextKind kind, | 514 media::TextKind kind, |
515 const std::string& label, | 515 const std::string& label, |
516 const std::string& language) { | 516 const std::string& language) { |
517 return scoped_ptr<media::TextTrack>(); | 517 return scoped_ptr<media::TextTrack>(); |
518 } | 518 } |
519 | 519 |
520 } // namespace webkit_media | 520 } // namespace webkit_media |
OLD | NEW |