Classes
The following classes are available globally.
-
An interface to expose information on an ad companion.
See moreDeclaration
Swift
@objc public class JWAdCompanion : NSObject
-
A description of an ad event.
See moreDeclaration
Swift
@objc public class JWAdEvent : NSObject
-
Ad impression information for an ad.
See moreDeclaration
Swift
@objcMembers public class JWAdImpression : NSObject
-
A description of an ad impression from the JW Player Ad Client.
See moreDeclaration
Swift
@objcMembers public class JWPlayerAdImpression : JWAdImpression
-
An offset into the content where an ad plays.
See moreDeclaration
Swift
@objc public class JWAdOffset : NSObject
-
This class represents an obstruction that is marked as friendly for viewability measurement purposes.
See moreDeclaration
Swift
@objcMembers public class JWFriendlyObstruction : NSObject
-
This class allows to register views considered as friendly obstructions.
Friendly obstructions are views such as video controls that are essential to the user’s experience but do not impact viewability. Once registered as such, these controls are excluded from ad viewability measurements. These controls must only be fully transparent overlays or small buttons. Any other non-control views must not be registered.
When ad viewability via the OMSDK is calculated, all views overlaying the media element are considered obstructions and reduce the viewability rate.
You may register:
- A transparent overlay used to capture user taps.
- Transient buttons such as:
- Pause
- Play
- Fullscreen
- Cast/AirPlay
- Collapse
- Progress/Seek
- Other playback relevant actions
You must NOT register:
- Watermarks
- Pop ups
- Dialogs
- Non-transient buttons
Other obscuring views
Note
Applicable to Google IMA & DAI ad clients only. For more information, see Open Measurement in the IMA SDK
Tag: FriendlyObstructionsContainer
Declaration
Swift
@objcMembers public class JWFriendlyObstructionsContainer : NSObject
-
Defines time information.
See moreDeclaration
Swift
@objcMembers public class JWTimeData : NSObject
-
Defines time range information.
See moreDeclaration
Swift
@objcMembers public class JWTimeRange : NSObject
-
A JWCueTime can represent any accepted format of time in a cue.
See moreDeclaration
Swift
@objcMembers public class JWCueTime : NSObject
-
Defines a point of interest in the content.
See moreDeclaration
Swift
@objcMembers public class JWCue : NSObject, JWJSONEncodable
-
A custom error class.
See moreDeclaration
Swift
@objcMembers public class JWError : NSError
-
A location or point in time where one or more ads may be scheduled for delivery.
See moreDeclaration
Swift
@objcMembers public class JWAdBreak : NSObject
-
Defines playback rules for the scheduled ads.
Declaration
Swift
@objc public class JWAdRules : NSObject
-
This class allows setting specific ad behavior for the JWPlayer ad client.
Declaration
Swift
@objc public class JWAdSettings : NSObject
-
The builder for
See moreJWAdSettings
, object used to set behavior for JWPlayer ads.Declaration
Swift
@objcMembers public class JWAdSettingsBuilder : NSObject, JWBuilder
-
Used to build a
See moreJWAdvertisingConfig
object to play ads using the JWPlayer client.Declaration
Swift
@objcMembers public class JWAdsAdvertisingConfigBuilder : NSObject, JWBuilder
-
Encompasses all configuration options for ad plugins.
See moreDeclaration
Swift
@objc public class JWAdvertisingConfig : NSObject
-
Used to configure Google DAI streams based on the provided information.
See moreDeclaration
Swift
@objc public class JWGoogleDAIStream : NSObject
-
Used to build a
See moreJWAdvertisingConfig
object to play ads using the IMA client.Declaration
Swift
@objcMembers public class JWImaAdvertisingConfigBuilder : NSObject, JWBuilder
-
Used to build a
See moreJWAdvertisingConfig
object to play ads using the DAI client.Declaration
Swift
@objcMembers public class JWImaDaiAdvertisingConfigBuilder : NSObject, JWBuilder
-
The
JWImaSettings
class encompasses the Google IMA SDK settings.Declaration
Swift
@objc public class JWImaSettings : NSObject
-
The builder for
See moreJWImaSettings
, object used to configure the Google IMA SDK.Declaration
Swift
@objcMembers public class JWImaSettingsBuilder : NSObject, JWBuilder
-
This serves as the base class for configurations affecting advertisement analytics.
Declaration
Swift
@objc public class JWAdTrackerConfig : NSObject
-
An object describing the position, size, and behavior of a caption on the screen. In order to instantiate an instance of this class, use
See moreJWCaptionPositionBuilder
.Declaration
Swift
@objcMembers public class JWCaptionPosition : NSObject
-
The builder for creating a
See moreJWCaptionPosition
and verifying its properties.Declaration
Swift
@objcMembers public class JWCaptionPositionBuilder : NSObject, JWBuilder
-
Configuration object used to customize the captions. Styles specified using this structure will only be applied if the user’s accessibility settings allow it, and only for SRT and WebVTT captions. EIA-608 captions always default to the user’s accessibility settings.
See moreDeclaration
Swift
@objcMembers public class JWCaptionStyle : NSObject
-
Provides information about a caption track.
See moreDeclaration
Swift
@objcMembers public class JWCaptionTrack : JWMediaTrack
-
Provides information about a chapter track.
See moreDeclaration
Swift
@objcMembers public class JWChapterTrack : JWMediaTrack
-
A settings object containing information regarding external playback.
See moreDeclaration
Swift
public class JWExternalPlaybackSettings : NSObject
-
A builder for creating instances of
See moreJWExternalPlaybackSettings
.Declaration
Swift
public class JWExternalPlaybackSettingsBuilder : NSObject, JWBuilder
-
This JSON parser helps to convert a json object into a
See moreJWPlayerConfiguration
using the different configuration builders provided byJWPlayerKit
.Declaration
Swift
@objcMembers final public class JWJSONParser : NSObject
-
Defines a logo which is overlayed on the player.
Declaration
Swift
@objc public class JWLogo : NSObject
-
Represents a specific option for the presentation of media.
See moreDeclaration
Swift
@objcMembers public class JWMediaSelectionOption : NSObject
-
Provides information about captions or thumbnails. Supports TTML (DFXP), SRT, and WebVTT formats.
See moreDeclaration
Swift
@objcMembers public class JWMediaTrack : NSObject
-
Defines the style for the control bar on a player.
Declaration
Swift
@objc public class JWMenuStyle : NSObject
-
Used to build a
See moreJWPlayerConfiguration
object to configure instance(s) ofJWPlayer
.Declaration
Swift
@objcMembers public class JWPlayerConfigurationBuilder : NSObject, JWBuilder
-
Defines a player item which contains the information about the media content.
See moreDeclaration
Swift
@objcMembers public class JWPlayerItem : NSObject, JWJSONEncodable
-
A configuration object for handling related content loading and display.
Declaration
Swift
@objc public class JWRelatedContentConfiguration : NSObject
-
Defines a time range in the video which should display a skip button, along with a destination in the video to seek to.
See moreDeclaration
Swift
@available(tvOS 14, *) @available(iOS, unavailable) @objcMembers public class JWSkippableTimeRange : NSObject
-
Defines the style for the control bar on a player.
Declaration
Swift
@objc public class JWTimeSliderStyle : NSObject
-
Defines a video source which represents a visual quality level of the video.
See moreDeclaration
Swift
@objcMembers public class JWVideoSource : NSObject
-
A description of a video quality level.
See moreDeclaration
Swift
@objcMembers public class JWVisualQualityLevel : NSObject
-
See moreJWVisualQuality
represents the quality of a video stream.Declaration
Swift
@objcMembers public class JWVisualQuality : NSObject
-
This loader is used to interface with FairPlay and decode streams for download.
See more -
JWLockScreenManager allows setting the active JWPlayer that will be shown on the NowPlaying Controls.
Important
In your App´s Signing & Capabilities you should add Background Modes:- Audio.
- AirPlay.
- and Picture in Picture. ### Notes: In order for the lock screen controls to be visible:
- Background audio must be enabled.
- The audio session must be set to
AVAudioSessionCategoryPlayback
.
By default when using more than one player, the last player played will have priority on NowPlaying Controls.
See moreDeclaration
Swift
@objcMembers public class JWLockScreenManager : NSObject
-
Access log metadata. Fires when a new access log entry has been added for the JWPlayerItem.
See moreDeclaration
Swift
@objcMembers public class JWAccessLogMetadata : NSObject
-
Date range metadata. Fired when playback enters the section of an HLS stream tagged with #EXT-X-DATERANGE.
See moreDeclaration
Swift
@objcMembers public class JWDateRangeMetadata : NSObject
-
Metadata that can be passed externally to supplement the encoded metadata of the underlying media asset.
See moreDeclaration
Swift
@objcMembers public class JWExternalMetadata : NSObject
-
ID3 metadata. Fires when playback buffers a section of an HLS stream containing ID3 tags.
See moreDeclaration
Swift
@objcMembers public class JWID3Metadata : NSObject
-
Media metadata. Fires when the initial metadata of content has loaded.
See moreDeclaration
Swift
@objcMembers public class JWMediaMetadata : NSObject
-
Delegates that surface different types of metadata from the player.
See moreDeclaration
Swift
@objcMembers public class JWMetadataDelegates : NSObject
-
Program-date-time metadata. Fires when playback enters the section of an HLS stream tagged with #EXT-X-PROGRAM-DATE-TIME.
See moreDeclaration
Swift
@objcMembers public class JWProgramDateTimeMetadata : NSObject
-
JWPlayerKitLicense is a static interface into our SDK for accomplishing basic tasks outside of a JWPlayer instance.
See moreDeclaration
Swift
@objcMembers public class JWPlayerKitLicense : NSObject
-
A structure describing settings for the ad interface.
Declaration
Swift
@objc public class JWAdInterfaceStyle : NSObject
-
Used to define the next up card’s style.
Declaration
Swift
@objc public class JWNextUpStyle : NSObject
-
Used to build a new
JWNextUpStyle
to configure the next up card.Note
An Offset is required.Declaration
Swift
@objcMembers public class JWNextUpStyleBuilder : NSObject, JWBuilder
-
This view controller creates a sleek, minimalist interface more consistent with a cinematic experience akin to what you would see for viewing movies and long media.
Note
The view created by this controller is intended for full screen use only.Declaration
Swift
@objcMembers open class JWCinematicViewController: UIViewController, AVPictureInPictureControllerDelegate, JWAccessLogMetadataDelegate, JWAdDelegate, JWAirPlayDelegate, JWAVDelegate, JWDateRangeMetadataDelegate, JWExternalMetadataDelegate, JWID3MetadataDelegate, JWMediaMetadataDelegate, JWPlayerDelegate, JWPlayerStateDelegate, JWPlayerViewDelegate, JWProgramDateTimeMetadataDelegate, JWTimeEventListener, JWRelatedEventDelegate, JWChaptersDelegate
-
A view for displaying a player. It automatically handles enlarging the player to the size of this container view, and displaying the player.
See moreDeclaration
Swift
@objcMembers public class JWPlayerView : UIView, JWPlayerViewProtocol, ViewabilityHandlerDelegate