JWLogo
@interface JWLogo : NSObject
Configures a clickable watermark that is overlayed on the video.
-
The file path of a JPG, PNG, SVG or GIF image to be used as watermark (e.g. /assets/logo.png). We recommend using 24 bit PNG images with transparency.
Note
Can be either an external URL or the resource path in the bundle.Declaration
Objective-C
@property (nonatomic, copy, readwrite) NSString *_Nonnull file;
-
When this option is set to true, the logo will automatically show and hide along with the other player controls. Defaults to NO.
Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite) BOOL hide;
-
The URL to visit when the watermark image is clicked. Clicking a logo will have no effect unless this is configured.
Declaration
Objective-C
@property (nonatomic, copy, readwrite, nullable) NSString *link;
-
The distance, in pixels, of the logo from the edges of the display. Defaults to 20;
Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite) NSUInteger margin;
-
This sets the corner in which to display the watermark. JWControlbar adds the logo as the leftmost icon in the right grouping of buttons in the control bar.
Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite) JWLogoPosition position;
-
Factory method that creates a logo with a local file by specifying the file name and its extension.
Declaration
Objective-C
+ (nonnull instancetype)logoNamed:(nonnull NSString *)name withExtension:(nonnull NSString *)fileType;
Parameters
name
The name of the resource file.
fileType
The file’s extension (i.e. png).