Skip to content

Commit

Permalink
feat(player): set player pointer
Browse files Browse the repository at this point in the history
(cherry picked from commit 0ffc8b48754c9eef4abca9c28079e742f5f3addc)
  • Loading branch information
I-m-SuperMan authored and pingkai committed Aug 24, 2020
1 parent c840c69 commit 4c7ffd8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mediaPlayer/media_player_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ playerHandle *CicadaCreatePlayer(const char *opts)
string value;
value = item.getString("name", defaultString);
if (value != defaultString) {
createOpt.set("name", value);
createOpt.set("name", value , options::REPLACE);
}
value = item.getString("playerPointer" , defaultString);
if (value != defaultString) {
createOpt.set("playerPointer", value , options::REPLACE);
}
pHandle->pPlayer = CicadaPlayerPrototype::create(&createOpt);
return pHandle;
Expand Down

0 comments on commit 4c7ffd8

Please sign in to comment.