MediaPlayer - Banners

0:00 / 0:00

Getting Started with the Telerik Platform

Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB
This demo illustrates the ability of RadMediaPlayer to display banners over the video. The player can show multiple banners at different times (they cannot overlap). You can use the Banners collection of the MadiaPlayer to define banners with the folowing properties:
  • NavigateURL - URL that the users will be redirected to when they click on the banner.
  • ImageUrl - Url of the image shown as a banner.
  • StartTime - Time in seconds, when the banner will show.
  • EndTime - Time in seconds when the banner will automatically hide.
  • ShowCloseButton - Set to true if you want your users to see close button that hides the bannner.
  • ToolTip - Set title for the banner.
  • AlternateText - Alternate text for the image shown as a banner.
  • Target - For setting the Target html attribute for the a href of the banner.
  • DefaultCS.aspx
  • styles.css
<%@ Page Language="c#" AutoEventWireup="true"  %>

<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "">
<html xmlns=''>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <link href="styles.css" rel="stylesheet" type="text/css" />
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-container size-custom">
        <telerik:RadMediaPlayer RenderMode="Lightweight" ID="RadMediaPlayer1" runat="server" Height="360px" Width="640px"
            Title="Getting Started with the Telerik Platform"
                    StartTime="3" EndTime="33"
                    ToolTip="UI for ASP.NET AJAX" />

Support & Learning Resources

Find Assistance

Help Us Improve

Was this example helpful?