Skip to content

Commit

Permalink
Change native set streaming property method name from SetStreamingPro…
Browse files Browse the repository at this point in the history
…p to SetStreamingProperty
  • Loading branch information
xiaowei-guan committed Sep 9, 2024
1 parent 8a7a2ae commit 69d45c8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions packages/video_player_avplay/tizen/src/plus_player.cc
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ int64_t PlusPlayer::Create(const std::string &uri,
if (create_message.streaming_property() != nullptr &&
!create_message.streaming_property()->empty()) {
for (const auto &[key, value] : *create_message.streaming_property()) {
SetStreamingProp(std::get<std::string>(key),
std::get<std::string>(value));
SetStreamingProperty(std::get<std::string>(key),
std::get<std::string>(value));
}
}

Expand Down Expand Up @@ -597,8 +597,8 @@ bool PlusPlayer::SetBufferConfig(const std::string &key, int64_t value) {
return ::SetBufferConfig(player_, config);
}

void PlusPlayer::SetStreamingProp(const std::string &type,
const std::string &value) {
void PlusPlayer::SetStreamingProperty(const std::string &type,
const std::string &value) {
if (!player_) {
LOG_ERROR("[PlusPlayer] Player not created.");
return;
Expand Down
4 changes: 2 additions & 2 deletions packages/video_player_avplay/tizen/src/plus_player.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ class PlusPlayer : public VideoPlayer {
std::string GetStreamingProperty(
const std::string &streaming_property_type) override;
bool SetBufferConfig(const std::string &key, int64_t value) override;
void SetStreamingProp(const std::string &type,
const std::string &value) override;
void SetStreamingProperty(const std::string &type,
const std::string &value) override;

private:
bool IsLive();
Expand Down
4 changes: 2 additions & 2 deletions packages/video_player_avplay/tizen/src/video_player.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ class VideoPlayer {
return false;
};

virtual void SetStreamingProp(const std::string &type,
const std::string &value){};
virtual void SetStreamingProperty(const std::string &type,
const std::string &value){};

protected:
virtual void GetVideoSize(int32_t *width, int32_t *height) = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ std::optional<FlutterError> VideoPlayerTizenPlugin::SetStreamingProperty(
if (!player) {
return FlutterError("Invalid argument", "Player not found");
}
player->SetStreamingProp(msg.streaming_property_type(),
msg.streaming_property_value());
player->SetStreamingProperty(msg.streaming_property_type(),
msg.streaming_property_value());
return std::nullopt;
}

Expand Down

0 comments on commit 69d45c8

Please sign in to comment.