Code Monkey home page Code Monkey logo

jwplayerkit-cocoapod's Introduction

JW Player SDK for iOS

Document version: 07/08/2024 SDK version: 4.19.2

Getting support and submitting feedback

To send us your feedback or bug reports, please visit our Support Portal. Select “I have a question for the technical support team” or “I want to report a bug” and then follow the steps to report your issue. Our support team will follow up in a timely manner.

Before contacting us, please read our FAQ.

To ask technical questions please open an issue in our Best Practice Apps repo.

Using the SDK library

For integration instructions and API reference, see the developer guide.

Best Practice Apps

The source code of sample projects demonstrating how to use some of the SDK's advanced functionality can be found in the jwplayer-ios-bestPracticeApps repo.

License notices

Documentation is generated using appledoc (https://github.com/tomaz/appledoc).

jwplayerkit-cocoapod's People

Contributors

david-almaguer avatar

Stargazers

 avatar Amitai Blickstein avatar

Watchers

James Cloos avatar Matthew Gundel avatar Niels Langeveld avatar Brian Choy avatar  avatar Amitai Blickstein avatar Joe Milham avatar  avatar

jwplayerkit-cocoapod's Issues

shows error code 230002 while playing offline local video using file:// ptorocol

show below the error message:

This video cannot be played because of a problem with your internet
connection.
Error Code: 230002

SDK version: 4.5.3

but internet error message should not appear while playing offline video using file:// protocol. the offline video plays fine while connected to the internet.

Here is the log from my xcode:

2022-07-03 17:57:53.000960+0600 my-project[46345:2521524] Connection 26: received failure notification
2022-07-03 17:57:53.001012+0600 my-project[46345:2521524] Connection 26: failed to connect 1:50, reason -1
2022-07-03 17:57:53.001037+0600 my-project[46345:2521524] Connection 26: encountered error(1:50)
2022-07-03 17:57:53.006003+0600 my-project[46345:2521524] Task <AE7FCA36-8B43-42C6-9CEA-08601E80450B>.<2> HTTP load failed, 0/0 bytes (error code: -1020 [1:50])
2022-07-03 17:57:53.006575+0600 my-project[46345:2521417] Task <AE7FCA36-8B43-42C6-9CEA-08601E80450B>.<2> finished with error [-1020] Error Domain=NSURLErrorDomain Code=-1020 "A data connection is not currently allowed." UserInfo={_kCFStreamErrorCodeKey=50, NSUnderlyingError=0x2836ed7a0 {Error Domain=kCFErrorDomainCFNetwork Code=-1020 "(null)" UserInfo={_NSURLErrorNWPathKey=unsatisfied (No network route), _kCFStreamErrorCodeKey=50, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <AE7FCA36-8B43-42C6-9CEA-08601E80450B>.<2>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <AE7FCA36-8B43-42C6-9CEA-08601E80450B>.<2>"
), NSLocalizedDescription=A data connection is not currently allowed., NSErrorFailingURLStringKey=https://prd.jwpltx.com/v1/jwplayer6/ping.gif?h=-272429834&e=s&n=0435721074924900&aid=0TqH6KZ3Eeu1y0KW64R6tw&at=1&c=-1&ccp=0&cp=0&d=1&eb=0&ed=6&emi=imagir7919x3&lid=hmu4zz2dxz9l&lsa=set&mt=0&pbd=1&pbr=1&pgi=02xi3gqolpei&ph=0&pii=0&pl=375&plc=1&pli=jluqtyuz1baf&pp=AVPlayerProvider&prc=1&ps=3&pss=1&pv=8.24.0&pyc=1&s=0&sdk=2&stc=1&stpe=0&sv=4.5.3&t=%E0%A6%AA%E0%A6%B0%E0%A7%8D%E0%A6%AF%E0%A6%BE%E0%A7%9F%E0%A6%AC%E0%A7%83%E0%A6%A4%E0%A7%8D%E0%A6%A4%20%E0%A6%97%E0%A6%A4%E0%A6%BF%20&tv=3.36.1&vb=1&vi=1&vl=90&wd=667&abm=1&cae=0&cct=0&cdid=player&drm=0&ff=130&l=0&mk=mp4&mu=file%3A%2F%2F%2Fvar%2Fmobile%2FContainers%2FData%2FApplication%2F6A6BE852-7DAE-4FD0-B077-3B1DBC7F40F0%2FLibrary%2F1236913%2F10MS_Medical_Physics_-_Admission_21_1_113_810371_89.mp4&pcp=0&pd=3&pdr=&plng=bn&pni=0&pr=7&q=0&qcr=initial%20choice&sp=0&strt=180&tb=0&tt=0&vd=0&vh=720&vs=0&vw=1280&sa=1656849468323, NSErrorFailingURLKey=https://prd.jwpltx.com/v1/jwplayer6/ping.gif?h=-272429834&e=s&n=0435721074924900&aid=0TqH6KZ3Eeu1y0KW64R6tw&at=1&c=-1&ccp=0&cp=0&d=1&eb=0&ed=6&emi=imagir7919x3&lid=hmu4zz2dxz9l&lsa=set&mt=0&pbd=1&pbr=1&pgi=02xi3gqolpei&ph=0&pii=0&pl=375&plc=1&pli=jluqtyuz1baf&pp=AVPlayerProvider&prc=1&ps=3&pss=1&pv=8.24.0&pyc=1&s=0&sdk=2&stc=1&stpe=0&sv=4.5.3&t=%E0%A6%AA%E0%A6%B0%E0%A7%8D%E0%A6%AF%E0%A6%BE%E0%A7%9F%E0%A6%AC%E0%A7%83%E0%A6%A4%E0%A7%8D%E0%A6%A4%20%E0%A6%97%E0%A6%A4%E0%A6%BF%20&tv=3.36.1&vb=1&vi=1&vl=90&wd=667&abm=1&cae=0&cct=0&cdid=player&drm=0&ff=130&l=0&mk=mp4&mu=file%3A%2F%2F%2Fvar%2Fmobile%2FContainers%2FData%2FApplication%2F6A6BE852-7DAE-4FD0-B077-3B1DBC7F40F0%2FLibrary%2F1236913%2F10MS_Medical_Physics_-_Admission_21_1_113_810371_89.mp4&pcp=0&pd=3&pdr=&plng=bn&pni=0&pr=7&q=0&qcr=initial%20choice&sp=0&strt=180&tb=0&tt=0&vd=0&vh=720&vs=0&vw=1280&sa=1656849468323, _kCFStreamErrorDomainKey=1}
2022-07-03 17:57:53.408789+0600 my-project[46345:2521402] Connection 27: received failure notification
2022-07-03 17:57:53.408912+0600 my-project[46345:2521402] Connection 27: failed to connect 1:50, reason -1
2022-07-03 17:57:53.408978+0600 my-project[46345:2521402] Connection 27: encountered error(1:50)
2022-07-03 17:57:53.418976+0600 my-project[46345:2521638] Task <4235781A-D61E-47C5-9CAB-9870557332D6>.<4> HTTP load failed, 0/0 bytes (error code: -1020 [1:50])
2022-07-03 17:57:53.421268+0600 my-project[46345:2521417] Task <4235781A-D61E-47C5-9CAB-9870557332D6>.<4> finished with error [-1020] Error Domain=NSURLErrorDomain Code=-1020 "A data connection is not currently allowed." UserInfo={_kCFStreamErrorCodeKey=50, NSUnderlyingError=0x2836d76c0 {Error Domain=kCFErrorDomainCFNetwork Code=-1020 "(null)" UserInfo={_NSURLErrorNWPathKey=unsatisfied (No network route), _kCFStreamErrorCodeKey=50, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalUploadTask <4235781A-D61E-47C5-9CAB-9870557332D6>.<4>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalUploadTask <4235781A-D61E-47C5-9CAB-9870557332D6>.<4>"
), NSLocalizedDescription=A data connection is not currently allowed., NSErrorFailingURLStringKey=https://c.in.webengage.com/m2.jpg, NSErrorFailingURLKey=https://c.in.webengage.com/m2.jpg, _kCFStreamErrorDomainKey=1}
2022-07-03 17:57:53.421516+0600 my-project[46345:2521417] -[WEGBufferedBackingStore flush]_block_invoke_2 [Line 117] ERROR: Error while reporting event to network: Error Domain=NSURLErrorDomain Code=-1020 "A data connection is not currently allowed." UserInfo={_kCFStreamErrorCodeKey=50, NSUnderlyingError=0x2836d76c0 {Error Domain=kCFErrorDomainCFNetwork Code=-1020 "(null)" UserInfo={_NSURLErrorNWPathKey=unsatisfied (No network route), _kCFStreamErrorCodeKey=50, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalUploadTask <4235781A-D61E-47C5-9CAB-9870557332D6>.<4>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalUploadTask <4235781A-D61E-47C5-9CAB-9870557332D6>.<4>"
), NSLocalizedDescription=A data connection is not currently allowed., NSErrorFailingURLStringKey=https://c.in.webengage.com/m2.jpg, NSErrorFailingURLKey=https://c.in.webengage.com/m2.jpg, _kCFStreamErrorDomainKey=1}
2022-07-03 17:58:03.414784+0600 my-project[46345:2521522] Connection 28: received failure notification
2022-07-03 17:58:03.414931+0600 my-project[46345:2521522] Connection 28: failed to connect 1:50, reason -1
2022-07-03 17:58:03.415027+0600 my-project[46345:2521522] Connection 28: encountered error(1:50)
2022-07-03 17:58:03.418944+0600 my-project[46345:2521522] Task <8202EB81-D718-4AAF-88D5-D1186C0479D8>.<5> HTTP load failed, 0/0 bytes (error code: -1020 [1:50])
2022-07-03 17:58:03.420585+0600 my-project[46345:2521417] Task <8202EB81-D718-4AAF-88D5-D1186C0479D8>.<5> finished with error [-1020] Error Domain=NSURLErrorDomain Code=-1020 "A data connection is not currently allowed." UserInfo={_kCFStreamErrorCodeKey=50, NSUnderlyingError=0x28373a7f0 {Error Domain=kCFErrorDomainCFNetwork Code=-1020 "(null)" UserInfo={_NSURLErrorNWPathKey=unsatisfied (No network route), _kCFStreamErrorCodeKey=50, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalUploadTask <8202EB81-D718-4AAF-88D5-D1186C0479D8>.<5>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalUploadTask <8202EB81-D718-4AAF-88D5-D1186C0479D8>.<5>"
), NSLocalizedDescription=A data connection is not currently allowed., NSErrorFailingURLStringKey=https://c.in.webengage.com/m2.jpg, NSErrorFailingURLKey=https://c.in.webengage.com/m2.jpg, _kCFStreamErrorDomainKey=1}
2022-07-03 17:58:03.420959+0600 my-project[46345:2521417] -[WEGBufferedBackingStore flush]_block_invoke_2 [Line 117] ERROR: Error while reporting event to network: Error Domain=NSURLErrorDomain Code=-1020 "A data connection is not currently allowed." UserInfo={_kCFStreamErrorCodeKey=50, NSUnderlyingError=0x28373a7f0 {Error Domain=kCFErrorDomainCFNetwork Code=-1020 "(null)" UserInfo={_NSURLErrorNWPathKey=unsatisfied (No network route), _kCFStreamErrorCodeKey=50, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalUploadTask <8202EB81-D718-4AAF-88D5-D1186C0479D8>.<5>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalUploadTask <8202EB81-D718-4AAF-88D5-D1186C0479D8>.<5>"
), NSLocalizedDescription=A data connection is not currently allowed., NSErrorFailingURLStringKey=https://c.in.webengage.com/m2.jpg, NSErrorFailingURLKey=https://c.in.webengage.com/m2.jpg, _kCFStreamErrorDomainKey=1}
2022-07-03 17:58:13.421833+0600 my-project[46345:2521402] Connection 29: received failure notification
2022-07-03 17:58:13.421981+0600 my-project[46345:2521402] Connection 29: failed to connect 1:50, reason -1
2022-07-03 17:58:13.422079+0600 my-project[46345:2521402] Connection 29: encountered error(1:50)
2022-07-03 17:58:13.427489+0600 my-project[46345:2521402] Task <22990323-B533-443C-9CC4-4B18ACDC0144>.<6> HTTP load failed, 0/0 bytes (error code: -1020 [1:50])
2022-07-03 17:58:13.430630+0600 my-project[46345:2521638] Task <22990323-B533-443C-9CC4-4B18ACDC0144>.<6> finished with error [-1020] Error Domain=NSURLErrorDomain Code=-1020 "A data connection is not currently allowed." UserInfo={_kCFStreamErrorCodeKey=50, NSUnderlyingError=0x28373e640 {Error Domain=kCFErrorDomainCFNetwork Code=-1020 "(null)" UserInfo={_NSURLErrorNWPathKey=unsatisfied (No network route), _kCFStreamErrorCodeKey=50, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalUploadTask <22990323-B533-443C-9CC4-4B18ACDC0144>.<6>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalUploadTask <22990323-B533-443C-9CC4-4B18ACDC0144>.<6>"
), NSLocalizedDescription=A data connection is not currently allowed., NSErrorFailingURLStringKey=https://c.in.webengage.com/m2.jpg, NSErrorFailingURLKey=https://c.in.webengage.com/m2.jpg, _kCFStreamErrorDomainKey=1}
2022-07-03 17:58:13.430976+0600 my-project[46345:2521638] -[WEGBufferedBackingStore flush]_block_invoke_2 [Line 117] ERROR: Error while reporting event to network: Error Domain=NSURLErrorDomain Code=-1020 "A data connection is not currently allowed." UserInfo={_kCFStreamErrorCodeKey=50, NSUnderlyingError=0x28373e640 {Error Domain=kCFErrorDomainCFNetwork Code=-1020 "(null)" UserInfo={_NSURLErrorNWPathKey=unsatisfied (No network route), _kCFStreamErrorCodeKey=50, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalUploadTask <22990323-B533-443C-9CC4-4B18ACDC0144>.<6>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalUploadTask <22990323-B533-443C-9CC4-4B18ACDC0144>.<6>"
), NSLocalizedDescription=A data connection is not currently allowed., NSErrorFailingURLStringKey=https://c.in.webengage.com/m2.jpg, NSErrorFailingURLKey=https://c.in.webengage.com/m2.jpg, _kCFStreamErrorDomainKey=1}

UIStackView gesture touch problem when we use the JWPlayerKit

  • Version: JWPlayerKit (4.17.1)

If we don't use and don't import the JWPlayerKit in our project, this kind of code it's working:
let tap = UITapGestureRecognizer(target: self, action: #selector(tapInView)) stackView.addGestureRecognizer(tap)

But when we initialize the new SDK, the UIStackviews of all the project doesn't receive the gesture touch events. This problem don't exists in the old JWPlayer SDK

How to disable Picture in Picture?

I am using JWPlayerView but not JWPlayerViewController. How can I stop the video from moving to PIP mode when the app goes to the background.

From v4.18.0 video is not playing properly

Hi,

Im using JWPlayerViewController: class VideoViewController: JWPlayerViewController { ... }

Since v18.0 (privacy manifest version) video is not playing properly

Any breaking change from v4.17 to v4.18?

v4.17.1 => Working
v18.0, v19.0 and v19.1 => Not working properly => screen is black, i cant touch X close button

BR

invalid binary: enable bitcode for sdk v4.3.1

I've recently migrated from v3 to v4. while submitting the app to app store connect, it fails to build processing on the app store connect and gives invalid binary status. Then I've got a message from apple with these issues:

ITMS-90562: Invalid Bundle - One or more dynamic libraries that are referenced by your app are not present in the dylib search path.

ITMS-90562: Invalid Bundle - The app submission can not be successfully recompiled from bitcode due to missing symbols during linking. You can try to reproduce and diagnose such issues locally by following the instructions from: https://developer.apple.com/library/archive/technotes/tn2432/_index.html

Then I tried to export the .ipa file with bitcode enabled and got this error:

while uploading / exporting without bitcode, it's fine. but for permanent solution, the SDK needs to bitcode enabled.

Premium License: black screen with audio for videos has extension .m3u8

Hi JWPlayer Team

i try to play .m3u8 video , and gives me black screen and premium license using latest vision
pod 'JWPlayerKit', '>= 4.13.0'

`## Code:


class ViewController: JWPlayerViewController {

    private let videoUrlString = "https://v.w-x.co/digital_video/The_Weather_Channel_-_Reach_Engine/9e04336c-b152-4f8b-a543-acf1f0ae1f51/061623_FLASH_FLOODING_IMPACTSmezz_Playlist.m3u8"
    private let posterUrlString = "https://d3el35u4qe4frz.cloudfront.net/bkaovAYt-480.jpg"

    override func viewDidLoad() {
        super.viewDidLoad()

        // Set the view's background color to black for better contrast.
        view.backgroundColor = .black

        // Set up the player.
        setUpPlayer()
    }

    /**
     Sets up the player with a simple configuration.
     */
    private func setUpPlayer() {
        let videoUrl = URL(string:videoUrlString)!
        let posterUrl = URL(string:posterUrlString)!

        // First, use the JWPlayerItemBuilder to create a JWPlayerItem that will be used by the player configuration.
        let playerItembuilder = JWPlayerItemBuilder()
            .file(videoUrl)
            .posterImage(posterUrl)
        var playerItem: JWPlayerItem!
        do {
            playerItem = try playerItembuilder.build()
        } catch {
            // Handle player item build failure
            print(error.localizedDescription)
            return
        }

        // Second, create a player config with the created JWPlayerItem.
        let configBuilder = JWPlayerConfigurationBuilder()
            .playlist(items: [playerItem])
            .autostart(true)
        var config: JWPlayerConfiguration!
        do {
            config = try configBuilder.build()
        } catch {
            // Handle player item build failure
            print(error.localizedDescription)
            return
        }

        // Lastly, use the created JWPlayerConfiguration to set up the player.
        player.configurePlayer(with: config)
    }
}

Result:

video with audio

Simulator Screenshot - iPhone 14 Pro - 2023-06-22 at 19 15 47

Don't exclude arm64 architecture in the SDK

We need a version of the SDK supporting this for several reasons:

  • Apple is marking this like an important point from a long time ago
    https://developer.apple.com/documentation/technotes/tn3117-resolving-build-errors-for-apple-silicon/
    "Important Always contact the library vendor to request an updated library supporting the simulator on Apple silicon. Modifications to the EXCLUDED_ARCHS build setting for a simulator SDK are not a replacement for getting an updated library, and should only be used while waiting for the vendor to make an updated library available"

  • With Xcode 15 the previews are not working if we have the JWPlayerKit SDK in our project. The root cause of problem is this config:
    s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
    s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }

Feedback_apple_excluded_archs
Feedback_apple1_xcode15

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.