Home
last modified time | relevance | path

Searched refs:player_ (Results 1 – 25 of 36) sorted by relevance

12

/ohos5.0/foundation/multimedia/player_framework/frameworks/native/player/test/unittest/src/
H A Dplayer_unit_test.cpp43 ASSERT_NE(nullptr, player_); in SetUp()
50 if (player_ != nullptr) { in TearDown()
51 player_->Release(); in TearDown()
58 if (player_ != nullptr) { in PlayFunTest()
94 if (player_ != nullptr) { in NoRunPlayFunTest()
130 if (player_ != nullptr) { in GetSetParaFunTest()
143 player_->IsLooping(); in GetSetParaFunTest()
667 player_->Reset();
873 EXPECT_EQ(MSERR_OK, player_->SetVideoSurface(player_->GetVideoSurface()));
1792 ret = player_->Play();
[all …]
H A Dplayer_mock.cpp346 return player_ != nullptr; in CreatePlayer()
435 int32_t ret = player_->Play(); in Play()
446 int32_t ret = player_->Pause(); in Pause()
457 int32_t ret = player_->Stop(); in Stop()
473 player_->GetDuration(duration); in SeekPrepare()
499 int32_t ret = player_->Reset(); in Reset()
514 return player_->Release(); in Release()
525 return player_->ReleaseSync(); in ReleaseSync()
570 return player_->GetVideoWidth(); in GetVideoWidth()
612 return player_->IsPlaying(); in IsPlaying()
[all …]
/ohos5.0/foundation/multimedia/media_lite/frameworks/player_lite/binder/
H A Dplayer.cpp52 CHK_NULL_RETURN(player_); in SetSource()
69 CHK_NULL_RETURN(player_); in Prepare()
76 CHK_NULL_RETURN(player_); in Play()
77 return player_->Play(); in Play()
83 if (player_ == nullptr) { in IsPlaying()
93 CHK_NULL_RETURN(player_); in Pause()
94 return player_->Pause(); in Pause()
100 CHK_NULL_RETURN(player_); in Stop()
101 return player_->Stop(); in Stop()
107 CHK_NULL_RETURN(player_); in Rewind()
[all …]
/ohos5.0/foundation/multimedia/media_lite/frameworks/player_lite/passthrough/liteplayer/
H A Dplayer.cpp41 if (player_ == nullptr) { in SetSource()
62 if (player_ == nullptr) { in Prepare()
72 if (player_ == nullptr) { in Play()
76 return player_->Play(); in Play()
82 if (player_ == nullptr) { in IsPlaying()
92 if (player_ == nullptr) { in Pause()
96 return player_->Pause(); in Pause()
102 if (player_ == nullptr) { in Stop()
106 return player_->Stop(); in Stop()
112 if (player_ == nullptr) { in Rewind()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Dmedia_player_impl.cpp31 if (player_) { in ~MediaPlayerImpl()
32 player_->Stop(); in ~MediaPlayerImpl()
33 player_->Release(); in ~MediaPlayerImpl()
61 player_->Create(nullptr); in CreateMediaPlayer()
129 return player_ != nullptr; in IsMediaPlayerValid()
134 CHECK_NULL_VOID(player_); in SetVolume()
142 player_->SetSource(src); in SetSource()
208 player_->SetSpeed(speed); in SetPlaybackSpeed()
250 player_->Start(); in Play()
258 player_->Pause(); in Pause()
[all …]
/ohos5.0/foundation/multimedia/player_framework/test/fuzztest/player_fuzztest/playerfile_fuzzer/
H A Dplayerfile_fuzzer.cpp41 if (player_ == nullptr) { in FuzzFile()
45 player_->SetPlayerCallback(cb); in FuzzFile()
58 player_->PrepareAsync(); in FuzzFile()
60 player_->Play(); in FuzzFile()
62 player_->Pause(); in FuzzFile()
71 player_->GetVideoWidth(); in FuzzFile()
72 player_->GetVideoHeight(); in FuzzFile()
78 player_->SelectBitRate(0); in FuzzFile()
79 player_->Reset(); in FuzzFile()
80 player_->Stop(); in FuzzFile()
[all …]
/ohos5.0/base/web/webview/ohos_adapter/media_adapter/src/
H A Dplayer_framework_adapter_impl.cpp179 if (player_) { in ~PlayerAdapterImpl()
197 if (!player_) { in SetSource()
206 if (!player_) { in SetSource()
228 if (!player_) { in SetVolume()
237 if (!player_) { in Seek()
246 if (!player_) { in Play()
255 if (!player_) { in Pause()
264 if (!player_) { in PrepareAsync()
273 if (!player_) { in GetCurrentTime()
282 if (!player_) { in GetDuration()
[all …]
/ohos5.0/foundation/multimedia/media_lite/services/player_lite/server/src/
H A Dplayer_server.cpp334 if (player_ == nullptr) { in SetSource()
373 if (player_ != nullptr) { in Prepare()
383 if (player_ != nullptr) { in Play()
393 if (player_ != nullptr) { in IsPlaying()
403 if (player_ != nullptr) { in Pause()
413 if (player_ != nullptr) { in Stop()
434 if (player_ != nullptr) { in Rewind()
446 if (player_ != nullptr) { in SetVolume()
480 if (player_ != nullptr) { in SetLoop()
490 if (player_ != nullptr) { in IsSingleLooping()
[all …]
/ohos5.0/foundation/multimedia/media_lite/interfaces/kits/player_lite/js/builtin/src/
H A Daudio_player.cpp238 if (player_ == nullptr) { in CreatePlayer()
260 if (player_ != nullptr) { in DestoryPlayer()
261 if (player_->IsPlaying() && player_->Stop() != 0) { in DestoryPlayer()
270 delete player_; in DestoryPlayer()
271 player_ = nullptr; in DestoryPlayer()
314 if (player_->IsPlaying()) { in Play()
322 if (player_->Play() != 0) { in Play()
337 if (!player_->IsPlaying()) { in Pause()
341 if (player_->Pause() != 0) { in Pause()
420 if (player_ == nullptr) { in IsPlaying()
[all …]
/ohos5.0/foundation/multimedia/media_foundation/test/scenetest/helper/
H A Dstd_player.cpp36 player_ = player; in SetPlayer()
61 IPlayerEngine* player_ {nullptr}; member in OHOS::Media::Test::PlayerCallbackImpl
86 std::unique_ptr<IPlayerEngine> player_; member in OHOS::Media::Test::TestPlayerImpl
118 ret = player_->SetSource(src); in SetSource()
128 return player_->SetLooping(loop); in SetSingleLoop()
141 int32_t ret = player_->Prepare(); in Prepare()
154 int32_t ret = player_->Play(); in Play()
169 int32_t ret = player_->Pause(); in Pause()
183 int32_t ret = player_->Stop(); in Stop()
197 int32_t ret = player_->Reset(); in Reset()
[all …]
H A Dlite_player.cpp95 return player_->SetSource(sourceParam); in SetSource()
100 return player_->SetLoop(loop); in SetSingleLoop()
110 return player_->Prepare(); in Prepare()
116 return player_->Play(); in Play()
121 return player_->Pause(); in Pause()
126 player_ = nullptr; in Release()
132 return player_->Stop(); in Stop()
137 return player_->Reset(); in Reset()
142 int32_t ret = player_->Rewind(timeMs, 0); in Seek()
154 return player_->GetCurrentPosition(currentMS); in GetCurrentTime()
[all …]
/ohos5.0/foundation/multimedia/player_framework/frameworks/native/capi/player/
H A Dnative_avplayer.cpp151 : player_(player) {} in PlayerObject()
261 struct OH_AVPlayer *player_ = nullptr; member in NativeAVPlayerCallback
358 player_->state_ = state; in OnInfo()
560 player_->state_ = state; in OnStateChangeCb()
885 int32_t ret = playerObj->player_->Play(); in OH_AVPlayer_Play()
895 int32_t ret = playerObj->player_->Pause(); in OH_AVPlayer_Pause()
905 int32_t ret = playerObj->player_->Stop(); in OH_AVPlayer_Stop()
916 int32_t ret = playerObj->player_->Reset(); in OH_AVPlayer_Reset()
928 int32_t ret = playerObj->player_->Release(); in OH_AVPlayer_Release()
1157 return playerObj->player_->IsPlaying(); in OH_AVPlayer_IsPlaying()
[all …]
/ohos5.0/foundation/multimedia/player_framework/test/fuzztest/player_fuzztest/playersetvolume_fuzzer/
H A Dplayersetvolume_fuzzer.cpp40 player_ = OHOS::Media::PlayerFactory::CreatePlayer(); in FuzzSetVolume()
41 if (player_ == nullptr) { in FuzzSetVolume()
46 player_->SetPlayerCallback(cb); in FuzzSetVolume()
51 player_->SetVideoSurface(producerSurface); in FuzzSetVolume()
52 player_->PrepareAsync(); in FuzzSetVolume()
54 player_->Play(); in FuzzSetVolume()
56 player_->SetVolume(*reinterpret_cast<float *>(data), *reinterpret_cast<float *>(data)); in FuzzSetVolume()
59 player_->Release(); in FuzzSetVolume()
/ohos5.0/foundation/multimedia/player_framework/test/fuzztest/player_fuzztest/playerseek_fuzzer/
H A Dplayerseek_fuzzer.cpp40 player_ = OHOS::Media::PlayerFactory::CreatePlayer(); in FuzzSeek()
41 if (player_ == nullptr) { in FuzzSeek()
46 int32_t ret = player_->SetPlayerCallback(cb); in FuzzSeek()
54 player_->SetVideoSurface(producerSurface); in FuzzSeek()
55 player_->PrepareAsync(); in FuzzSeek()
57 player_->Play(); in FuzzSeek()
60 player_->Seek(mSeconds, SEEK_NEXT_SYNC); in FuzzSeek()
63 player_->Release(); in FuzzSeek()
/ohos5.0/foundation/multimedia/media_lite/services/player_lite/impl/
H A Dplayer_impl.cpp132 player_ = nullptr; in ~PlayerImpl()
154 CHK_NULL_RETURN(player_); in SetSource()
276 CHK_NULL_RETURN(player_); in Prepare()
297 ret = player_->Prepare(); in Prepare()
352 CHK_NULL_RETURN(player_); in Play()
368 ret = player_->Play(); in Play()
418 player_->Pause(); in Pause()
775 player_.reset(); in ResetInner()
776 player_ = nullptr; in ResetInner()
878 if (player_ == nullptr || player_.get() == nullptr) { in GetPlayer()
[all …]
/ohos5.0/foundation/multimedia/player_framework/frameworks/native/system_sound_manager/ringtone_player/
H A Dringtone_player_impl.cpp62 if (player_ != nullptr) { in ~RingtonePlayerImpl()
63 player_->Release(); in ~RingtonePlayerImpl()
65 player_ = nullptr; in ~RingtonePlayerImpl()
336 (void)player_->SetVolume(volume_); in InitPlayer()
337 (void)player_->SetLoop(loop_); in InitPlayer()
352 (void)player_->SetVolume(volume_); in Configure()
353 (void)player_->SetLoop(loop_); in Configure()
377 int32_t ret = player_->Start(); in Start()
392 (void)player_->Stop(); in Stop()
406 (void)player_->Release(); in Release()
[all …]
/ohos5.0/foundation/multimedia/player_framework/frameworks/js/avplayer/
H A Davplayer_napi.cpp315 int32_t ret = player_->Play(); in PlayTask()
463 int32_t ret = player_->Stop(); in StopTask()
641 if (player_ != nullptr) { in ReleaseTask()
643 player_ = nullptr; in ReleaseTask()
833 if (player_ != nullptr) { in EqueueSetPlayRangeTask()
1015 if (player_ != nullptr) { in AddSubSource()
1034 if (player_ != nullptr) { in AddSubSource()
1147 if (player_ != nullptr) { in EnqueueNetworkTask()
1169 if (player_ != nullptr) { in EnqueueFdTask()
1755 if (player_ != nullptr) { in SetSurface()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/video/
H A Dvideo_element.cpp160 if (player_) { in ~VideoElement()
666 return player_ != nullptr; in HasPlayer()
1008 player_->SetMute(isMute_); in CreatePlayer()
1011 player_->Create(nullptr); in CreatePlayer()
1114 if (player_) { in ReleasePlatformResource()
1763 player_->Start(); in OnStartBtnClick()
1777 player_->Pause(); in OnStartBtnClick()
1937 if (player_) { in OnStartBtnClick()
1951 if (player_) { in OnStartBtnClick()
1969 if (player_) { in OnStartBtnClick()
[all …]
H A Dvideo_component.h302 player_ = player; in SetPlayer()
307 return player_; in GetPlayer()
377 WeakPtr<Player> player_; variable
/ohos5.0/foundation/multimedia/media_lite/services/player_lite/server/include/
H A Dplayer_server.h48 std::shared_ptr<PlayerInterface> player_;
53 PlayerServer() : player_(nullptr), stream_(nullptr), sid_(nullptr) {} in PlayerServer()
/ohos5.0/foundation/multimedia/player_framework/frameworks/native/player/test/unittest/include/
H A Dplayer_unit_test.h36 std::shared_ptr<PlayerMock> player_ = nullptr;
/ohos5.0/foundation/multimedia/player_framework/test/fuzztest/common/
H A Dtest_player.h32 std::shared_ptr<Player> player_ = nullptr; variable
/ohos5.0/base/web/webview/test/unittest/ohos_adapter/media_adapter_test/
H A Dplayer_framework_adapter_impl_test.cpp57 ASSERT_NE(playerAdapter_->player_, nullptr); in SetUp()
73 playerAdapter_->player_ = nullptr;
/ohos5.0/base/web/webview/ohos_adapter/media_adapter/include/
H A Dplayer_framework_adapter_impl.h68 std::shared_ptr<Media::Player> player_ = nullptr;
/ohos5.0/foundation/multimedia/media_lite/interfaces/kits/player_lite/
H A Dplayer.h419 PlayerClient* player_; variable

12