setPlayerOptionString
Sets media player parameter options.
int setPlayerOptionString(String key, String value);
The difference between this method and setPlayerOption is: the value parameter of setPlayerOptionString is of type String, whereas the value parameter of setPlayerOption is also of type String. These two methods cannot be used simultaneously. Usually, you do not need to call this method and can use the default parameters provided by the media player.
Scenario
Applicable to scenarios requiring technical preview or special customization features.
Timing
Call this method before calling the open or openWithMediaSource method.
Parameters
- key
- The key of the parameter option.
- value
- The value of the parameter option.
Return Values
- 0: The method call succeeds.
- < 0: The method call fails.