Codota Logo
Catalog.<init>
Code IndexAdd Codota to your IDE (free)

How to use
com.brightcove.player.edge.Catalog
constructor

Best Java code snippets using com.brightcove.player.edge.Catalog.<init> (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: BrightcoveOS/android-player-samples

@Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main);
  final RecyclerView videoListView = findViewById(R.id.video_list_view);
  final VideoListAdapter videoListAdapter = new VideoListAdapter(this);
  videoListView.setAdapter(videoListAdapter);
  EventEmitter eventEmitter = new EventEmitterImpl();
  Catalog catalog = new Catalog(eventEmitter, getString(R.string.account), getString(R.string.policy));
  catalog.findPlaylistByReferenceID(getString(R.string.playlistRefId), new PlaylistListener() {
    @Override
    public void onPlaylist(Playlist playlist) {
      videoListAdapter.setVideoList(playlist.getVideos());
    }
  });
}
origin: BrightcoveOS/android-player-samples

@Override
protected void onCreate(Bundle savedInstanceState) {
  setContentView(R.layout.activity_main);
  brightcoveVideoView = (BrightcoveExoPlayerVideoView) findViewById(R.id.brightcove_video_view);
  super.onCreate(savedInstanceState);
  // Get the event emitter from the SDK and create a catalog request to fetch a video from the
  // Brightcove Edge service, given a video id, an account id and a policy key.
  EventEmitter eventEmitter = brightcoveVideoView.getEventEmitter();
  Catalog catalog = new Catalog(eventEmitter, getString(R.string.account), getString(R.string.policy));
  catalog.findVideoByID(getString(R.string.videoId), new VideoListener() {
    // Add the video found to the queue with add().
    // Start playback of the video with start().
    @Override
    public void onVideo(Video video) {
      Log.v(TAG, "onVideo: video = " + video);
      brightcoveVideoView.add(video);
      brightcoveVideoView.start();
    }
  });
}
origin: BrightcoveOS/android-player-samples

@Override
protected void onCreate(Bundle savedInstanceState) {
  // When extending the BrightcovePlayer, we must assign the BrightcoveExoPlayerVideoView before
  // entering the superclass. This allows for some stock video player lifecycle
  // management.
  setContentView(R.layout.activity_main);
  brightcoveVideoView = (BrightcoveExoPlayerVideoView) findViewById(R.id.brightcove_video_view);
  super.onCreate(savedInstanceState);
  eventEmitter = brightcoveVideoView.getEventEmitter();
  // Use a procedural abstraction to setup the Google IMA SDK via the plugin.
  setupGoogleIMA();
  // Create the catalog object which will start and play the video.
  Catalog catalog = new Catalog(brightcoveVideoView.getEventEmitter(), "3303963094001",
                 "BCpkADawqM3zXLtsEM0nAyA_3o3TmZnG6bZTXFmjZ8X_rmFMqlpB78l0aiRELs7MWACf4mYN92qMOLMxfZN6Xr3cQ_0R3G2qBiho3X3Nc2yTv7DH4APQ-EimMJQ3crX0zc0mJMy9CtSqkmli");
  catalog.findVideoByID("4283173439001", new VideoListener() {
    @Override
    public void onVideo(Video video) {
      brightcoveVideoView.add(video);
      // Auto play: the GoogleIMAComponent will postpone
      // playback until the Ad Rules are loaded.
      brightcoveVideoView.start();
    }
    @Override
    public void onError(String s) {
      Log.e(TAG, "Could not load video: " + s);
    }
  });
}
origin: BrightcoveOS/android-player-samples

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    // When extending the BrightcovePlayer, we must assign the brightcoveVideoView before
    // entering the superclass. This allows for some stock video player lifecycle
    // management.  Establish the video object and use it's event emitter to get important
    // notifications and to control logging.
    setContentView(R.layout.activity_main);
    brightcoveVideoView = (BrightcoveExoPlayerVideoView) findViewById(R.id.brightcove_video_view);
    super.onCreate(savedInstanceState);

    // Get the event emitter from the SDK and create a catalog request to fetch a video from the
    // Brightcove Edge service, given a video id, an account id and a policy key.
    EventEmitter eventEmitter = brightcoveVideoView.getEventEmitter();
    Catalog catalog = new Catalog(eventEmitter, getString(R.string.account), getString(R.string.policy));

    catalog.findVideoByID(getString(R.string.videoId), new VideoListener() {

      // Add the video found to the queue with add().
      // Start playback of the video with start().
      @Override
      public void onVideo(Video video) {
        Log.v(TAG, "onVideo: video = " + video);
        brightcoveVideoView.add(video);
        brightcoveVideoView.start();
      }
    });
  }
}
origin: BrightcoveOS/android-player-samples

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    // When extending the BrightcovePlayer, we must assign the brightcoveVideoView before
    // entering the superclass. This allows for some stock video player lifecycle
    // management.  Establish the video object and use it's event emitter to get important
    // notifications and to control logging.
    setContentView(R.layout.activity_main);
    brightcoveVideoView = (BrightcoveExoPlayerTextureVideoView) findViewById(R.id.brightcove_video_view);
    super.onCreate(savedInstanceState);

    // Get the event emitter from the SDK and create a catalog request to fetch a video from the
    // Brightcove Edge service, given a video id, an account id and a policy key.
    EventEmitter eventEmitter = brightcoveVideoView.getEventEmitter();
    Catalog catalog = new Catalog(eventEmitter, getString(R.string.account), getString(R.string.policy));

    catalog.findVideoByID(getString(R.string.videoId), new VideoListener() {

      // Add the video found to the queue with add().
      // Start playback of the video with start().
      @Override
      public void onVideo(Video video) {
        Log.v(TAG, "onVideo: video = " + video);
        brightcoveVideoView.add(video);
        brightcoveVideoView.start();
      }
    });
  }
}
origin: BrightcoveOS/android-player-samples

