google / ExoPlayer

This project is deprecated and stale. The latest ExoPlayer code is available in https://github.com/androidx/media
https://developer.android.com/media/media3/exoplayer
Apache License 2.0
21.74k stars 6.03k forks source link

Why am I getting an error when working with the guidelines? #3793

Closed Ngmong closed 6 years ago

Ngmong commented 6 years ago
  1. mMainHandler = new Handler();
  2. context = getApplicationContext();
  3. DefaultBandwidthMeter bandwidthMeter = new DefaultBandwidthMeter(); 4 DataSource.Factory dataSourceFactory = new DefaultDataSourceFactory(context,
  4. Util.getUserAgent(context, "yourApplicationName"), bandwidthMeter);
  5. MediaSource videoSource = new
  6. ExtractorMediaSource.Factory(dataSourceFactory).createMediaSource(mp4VideoUri);
  7. player.prepare(videoSource);

I want to work with actionCam

An error occurs in the 7th line Factory part of my code

What is the problem?

AquilesCanta commented 6 years ago

This issue is being closed because it does not adhere to our issue template, and/or because it omits information requested in the issue template that is required for us to investigate the problem efficiently. The issue template can be found here.

If you’re able to provide complete information as requested in the issue template, please do so below and we’ll re-open the issue. Thanks!