Skip to content

Commit eceb6e9

Browse files
authored
Add ability to change modestBranding in IframePlayerOptions (#1005)
1 parent a8d2924 commit eceb6e9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

core/src/main/java/com/pierfrancescosoffritti/androidyoutubeplayer/core/player/options/IFramePlayerOptions.kt

+10
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,16 @@ class IFramePlayerOptions private constructor(private val playerOptions: JSONObj
174174
return this
175175
}
176176

177+
/**
178+
* Controls if the YouTube logo will be displayed in the control bar or not.
179+
* @param modestBranding If set to 1: the YouTube logo will not be displayed in the control bar.
180+
* If set to 0: the YouTube logo will be displayed in the control bar.
181+
*/
182+
fun modestBranding(modestBranding: Int): Builder {
183+
addInt(MODEST_BRANDING, modestBranding)
184+
return this
185+
}
186+
177187
private fun addString(key: String, value: String) {
178188
try {
179189
builderOptions.put(key, value)

0 commit comments

Comments
 (0)