About
The Veeplay Media Player allows you to:
- Create playlists of synchronized videos and overlays
- Configure a playlist from an external JSON file, an equivalent Dictionary structure or directly via code attributes
- Create custom, native overlays
- Automatically configure ad linear inserts (pre, mid and post rolls) as well as nonlinear inserts (banner overlays), VAST 1.0, 2.0, 3.0 and VMAP 1.0 compliant
- Create custom player skins, brand player with logo, insert overlay bugs, customize player controls
- Track video and overlay lifecycle events in real-time, as rendered
Visual Studio Integration
Step 1: Add the Veeplay library to your project
a. Via Nuget Package Manager:
- In Solution Explorer, right-click on References
- Select Manage Nuget References...
- Search for Veeplay-SDK
- Install Veeplay for every project necesary
b. Via Package Manager Console:
- Open Package Manager Console from Tools -> Nuget Package Manager -> Package Manager Console
- In Package Manager Console window execute command PM> Install-Package VeePlay-SDK
Step 2: Add extensions to Package.appxmanifest
a. In Visual Studio:
- Right click the Package.appxmanifest located in your Windows / Windows Phone project in Solution explorer and choose Open With ...
- Select XML Text Editor
- Add the folowing XML element in the Package tag (between Aplications and Capabilites for example):
VeeplayRenderer.dll
You're Package.appxmanifest should look like this:
VeeplayDemoApp.WindowsPhone
Sergiu
Assets\StoreLogo.png
6.3.1
6.3.1
VeeplayRenderer.dll
Simple Usage Example
Use the MediaPlayer and MediaBuilder namespace:
using Veeplay.media;
In the page Loaded handler:
Create a new MediaBuilder instance and configure it from remote JSON:
MediaBuilder builder = new MediaBuilder();
builder.configureFromURL("http://domain.tld/player.json");
Optionally, set the debugMode flag to true and set the debugLevel to enable debug console logging:
MediaPlayer.debugMode = true;
MediaPlayer.debugLevel = 3;
Create a new MediaPlayer instance:
MediaPlayer.getInstance().init(this, false);
Add the media player the current Page:
grid.Children.Add(MediaPlayer.getInstance().viewController());
Play content as configured:
MediaPlayer.getInstance().playMediaUnits(builder.mediaUnits());
Namespaces