mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix iOS builds after updates to media.mojom
This commit is contained in:
parent
92a516a5c1
commit
08e33cd671
@ -23,6 +23,9 @@ class MediaServiceImpl : public ::media::MediaService {
|
||||
void CreatePlayer(
|
||||
mojo::InterfaceRequest<::media::MediaPlayer> player) override;
|
||||
|
||||
void CreateSoundPool(mojo::InterfaceRequest<::media::SoundPool> pool,
|
||||
int32_t max_streams) override;
|
||||
|
||||
private:
|
||||
mojo::StrongBinding<::media::MediaService> binding_;
|
||||
MediaPlayerFactory media_player_;
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "base/logging.h"
|
||||
#include "sky/services/media/ios/media_service_impl.h"
|
||||
|
||||
namespace sky {
|
||||
@ -19,6 +20,12 @@ void MediaServiceImpl::CreatePlayer(
|
||||
media_player_.Create(nullptr, player.Pass());
|
||||
}
|
||||
|
||||
void MediaServiceImpl::CreateSoundPool(
|
||||
mojo::InterfaceRequest<::media::SoundPool> pool,
|
||||
int32_t max_streams) {
|
||||
DCHECK(false);
|
||||
}
|
||||
|
||||
void MediaServiceFactory::Create(
|
||||
mojo::ApplicationConnection* connection,
|
||||
mojo::InterfaceRequest<::media::MediaService> request) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user