Forums

OverviewV-Play Plugins Support › Chartboost: not working cache plus how to detect video

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #14239

    Marcin

    Hello,
    I have some problems with Chartboost plugin.
    1. I am not able to force (pre)caching.
    I am testing now game over location, but also for default location can’t force caching.
    Some snippet from my code:

      id: chartboost
    
            appId:  Qt.platform.os === "ios" ? Configuration.chartboostAppleAppId : Configuration.chartboostGoogleAppId
            appSignature: Qt.platform.os === "ios" ? Configuration.chartboostAppleAppSignature :  Configuration.chartboostGoogleAppSignature
    
            // Do not use reward videos in this example
            shouldDisplayRewardedVideo: false
    
            shouldRequestInterstitialsInFirstSession: true
    
            onInterstitialCached: {
                logger.logDebug("Interstitial cached at location:%1".arg(location))
            }
    
            onInterstitialDisplayed: {
                logger.logDebug("Interstitial displayed location:%1".arg(location))
            }
    
            onInterstitialDismissed: {
                logger.logDebug("Interstitial dismissed location:%1".arg(location))
            }
    
            onInterstitialFailedToLoad: {
                logger.logDebug("InterstitialFailedToLoad at location:%1, error: %2".arg(location).arg(error))
            }
    
            onRewardedVideoCached: {
                logger.logDebug("RewaredVideoCached at location:%1".arg(location))
            }
            Component.onCompleted: {
                logger.logDebug('%1 is cached(has) %2'.arg(Chartboost.GameOverLocation).arg(hasInterstitial(Chartboost.GameOverLocation)))
                if (!hasInterstitial(Chartboost.GameOverLocation)) {
                    cacheInterstitial(Chartboost.GameOverLocation)
                }
                // foce the cache, still does not work
                cacheInterstitial(Chartboost.GameOverLocation)
                cacheInterstitial()
            }

    I am still not able to cache it.
    Only after I display video/image form Chartboost I get:

    
    V CBRequestManager: "ad-portrait": {
    
    V CBRequestManager: "url": "https:\/\/a.chartboost.com\/creatives\/5715cc9cf6cd4541a67ed60d\/068690068fe2657a
    
    D CBWebImageCache: downloading image to cache... https://a.chartboost.com/creatives/.../...jpeg
    
    I System.out: (HTTPLog)-Static: isSBSettingEnabled false
    
    I System.out: (HTTPLog)-Static: isSBSettingEnabled false
    
    I qtaguid : Tagging socket 51 with tag 4c7f4fc500000000{1283411909,0} uid -1, pid: 8572, getuid(): 10278
    
    I qtaguid : Untagging socket 51
    
    D ad : ##### Adding aimpression-> interstitial-native at locationGame Over
    
    D ad : ##### Impression should cache:true
    
    D assets:/qml/common/Logger.qml:48 (logDebug): qml: ==========[Debug]Interstitial cached at location:
    

    Do I miss anything?

    2. Interstitial video
    There are ways to detect display/dismiss/closing ad, mostly for image ads.
    Is there a way to detect when video stops playing?
    I see in logs entries form media player, but nothing extra from Chartboost plugin.
    Currently, using the plugin, I am not able to detect when video finishes.
    Maybe I miss something?

     

    3. Is the example app at github, still supported an should work?
    https://github.com/vplayplugins/ChartboostSample

    #14407

    Günther
    V-Play Team

    Hi Marcin,

    Thanks for reaching out! We will take a closer look at the caching of the plugin. Also, we are working on switching to latest Chartboost Framework version, which might also help with such caching issues.

    Checking if the user has fully watched a video is only possible for Rewarded Videos. The plugin provides the signal Chartboost::rewardedVideoCompleted for that.

    The ChartboostSample is no longer supported since we integrated all plugins in the engine and not as additional modules now. The reference for all our plugins is now the PluginDemo.

    Best,
    Günther

    #14435

    Marcin

    Hi Günther,
    Thank you for answers.
    Hopefully you will be able to find any issues with caching, if there are any, I would really like to use cache in my game.

    Do you know, more or less, when the next v-play version will be released?
    I am really interested in updating to newer Chartboost SDK.

    Marcin

    #14448

    Günther
    V-Play Team

    Hi Marcin,

    I have good news! We already had time to work on updating the Chartboost Plugin and fix some caching issues.
    The new version will most probably be part of the the update coming this week.

    Best,
    Günther

    #14456

    Marcin

    Hi Günther,
    That’s very good.

    Definitely will test once it’s ready.

    #14487

    Marcin

    Hi Günther,
    I did some testing mostly for rewarded videos because that is what I am working on now.

    Good:
    1

    locationType and updated docs

    Didn’t test all methods for this extra parameter, but the methods I tested work great: Thanks.

    Btw. did you put the info that this was added?
    I have a feeling that I only looked there(docs) and found the new parameter because I was explicitly looking  for this.
    If you didn’t communicate this change, I suggest try put this info somewhere, maybe not in the main but in the devs changelog.

     

    2

    Adverts appear much more often, looks  really well.
    Definitely big improvement, can really test the workflow.

     

    3

    Can cache rewarded video! But not in every cases, more below.

     

    Potential issues/questions:

    1

    cacheRewardedVideo called in Component.onCompleted
    When I try to cache rewarded video right after Chartboost component is loaded, I see in logs it start caching it but never finishes
    I see something like this:

    D/dalvikvm( 9881): GC_CONCURRENT freed 333K, 8% free 12554K/13575K, paused 13ms+2ms, total 41ms
    D/dalvikvm( 9881): GC_CONCURRENT freed 421K, 8% free 12577K/13575K, paused 18ms+2ms, total 68ms

    But in this case, after it stops echoing these, nothing happens.
    But when I try to cache in some scenes etc. it caches it fine, at the end I get signal `onRewardedVideoCached

     

    2

    Some issues/new error messages I haven’t seen before.
    Can be just too verbose output but maybe not:

    1.
    I/dalvikvm(23035): Could not find method android.app.Activity.checkSelfPermission, referenced from method com.chartboost.sdk.c.b
    W/dalvikvm(23035): VFY: unable to resolve virtual method 32: Landroid/app/Activity;.checkSelfPermission (Ljava/lang/String;)I
    
    
    2.
    I/dalvikvm(23035): Could not find method org.json.JSONArray.<init>, referenced from method com.chartboost.sdk.Libraries.e$a.b
    W/dalvikvm(23035): VFY: unable to resolve direct method 31219: Lorg/json/JSONArray;.<init> (Ljava/lang/Object;)V
    
    3.
    E/dalvikvm(23035): Could not find class 'com.flurry.sdk.i', referenced from method com.flurry.sdk.md.a
    W/dalvikvm(23035): VFY: unable to resolve const-class 2043 (Lcom/flurry/sdk/i;) in Lcom/flurry/sdk/md;
    
    
    3
    I/dalvikvm(23035): Could not find method android.os.StatFs.getAvailableBlocksLong, referenced from method com.flurry.sdk.jb.a
    W/dalvikvm(23035): VFY: unable to resolve virtual method 1557: Landroid/os/StatFs;.getAvailableBlocksLong ()J
    
    
    5
    W/System.err(23035): java.lang.SecurityException: Neither user 10146 nor current process has android.permission.READ_PHONE_STATE.

     

    #14514

    Günther
    V-Play Team

    Hi Marcin,

    Thanks for your additional testing, we will have a look at the things you pointed out.

    Best,
    Günther

Viewing 7 posts - 1 through 7 (of 7 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support