I'm using IronSource for mediating rewards video. The first time it works OK but there's no way of loading the reward video second time without killing the app.
I checked their SDK and there's no loadReward or requestReward in their API. The first video loads automatically when IronSource.init(context, mAppKey, IronSource.AD_UNIT.REWARDED_VIDEO) is called.
How can I load the second reward video?
Try checking the capping and pacing settings - that could be why you're having issues.
You can also use:
boolean available = IronSource.isRewardedVideoAvailable();
to check if you have availability for rewarded video.
Related
I want to integrate YouTube videos in my app along with the Ads which are shown while watching the videos on YouTube app.
So I would like to know whether using YouTubePlayerView will solve my problem or do I have to use YouTubeIntents to redirect user to YouTube app in order to preserve the Ads which YouTube adds to the videos
You may refer with this thread. It stated that YouTubePlayerView shows Ad word in the screen. Also, to enable ads, call the videoAdvertisingOptions.update method. In your request, set the videoId parameter to the broadcast id that you obtained. Use the videoAdvertisingOption resource's adFormats[] property to identify the ad formats (preroll, midroll, or postroll) that you want to enable.
Hi I am using Hey zap for show Rewarded Video Ads in android. I used this documentation . But I tried to show ads in application its show in the screen this Ad is not ready, as zone vzd448459637794d338c is V4VC enabled and must be played using an AdColonyV4VCAd object" After 5 minutes it show still this one .How can i solve it ?
I work on Heyzap's Android SDK.
The zone mentioned in that error message is set as the "Interstitial Zone ID" in our dashboard. If you don't intend to use interstitial ads, just remove that zone id entirely, and that may solve your problem.
It's also possible that AdColony isn't filling your rewarded video zone for some unrelated reason. Could you send us a copy of your APK? I could check it out and see if they fill for me, or if I see any other relevant error messages.
Thanks!
We've been using the Youtube API in our Android Application for about 3 months now, we removed alot of old video's the last couple of days and updated our MYSQL server where the video ID's are stored.
We made 60 video's add dynamically (using the MYSQL) in our main screen, and i've added about 6 video's 'hardcoded', so nothing should have gone wrong there.
Suddenly all the video's won't play inside the application and give the error "There was a problem while playing, touch to retry". I can keep tapping but nothing happens. I do see that it is loading the right video.
If I keep tapping the bottom right corner, where the link to the youtube web/app is, then it will load the video inside the normal youtube application. It is working fine inside the normal Youtube App.
What I tried so far:
Restarted my device
Uninstall my application and installing it again
Switch from WiFi to 3G
Tested a friends phone who also has the application
Generating a new Youtube_API_KEY and adding it to the application
Tried multiple Youtube accounts, even tested without being logged into Youtube
None of the above mentioned attempts worked.
Does anyone mayby has a clue where to look?
I had an issue earlier with the YouTube API, and the bug was introduced with a specific version of the YouTube app. That is, the presence of the bug in my application depended on the installed version of YouTube.
If you go to Settings > Apps > YouTube, tap Uninstall Updates, you can install another version of YouTube directly with an .apk file downloaded from here, for example.
Install an earlier version of YouTube for a temporary solution. You may want to raise an issue at the issue tracker for YouTube, and wait for the fix.
I encountered such a problem, some videos can be played only in the YouTube player. To circumvent this problem, we had to pump out all the videos from youtube and use the id of the video.
have you tried this code snippet
/**
* Method used to play video in a new activity
*
* #param context the activity context
* #param url the url of the youtube video to be played
*/
public static void playVideo(Context context, String url) {
String ytId = extractYTId(url);
if (ytId != null && ytId != "") {
Intent videoIntent = YouTubeStandalonePlayer.createVideoIntent((Activity) context, DEVELOPER_KEY, ytId, 0, false, false);
context.startActivity(videoIntent);
} else {
Toast.makeText(context, "this is not youtube url!", Toast.LENGTH_SHORT).show();
}
}
you just have to add youtube Api .jar and call this method then hope so your video will play..
enjoy your code time:)
If you go to Settings > Apps > YouTube, tap Uninstall Updates, you can install another version of YouTube directly with a .apk file downloaded from here for example.
I'm currently developing an android mobile app. I see that private Vimeo videos are not playing. Check the attached screen shot. Also note that the android app is still on development mode and not uploaded to Google. Please help me in this regard.
Regards,
Niladri!
private vimeo video not playing
That picture appears to be accessing vimeo.com directly to view videos. At vimeo.com, private videos can only be viewed if you are logged in (which is unrelated to the API).
If you want to play a private video in your application you will need to follow one of the following workflows:
Embedded in a webview
Mark your video as hidden from vimeo, yet embeddable, in your video's settings
Make an API request to /videos/{video_id} and extract the embed code from the response body (response.embed.html)
Put the embed code in your webview's html
Played in the Native Player (Vimeo PRO only)
Mark your video with any privacy setting
Make an API request to /videos/{video_id}
Find the collection of video files (response.files)
Loop through the video files to find the best height and width for your target player
Load the link into your native player
You can read more about the Vimeo API at https://developer.vimeo.com/api, and https://developer.vimeo.com/api/endpoints
If you want to play private Vimeo videos of your Vimeo account in an Android Application then follow the steps below:
Go to your video privacy settings and mark it as hidden from Vimeo and embed anywhere.
Make an API request to this endpoint: https://api.vimeo.com/users/{your_user_id}/videos
Get the embed.html string from the API response.
Load embed.html obtained in the previous step into your WebView.
For Vimeo Android SDK: https://github.com/vimeo/vimeo-networking-java
You can retrieve the Video endpoint by calling an auth-enabled REST API and then play it using a player(I used Exoplayer in android).
Follow below steps:
API Registration: You will need an application registered with the Vimeo API. If you do not already have an application registered, you can do so here.
You can generate an access token in the Authentication tab once you select your app from the list here.
With this access token you'll be able to make any requests that the access token's scope allows. You will NOT be able to switch accounts if you only supply the access token.
Call rest API with the access token in the header like below
Endpoint:
https://api.vimeo.com/videos/{VIDEO_ID}
Header:
Authorization:bearer ACCESS_TOKEN
VIDEO_ID is the id of video uploaded to Vimeo(Some number eg: 45334535)
ACCESS_TOKEN is the token you got after API Registration
This steps worked for me. I hope this will help someone.
We have a special google's SDK for YouTube for instance. On the other side AOS does not support Adobe Flash. Maybe its just has an unsupported by AOS video codec used by vimeo service? That could be the reason why you cant watch vimeo videos via WebView/browser.
Did you check for Vimeo official Android SDK if such thing does exist at least?
Also check this
And a little suggest: try to use SO search and google - it helps in most cases :)
I am fairly new to using Chartboost ads, and haven't managed to find much info regarding this.
I have written a game in which an interstitial ad and 'more apps page' ad is cached immediately when the game loads and is displayed when the user receives a game over message/clicks on show more apps button.
My question is do I have to call cacheInterstitial() and cacheMoreApps() again every time to cache a new ad whenever a previously cached add is displayed to the user, or is this handled automatically after the first time I call on the api to cache an add?
if you are not using Chartboost Autocache feature then YES you will have to call cacheInterstitial() and cacheMoreApps() again every time you display a previously cached Ad or chartboost will keep on showing same ad again and again.
To use Autocaching feature read the section 'Autocaching' in Chartboost docs.