@Override
@SuppressWarnings("ResourceType")
protected void onCreate(Bundle savedInstanceState) {
  // When extending the BrightcovePlayer, we must assign the brightcoveVideoView before
  // entering the superclass. This allows for some stock video player lifecycle
  // management.  Establish the video object and use it's event emitter to get important
  // notifications and to control logging.
  setContentView(R.layout.activity_main);
  brightcoveVideoView = (BrightcoveExoPlayerVideoView) findViewById(R.id.brightcove_video_view);
  super.onCreate(savedInstanceState);
  EventEmitter eventEmitter = brightcoveVideoView.getEventEmitter();
  Catalog catalog = new Catalog(eventEmitter, getString(R.string.account), getString(R.string.policy));
  catalog.findVideoByID(getString(R.string.videoId), new VideoListener() {
    @Override
    public void onVideo(Video video) {
      Video.ProjectionFormat projectionFormat = video.getProjectionFormat();
      if (projectionFormat == Video.ProjectionFormat.EQUIRECTANGULAR) {
        Log.i(TAG, "This is a 360 video");
      }
      brightcoveVideoView.add(video);
      brightcoveVideoView.start();
    }
  });
  //You can also create a 360 video by setting the the projection field on creation as shown below:
  //Video video = Video.createVideo(VIDEO_URL, VIDEO_TYPE, PROJECTION_FORMAT);
}
origin: BrightcoveOS/android-player-samples

Catalog catalog = new Catalog(baseVideoView.getEventEmitter(), getString(R.string.account), getString(R.string.policy));
catalog.findVideoByID(videoId, new VideoListener() {
  @Override
origin: BrightcoveOS/android-player-samples

@Override
protected void onCreate(Bundle savedInstanceState) {
  // When extending the BrightcovePlayer, we must assign the BrightcoveExoPlayerVideoView before
  // entering the superclass. This allows for some stock video player lifecycle
  // management.
  setContentView(R.layout.ima_activity_main);
  brightcoveVideoView = (BrightcoveExoPlayerVideoView) findViewById(R.id.brightcove_video_view);
  // *** This method call is optional *** //
  setupAdMarkers(brightcoveVideoView);
  super.onCreate(savedInstanceState);
  eventEmitter = brightcoveVideoView.getEventEmitter();
  // Use a procedural abstraction to setup the Google IMA SDK via the plugin.
  setupGoogleIMA();
  Catalog catalog = new Catalog(eventEmitter, getString(R.string.account), getString(R.string.policy));
  catalog.findVideoByID(getString(R.string.videoId), new VideoListener() {
    public void onVideo(Video video) {
      brightcoveVideoView.add(video);
      // Auto play: the GoogleIMAComponent will postpone
      // playback until the Ad Rules are loaded.
      brightcoveVideoView.start();
    }
    public void onError(String error) {
      Log.e(TAG, error);
    }
  });
}
com.brightcove.player.edgeCatalog<init>

Popular methods of Catalog

  • findVideoByID
  • findPlaylistByReferenceID
  • findPlaylistByID

Popular in Java

  • Updating database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • setContentView (Activity)
  • getApplicationContext (Context)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • Collectors (java.util.stream)
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now