DoubleClick Studio AS3 API Reference

class com.google.ads.studio.video.VideoEntry

A video entry to add to the video controller. The video entry is associated to a connection type.

Constructors

Expand
VideoEntry(high:String=null, mid:String=null, low:String=null, connectionType:Class=null)

Creates a video entry.

Instance Methods

Defined in com.google.ads.studio.video:VideoEntry

getConnectionType() : Class

Gets the connection type.

     import com.google.ads.studio.video.EnhancedVideoController;
     import com.google.ads.studio.video.VideoEntry;
     import com.google.ads.studio.events.StudioVideoEvent;
      
     var videoController:EnhancedVideoController =
         videoComponentInstance.getCurrentVideoController();
      
     var videoBufferedHandler:Function = function(
         event:StudioVideoEvent):void {
       var videoEntry:VideoEntry = videoController.getVideoEntries()[0];
       trace("Video Entry Connection Type is " +
           videoEntry.getConnectionType() + ".");
     };
     videoComponentInstance.addEventListener(
         StudioVideoEvent.BUFFERED,
         videoBufferedHandler);
     

getHigh() : String

Gets the high bandwidth URI or filename.

     import com.google.ads.studio.video.EnhancedVideoController;
     import com.google.ads.studio.video.VideoEntry;
     import com.google.ads.studio.events.StudioVideoEvent;
      
     var videoController:EnhancedVideoController =
         videoComponentInstance.getCurrentVideoController();
      
     var videoBufferedHandler:Function = function(
         event:StudioVideoEvent):void {
       var videoEntry:VideoEntry = videoController.getVideoEntries()[0];
       trace("Video Entry filename for high bandwidth is " +
           videoEntry.getHigh() + ".");
     };
     videoComponentInstance.addEventListener(
         StudioVideoEvent.BUFFERED,
         videoBufferedHandler);
     

getLow() : String

Gets the low bandwidth URI or filename.

     import com.google.ads.studio.video.EnhancedVideoController;
     import com.google.ads.studio.video.VideoEntry;
     import com.google.ads.studio.events.StudioVideoEvent;
      
     var videoController:EnhancedVideoController =
         videoComponentInstance.getCurrentVideoController();
      
     var videoBufferedHandler:Function = function(
         event:StudioVideoEvent):void {
       var videoEntry:VideoEntry = videoController.getVideoEntries()[0];
       trace("Video Entry filename for low bandwidth is " +
           videoEntry.getLow() + ".");
     };
     videoComponentInstance.addEventListener(
         StudioVideoEvent.BUFFERED,
         videoBufferedHandler);
     

getMid() : String

Gets the mid bandwidth URI or filename.

     import com.google.ads.studio.video.EnhancedVideoController;
     import com.google.ads.studio.video.VideoEntry;
     import com.google.ads.studio.events.StudioVideoEvent;
      
     var videoController:EnhancedVideoController =
         videoComponentInstance.getCurrentVideoController();
      
     var videoBufferedHandler:Function = function(
         event:StudioVideoEvent):void {
       var videoEntry:VideoEntry = videoController.getVideoEntries()[0];
       trace("Video Entry filename for mid bandwidth is " +
           videoEntry.getMid() + ".");
     };
     videoComponentInstance.addEventListener(
         StudioVideoEvent.BUFFERED,
         videoBufferedHandler);
     

Expand
getVideoForUsersDartBandwidth(dartBandwidth:Number=0) : String

Gets the appropriate video URI or filename for the current users bandwidth provided by DART. If there are bandwidth entries missing, it tries to get the first non-empty url appropriate for that bandwidth.

     import com.google.ads.studio.video.EnhancedVideoController;
     import com.google.ads.studio.video.VideoEntry;
     import com.google.ads.studio.events.StudioVideoEvent;
      
     var videoController:EnhancedVideoController =
         videoComponentInstance.getCurrentVideoController();
      
     var videoBufferedHandler:Function = function(
         event:StudioVideoEvent):void {
       var videoEntry:VideoEntry = videoController.getVideoEntries()[0];
       trace("Video Entry filename is " +
           videoEntry.getVideoForUsersDartBandwidth(0) + ".");
     };
     videoComponentInstance.addEventListener(
         StudioVideoEvent.BUFFERED,
         videoBufferedHandler);
     

