I am trying to load VAST URL in ExoPlayer.
I get success while trying this url pubads
But I am trying with my own VAST URL , It is not working
url
Error Showing: howing No 'Access-Control-Allow-Origin' header is present on the requested resource."
Is it posible to use external ads in ExoPlayer with IMA SDK .
After a lot of research and reading, I just found the solution to this issue
First of all, this is a whole new topic for me and I don't even know what is a VAST ad tag URL
So I will answer this question as a beginner only for beginners
First of all we need to understand what is VAST ad tag URL
VAST
VAST stands for Video Ad Serving Template. Simply put, it’s an XML script developed by the IAB. The most popular ad standard, VAST creates a communication link between the ad server and the video player
So we need a VAST server to host the URL
This is what I missed understanding.
The exoplayer support VAST URL from a VAST server, The documentation explained everything briefly.
So simply you can load any custom VAST URL in any VAST supported Video player
Related
I have tried searching for an answer to this question, all that I could find is answers that are years old. most answers led me to knowing that vimeo does not allow video streaming on android native unless you are a pro user. My question is, is there a change to this policy?
No: https://help.vimeo.com/hc/en-us/articles/224823567-Third-party-player-links
Vimeo Premium, Business, and PRO members have access to the direct links to their converted video files, which can be used to download or play videos hosted on Vimeo through a third-party player or web page.
I'm trying to figure out how to use the Google IMA to show ads in videos on Android. The SDK is available from https://english-arabic-researchblog.blogspot.com/
While the example app does work the example ad tag URL that is provided with it does not work. Without a tag URL ads cannot be shown and it is very difficult to build and experiment with the API without one. I've been trying to search for an example ad tag URL that works but I've not been successful.
The add tag URL provided with the Android example (as well as with the HTML5 example) is:
For those who have adblock enabled: ad[dot]doubleclick[dot]net/pfadx/AngelaSite;kw=html5linearnonlinear;sz=300x300;ord=5036130;dcmt=text/xml
That leads into server side error:
The IMA SDK team hosts a collection of sample ad tags at https://developers.google.com/interactive-media-ads/docs/sdks/html5/tags.
The sample apps for Android are hosted at https://github.com/googleads/googleads-ima-android.
The steps on setting up the SDK is at https://developers.google.com/interactive-media-ads/docs/sdks/android/.
I am making an iPhone and Android app that plays YouTube videos, and I am using some third-parties libraries (LBYouTubeView, OpenYoutubeActivity,...) that extracts the YouTube MP4 link, so the video playing will be more easier for me and not using web-views.
My question is if I used these libraries does the views count increase for videos or not? Like is just as playing the video from YouTube page?
I guess it will not increase the view counter.
It's javascript on the youtube.com/watch page counting the views.
Also the view counting algorithm youtube provides is more complicated. They are kind of verifying every view.
Note that the YouTube Terms of Service explicitly state you cannot access the stream directly, or use any player except the approved players:
https://developers.google.com/youtube/terms
II.10:
"Your API Client will not, and You will not encourage or create functionality for Your users or other third parties to ... access any portion of any YouTube audiovisual content by any means other than use of a YouTube player or other video player expressly authorized by YouTube"
The libraries you mention are not expressly authorised, and may be considered a breach of the YouTube Terms of Service.
YouTube is very ambiguous about how views are counted. From the docs:
Video views are algorithmically validated to maintain fair and positive experiences for content creators, advertisers and users.
Video views are only counted from the official player (embed plays) and plays on YouTube's site. If your script to scrape the URL from the manifest doesn't load the player, then you can pretty much guarantee that extracting the video file from a YouTube URL will not count as a play.
I am currently building an app that will allow users to upload videos and view other users videos in a stream. Sort of like Vine. I have been using rails for over a year now but I am not sure how to go about implementing the backend for the android application.
My understanding of the situation is that I must use a json call to my rails api that will upload the video file to Amazon s3 or CloudFront. I then need to make the Amazon video file or url be stored or linked to a URL that the Rails app creates for the user.
After that, I would need to play the video (and other people's videos) back to the android application.
It looks like there are a lot of pitfalls to this. If anyone knows the correct way to go about doing this, I would be really grateful. Thank you.
Probably want to use a REST API.
Should host your videos on a CDN.
Can use VideoView to stream some types of videos on Android.
I would like to display video Ads in my app based on VAST. Can anybody please guide me on how to do that ?
You can use any VAST ad supporting advertising SDK for showing VAST video ads.
OR
You can parse the VAST response in you application then you can play the video link in Android native video player.
In this case you also have to fire all VAST ad tracking events.
I know it's an old question, but for anyone looking at it lately - THIS is a nice VAST container by Nexage. Integration is super easy and it works pretty good, the only drawback is that it's adding a huge library to your project (unnecessary huge), which might be a problem for big projects hitting the DEXOPT limit problem.
Daily Motion Client https://github.com/dailymotion/vast-client-js
IMHO, it's easiest way to parse VAST response. Add the parser to html and implement simple video player with data that provides parser. Show result html page in WebView, also you can use javascript interface to pass parameters from Java to javascript in html.
Google Interactive Media Ad https://developers.google.com/interactive-media-ads/docs/sdks/android/?hl=ru it's difficult to integrate the sdk to show only vast ad without content.
Nexage VAST SDK https://github.com/nexage/sourcekit-vast-android
(has huge library for validation, but source is opened and it's easy to change this to the javax.xml.validation.Validator)
They can request ad by network tag, shows loaded ad and track users actions.
It is called c2s integration (client to server).