Lines Matching refs:player
124 status_t MediaPlayer::attachNewPlayer(const sp<IMediaPlayer>& player) in attachNewPlayer() argument
139 mPlayer = player; in attachNewPlayer()
140 if (player != 0) { in attachNewPlayer()
164 sp<IMediaPlayer> player(service->create(this, mAudioSessionId)); in setDataSource() local
165 if ((NO_ERROR != doSetRetransmitEndpoint(player)) || in setDataSource()
166 (NO_ERROR != player->setDataSource(httpService, url, headers))) { in setDataSource()
167 player.clear(); in setDataSource()
169 err = attachNewPlayer(player); in setDataSource()
181 sp<IMediaPlayer> player(service->create(this, mAudioSessionId)); in setDataSource() local
182 if ((NO_ERROR != doSetRetransmitEndpoint(player)) || in setDataSource()
183 (NO_ERROR != player->setDataSource(fd, offset, length))) { in setDataSource()
184 player.clear(); in setDataSource()
186 err = attachNewPlayer(player); in setDataSource()
197 sp<IMediaPlayer> player(service->create(this, mAudioSessionId)); in setDataSource() local
198 if ((NO_ERROR != doSetRetransmitEndpoint(player)) || in setDataSource()
199 (NO_ERROR != player->setDataSource(source))) { in setDataSource()
200 player.clear(); in setDataSource()
202 err = attachNewPlayer(player); in setDataSource()
627 status_t MediaPlayer::doSetRetransmitEndpoint(const sp<IMediaPlayer>& player) { in doSetRetransmitEndpoint() argument
630 if (player == NULL) { in doSetRetransmitEndpoint()
635 return player->setRetransmitEndpoint(&mRetransmitEndpoint); in doSetRetransmitEndpoint()