title: Play Gif with Audio Using Glide Android
body: <p>I am currently using the Glide library to show a gif in my android device, on specific event, but now I also want to set audio as background when the gif is playing, and when it stops the audio also stops! </p>
  
  <p><strong>Attempt:</strong></p>
  
  <pre><code>Glide.with(this).load(R.drawable.somegifFile).into(imageView);
  
  try {
      if (mp.isPlaying()) {
      mp.stop();
      mp.release();
      mp = MediaPlayer.create(context, R.raw.sound);
  } 
      mp.start();
  } catch(Exception e) { e.printStackTrace(); }
  </code></pre>