ANDROID SDK implementation with VLC

223 views
Skip to first unread message

nikita...@vuliv.com

unread,
Nov 23, 2015, 7:59:08 AM11/23/15
to Interactive Media Ads SDK
Hi,

We are using VLC media player and wants to integrate IMA SDK. Can you please guide how to modify existing player files to play both video and ad contents.

Gone through the sample app, its running using mediaplayer class  of android SDK. We are not able to run it using VLC. Kindly provide help.

Regards,
Nikita

Tyler Sidell (IMA SDK Team)

unread,
Nov 23, 2015, 4:53:49 PM11/23/15
to Interactive Media Ads SDK
Hi Nikita,

We don't have documentation specific to implementing VLC media player with our IMA SDK but perhaps I can provide some tips to help you with the setup.
  • Android uses the same video player for ads and content playback so make sure to save the playhead position of your content when the ad starts, then when the ad finishes you can seek to that position.
  • Implement the VideoAdPlayer interface in your video player.
  • Video players must fire the callbacks for the following events: complete, creativeView, firstQuartile, impression, midpoint, pause, resume, rewind, start, thirdQuartile
  • Disable seeking in your video player while ads are being played
  • These are the methods that must be implemented by the video player in order to use our SDK.
We provide some code snippets for some of the steps above in the ad rules section.  If you haven't gone through the guide, but please use it as a reference to get started.

Thanks,
Tyler Sidell
IMA SDK Team

nikita...@vuliv.com

unread,
Nov 24, 2015, 12:53:53 AM11/24/15
to Interactive Media Ads SDK
Hi Tyler,

Thanks for your response. Can you please provide code snippets for the below steps -
  • Video players must fire the callbacks for the following events: complete, creativeView, firstQuartile, impression, midpoint, pause, resume, rewind, start, thirdQuartile
  • Disable seeking in your video player while ads are being played
Regards,
Nikita

Tyler Sidell (IMA SDK Team)

unread,
Nov 24, 2015, 4:54:06 PM11/24/15
to Interactive Media Ads SDK
Hi Nikita,

For the video player to fire the callbacks, we provide code snippets under "Your first ads request" (part c).  You can configure AdEventListeners to listen for the following supported events.

We do not have custom code for disabling seeking.  You would have to write a function that is specific to your own video player.

Thanks,
Tyler Sidell
IMA SDK Team

Reply all
Reply to author
Forward
0 new messages