a.java
1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package com.instabug.library.internal.b;
import android.media.MediaPlayer;
import android.media.MediaPlayer.OnCompletionListener;
import com.instabug.library.util.InstabugSDKLogger;
import java.io.IOException;
public class a
{
private final String a;
private MediaPlayer b = null;
public a(String paramString)
{
this.a = paramString;
}
public void a()
{
this.b = new MediaPlayer();
try
{
this.b.setDataSource(this.a);
this.b.prepare();
return;
}
catch (IOException localIOException)
{
InstabugSDKLogger.e(this, "Playing audio file failed", localIOException);
}
}
public void a(MediaPlayer.OnCompletionListener paramOnCompletionListener)
{
this.b.setOnCompletionListener(paramOnCompletionListener);
}
public int b()
{
if (this.b == null) {
a();
}
return this.b.getDuration();
}
public void c()
{
if (this.b == null) {
a();
}
this.b.start();
}
public void d()
{
this.b.release();
this.b = null;
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/instabug/library/internal/b/a.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/