Exoplayer UDP流:地址已在使用中

时间:2018-11-16 04:40:44

标签: exoplayer

**我正在尝试将UDP流URL(UDP://@264.1.1.1:1102)发送到exoplayer。但我不断收到此错误:

绑定时出错:地址已在使用中**

E/ExoPlayerImplInternal: Source error.
com.google.android.exoplayer2.upstream.UdpDataSource$UdpDataSourceException: java.net.BindException: bind failed: EADDRINUSE (Address already in use)
    at com.google.android.exoplayer2.upstream.UdpDataSource.open(UdpDataSource.java:114)
    at com.google.android.exoplayer2.source.ExtractorMediaPeriod$ExtractingLoadable.load(ExtractorMediaPeriod.java:848)
    at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:317)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
    at java.lang.Thread.run(Thread.java:818)
 Caused by: java.net.BindException: bind failed: EADDRINUSE (Address already in use)
    at libcore.io.IoBridge.bind(IoBridge.java:99)
    at java.net.PlainDatagramSocketImpl.bind(PlainDatagramSocketImpl.java:60)
    at java.net.DatagramSocket.bind(DatagramSocket.java:484)
    at java.net.DatagramSocket.<init>(DatagramSocket.java:428)
    at java.net.MulticastSocket.<init>(MulticastSocket.java:67)
    at com.google.android.exoplayer2.upstream.UdpDataSource.open(UdpDataSource.java:107)
    at com.google.android.exoplayer2.source.ExtractorMediaPeriod$ExtractingLoadable.load(ExtractorMediaPeriod.java:848) 
    at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:317) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 
    at java.lang.Thread.run(Thread.java:818) 
 Caused by: android.system.ErrnoException: bind failed: EADDRINUSE (Address already in use)
    at libcore.io.Posix.bind(Native Method)
    at libcore.io.ForwardingOs.bind(ForwardingOs.java:56)
    at libcore.io.IoBridge.bind(IoBridge.java:97)
    at java.net.PlainDatagramSocketImpl.bind(PlainDatagramSocketImpl.java:60) 
    at java.net.DatagramSocket.bind(DatagramSocket.java:484) 
    at java.net.DatagramSocket.<init>(DatagramSocket.java:428) 
    at java.net.MulticastSocket.<init>(MulticastSocket.java:67) 
    at com.google.android.exoplayer2.upstream.UdpDataSource.open(UdpDataSource.java:107) 
    at com.google.android.exoplayer2.source.ExtractorMediaPeriod$ExtractingLoadable.load(ExtractorMediaPeriod.java:848) 
    at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:317) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 
    at java.lang.Thread.run(Thread.java:818) 

0 个答案:

没有答案