isHttp() : Boolean

Indicates whether this video entries connection type is an HttpConnection.

     import com.google.ads.studio.video.EnhancedVideoController;
     import com.google.ads.studio.video.VideoEntry;
     import com.google.ads.studio.events.StudioVideoEvent;
      
     var videoController:EnhancedVideoController =
         videoComponentInstance.getCurrentVideoController();
      
     var videoBufferedHandler:Function = function(
         event:StudioVideoEvent):void {
       var videoEntry:VideoEntry = videoController.getVideoEntries()[0];
       if (videoEntry.isHttp()) {
         trace("Connection type is HttpConnection.");
       }
     };
     videoComponentInstance.addEventListener(
         StudioVideoEvent.BUFFERED,
         videoBufferedHandler);
     

Expand
setConnectionType(connectionType:Class) : void

Sets the connection type. The default is HttpConnection.

Expand
setHigh(url:String) : void

Sets the high bandwidth URI or filename.

     import com.google.ads.studio.video.EnhancedVideoController;
     import com.google.ads.studio.video.VideoEntry;
     import com.google.ads.studio.events.StudioVideoEvent;
      
     var videoController:EnhancedVideoController =
         videoComponentInstance.getCurrentVideoController();
      
     var videoBufferedHandler:Function = function(
         event:StudioVideoEvent):void {
       var videoEntry:VideoEntry = videoController.getVideoEntries()[0];
       videoEntry.setHigh("video_high.flv");
     };
     videoComponentInstance.addEventListener(
         StudioVideoEvent.BUFFERED,
         videoBufferedHandler);
     

Expand
setLow(url:String) : void

Sets the low bandwidth URI or filename.

     import com.google.ads.studio.video.EnhancedVideoController;
     import com.google.ads.studio.video.VideoEntry;
     import com.google.ads.studio.events.StudioVideoEvent;
      
     var videoController:EnhancedVideoController =
         videoComponentInstance.getCurrentVideoController();
      
     var videoBufferedHandler:Function = function(
         event:StudioVideoEvent):void {
       var videoEntry:VideoEntry = videoController.getVideoEntries()[0];
       videoEntry.setLow("video_low.flv");
     };
     videoComponentInstance.addEventListener(
         StudioVideoEvent.BUFFERED,
         videoBufferedHandler);
     

Expand
setMid(url:String) : void

Sets the mid bandwidth URI or filename.

     import com.google.ads.studio.video.EnhancedVideoController;
     import com.google.ads.studio.video.VideoEntry;
     import com.google.ads.studio.events.StudioVideoEvent;
      
     var videoController:EnhancedVideoController =
         videoComponentInstance.getCurrentVideoController();
      
     var videoBufferedHandler:Function = function(
         event:StudioVideoEvent):void {
       var videoEntry:VideoEntry = videoController.getVideoEntries()[0];
       videoEntry.setMid("video_mid.flv");
     };
     videoComponentInstance.addEventListener(
         StudioVideoEvent.BUFFERED,
         videoBufferedHandler);
     

Back to top

  1. com.google.ads.studio
    1. AssetLoader
    2. ContextualDiscovery
    3. F2fEnabler
    4. FullScreenButton
    5. HtmlEnabler
    6. ProxyEnabler
    7. VpaidEnabler
  1. com.google.ads.studio.configurable
    1. Configurable
  1. com.google.ads.studio.display
    1. StudioLoader
  1. com.google.ads.studio.events
    1. StudioEvent
    2. StudioVideoEvent
  1. com.google.ads.studio.expanding
    1. Expanding
  1. com.google.ads.studio.localconnect
    1. LocalConnectWrapper
  1. com.google.ads.studio.video
    1. ConfigurableVideoPlayer
    2. EnhancedVideoController
    3. PlayPauseButton
    4. Playlist
    5. Scrubber
    6. SoundToggleButton
    7. VideoController
    8. VideoEntry
    9. VideoPlayer
    10. VideoPlayerAdvanced
  1. com.google.ads.studio.vpaid
    1. VpaidTimer