MJPEG Stream

  • 16 Antworten
  • Letztes Antwortdatum
A

Andrez

Fortgeschrittenes Mitglied
64
Hi,

ich versuche schon seit Tagen eine gute Variante des MJPEG Streams in meine App zu implementieren - ich bekomme auch etwas zu sehen, aber bei schlechtem Internet dauert es ewig bis es zu sehen ist und dann bekomme ich meistens ein ANR :( also wenn ich die App beenden möchte oder so, ansonsten reagiert die UI und alles ist gut, weiß einer wie ich dieses Problem beheben kann?

Meinen Code habe ich von hier: Android and MJPEG - Stack Overflow
 
Hallo Andrez,

der Code, den du benutzt, ist relative alt (ich glaube 2005), und wurde eigentlich für Java entwickelt.
Und ist sehr schnell, und braucht nicht sehr viele Ressourcen (Nexus One mit zwei Streams, Android 2.3).

Leider war der Code schon damals relativ aufgebläht. Der Endwickler wollte zeigen, was er doch alles kann. Und ist in der heutigen Version noch größer.

Du bist aber sonst auf den richtigen Weg, du muss den Code nur ein bisschen zusammen stauchen. Den original Source Code habe ich nicht mehr, und die Seite ist down. Leider kann ich dir meine Version nicht geben (ehm. Arbeitgeber).

Von den Code, den du hast ist ungefähr 30% unnötiger foo bar, der alles viel unübersichtlicher macht.
Und ich würde kein HttpClient für die Internetverbindung nehmen, die Klasse UrlConnection ist einfach performanter.

Und als letztes, an welcher Stelle stürzt das Programm ab?
 
Hey markus.tullius,

danke für den Tipp.
Ich müsste mich noch genauer mit dem Code beschäftigen.
Die App wirft ein ANR wenn man die App startet, sie beendet (auch per Taskmanager) und danach neustartet -> es ist nur ein schwarzer Bildschirm zu sehen und nach einiger Zeit kommt: App reagiert nicht, wollen Sie beenden?
Ich habe schon alles versucht, MJPEGView zu stoppen bzw den Asynctask beim Beenden zu canceln - aber es kommt immer das selbe Ergebnis
 
Logcat?
 
Mein Gefühl sagt mir, dass dein Stream für die Bildern nicht geschlossen wurde.

Aber ein Logcat würde helfen.
 
Also hier ist der Log (auf Info - Level):

03-07 13:57:26.695: I/InputDispatcher(2423): Delivering key to (10965): action: 0x0 (0)
03-07 13:57:26.815: I/InputDispatcher(2423): Delivering key to (10965): action: 0x1 (0)
03-07 13:57:27.340: W/ActivityManager(2423): mDVFSHelper.acquire()
03-07 13:57:27.365: W/ContextImpl(2423): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1510 com.android.internal.policy.impl.PhoneWindowManager.notifyToSSRM:6590 com.android.internal.policy.impl.PhoneWindowManager.access$300:200 com.android.internal.policy.impl.PhoneWindowManager$PolicyHandler.handleMessage:809 android.os.Handler.dispatchMessage:102
03-07 13:57:27.380: E/Launcher(2949): Error finding setting, default accessibility to not found: accessibility_enabled
03-07 13:57:27.415: I/SELinux(10999): Function: selinux_android_load_priority , priority [3] , priority version is VE=SEPF_GT-I9305_4.4.4_0033
03-07 13:57:27.415: E/dalvikvm(10999): >>>>> Normal User
03-07 13:57:27.415: E/dalvikvm(10999): >>>>> com.android.email [ userId:0 | appId:10157 ]
03-07 13:57:27.415: I/SurfaceFlinger(1997): id=3221 createSurf (720x1280),1 flag=4, Mauncher
03-07 13:57:27.420: I/SpenGestureManager(2423): setFocusWindow21035
03-07 13:57:27.485: W/ContextImpl(2423): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1510 com.android.server.InputMethodManagerService$4.run:2772 java.lang.Thread.run:841 <bottom of call stack> <bottom of call stack>
03-07 13:57:27.515: W/CellLayoutChildren(2949): Adding view to CellLayoutChildren without an associated item.
03-07 13:57:27.520: W/CellLayoutChildren(2949): Adding view to CellLayoutChildren without an associated item.
03-07 13:57:27.670: W/ActivityManager(2423): Unable to start service Intent { cmp=com.android.email/.service.AttachmentDownloadService } U=0: not found
03-07 13:57:27.675: I/Process(10999): Sending signal. PID: 10844 SIG: 9
03-07 13:57:27.675: I/Process(10999): Sending signal. PID: 10844 SIG: 9
03-07 13:57:27.675: I/ActivityManager(2423): Killing 10844:com.android.exchange/u0a158 (adj 8): kill background
03-07 13:57:27.685: I/Process(10999): Sending signal. PID: 10999 SIG: 9
03-07 13:57:27.695: I/ActivityManager(2423): Process com.android.email (pid 10999) (adj 0) has died.
03-07 13:57:27.920: W/ActivityManager(2423): mDVFSHelper.release()
03-07 13:57:28.685: I/SELinux(11023): Function: selinux_android_load_priority , priority [3] , priority version is VE=SEPF_GT-I9305_4.4.4_0033
03-07 13:57:28.685: E/dalvikvm(11023): >>>>> Normal User
03-07 13:57:28.685: E/dalvikvm(11023): >>>>> com.android.exchange [ userId:0 | appId:10158 ]
03-07 13:57:30.540: I/InputReader(2423): Touch event's action is 0x0 (deviceType=0) [pCnt=1, s=0.11706 ] when=52713619732000
03-07 13:57:30.540: I/InputDispatcher(2423): Delivering touch to (2781): action: 0x4, toolType: 1
03-07 13:57:30.540: I/InputDispatcher(2423): Delivering touch to (2949): action: 0x0, toolType: 1
03-07 13:57:30.540: I/InputDispatcher(2423): Delivering touch to (2781): action: 0x0, toolType: 1
03-07 13:57:30.580: I/InputReader(2423): Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=] when=52713663706000
03-07 13:57:30.580: I/InputDispatcher(2423): Delivering touch to (2949): action: 0x1, toolType: 1
03-07 13:57:30.580: I/InputDispatcher(2423): Delivering touch to (2781): action: 0x1, toolType: 1
03-07 13:57:30.820: W/ContextImpl(2423): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1510 com.android.server.InputMethodManagerService$4.run:2772 java.lang.Thread.run:841 <bottom of call stack> <bottom of call stack>
03-07 13:57:32.070: I/InputReader(2423): Touch event's action is 0x0 (deviceType=0) [pCnt=1, s=0.11707 ] when=52715151509000
03-07 13:57:32.070: I/InputDispatcher(2423): Delivering touch to (2781): action: 0x4, toolType: 1
03-07 13:57:32.070: I/InputDispatcher(2423): Delivering touch to (2949): action: 0x0, toolType: 1
03-07 13:57:32.070: I/InputDispatcher(2423): Delivering touch to (2781): action: 0x0, toolType: 1
03-07 13:57:32.135: I/InputReader(2423): Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=] when=52715217183000
03-07 13:57:32.135: I/InputDispatcher(2423): Delivering touch to (2949): action: 0x1, toolType: 1
03-07 13:57:32.135: I/InputDispatcher(2423): Delivering touch to (2781): action: 0x1, toolType: 1
03-07 13:57:37.275: I/InputReader(2423): Touch event's action is 0x0 (deviceType=0) [pCnt=1, s=0.11708 ] when=52720352903000
03-07 13:57:37.275: I/InputDispatcher(2423): Delivering touch to (2781): action: 0x4, toolType: 1
03-07 13:57:37.275: I/InputDispatcher(2423): Delivering touch to (2949): action: 0x0, toolType: 1
03-07 13:57:37.275: I/InputDispatcher(2423): Delivering touch to (2781): action: 0x0, toolType: 1
03-07 13:57:37.335: I/InputReader(2423): Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=] when=52720419114000
03-07 13:57:37.335: I/InputDispatcher(2423): Delivering touch to (2949): action: 0x1, toolType: 1
03-07 13:57:37.335: I/InputDispatcher(2423): Delivering touch to (2781): action: 0x1, toolType: 1
03-07 13:57:37.350: W/ActivityManager(2423): mDVFSHelper.acquire()
03-07 13:57:37.355: I/SurfaceFlinger(1997): id=3222 createSurf (16x16),-1 flag=20004, EimLayer
03-07 13:57:37.355: I/SurfaceFlinger(1997): id=3223 createSurf (16x16),-1 flag=20004, EimLayer
03-07 13:57:37.375: I/SurfaceFlinger(1997): id=3224 createSurf (1x1),1 flag=404, npegtest
03-07 13:57:37.785: I/SurfaceFlinger(1997): id=3221 Removed Mauncher (12/18)
03-07 13:57:37.785: I/SurfaceFlinger(1997): id=3221 Removed Mauncher (-2/18)
03-07 13:57:37.960: I/SurfaceFlinger(1997): id=3217 Removed EimLayer (7/17)
03-07 13:57:37.960: I/SurfaceFlinger(1997): id=3216 Removed EimLayer (6/16)
03-07 13:57:37.960: I/SurfaceFlinger(1997): id=3217 Removed EimLayer (-2/16)
03-07 13:57:37.960: I/SurfaceFlinger(1997): id=3216 Removed EimLayer (-2/16)
03-07 13:57:40.350: W/ActivityManager(2423): mDVFSHelper.release()
03-07 13:57:47.370: W/ActivityManager(2423): Launch timeout has expired, giving up wake lock!
03-07 13:57:47.385: I/SurfaceFlinger(1997): id=3224 Removed npegtest (11/15)
03-07 13:57:47.385: I/SurfaceFlinger(1997): id=3224 Removed npegtest (-2/15)
03-07 13:57:47.385: E/WindowManager(2423): Starting window AppWindowToken{438c1718 token=Token{43fab490 ActivityRecord{4384ddc0 u0 com.example.mpegtest/.IntercomActivity t315}}} timed out
03-07 13:57:47.770: E/Watchdog(2423): !@Sync 1754
03-07 13:58:17.770: E/Watchdog(2423): !@Sync 1755
03-07 13:58:47.775: E/Watchdog(2423): !@Sync 1756
03-07 13:58:58.415: I/InputDispatcher(2423): Application is not responding. It has been 20014.0ms since event, 20011.2ms since wait started. Reason: Waiting because no window has focus but there is a focused application that may eventually add a window when it finishes starting up.
03-07 13:58:58.420: I/WindowManager(2423): Input event dispatching timed out sending to application AppWindowToken{438c1718 token=Token{43fab490 ActivityRecord{4384ddc0 u0 com.example.mpegtest/.IntercomActivity t315}}}. Reason: Waiting because no window has focus but there is a focused application that may eventually add a window when it finishes starting up.
03-07 13:58:58.455: I/Process(2423): Sending signal. PID: 10965 SIG: 3
03-07 13:58:58.455: I/dalvikvm(10965): threadid=3: reacting to signal 3
03-07 13:58:58.485: I/dalvikvm(10965): Wrote stack traces to '/data/anr/traces.txt'
03-07 13:58:58.485: I/Process(2423): Sending signal. PID: 2423 SIG: 3
03-07 13:58:58.485: I/dalvikvm(2423): threadid=3: reacting to signal 3
03-07 13:58:59.470: I/dalvikvm(2423): Wrote stack traces to '/data/anr/traces.txt'
03-07 13:58:59.470: I/Process(2423): Sending signal. PID: 3257 SIG: 3
03-07 13:58:59.470: I/dalvikvm(3257): threadid=3: reacting to signal 3
03-07 13:58:59.470: I/Process(2423): Sending signal. PID: 3238 SIG: 3
03-07 13:58:59.470: I/dalvikvm(3238): threadid=3: reacting to signal 3
03-07 13:58:59.470: E/DisplayPowerController(2423): [DAB] printLastLightSensorEvent : lastLightSensorEventTime = 52801496 lastLightSensorValue = 111.0
03-07 13:58:59.490: I/dalvikvm(3238): Wrote stack traces to '/data/anr/traces.txt'
03-07 13:58:59.490: I/Process(2423): Sending signal. PID: 3098 SIG: 3
03-07 13:58:59.490: I/dalvikvm(3098): threadid=3: reacting to signal 3
03-07 13:58:59.490: I/dalvikvm(3257): Wrote stack traces to '/data/anr/traces.txt'
03-07 13:58:59.490: I/Process(2423): Sending signal. PID: 3069 SIG: 3
03-07 13:58:59.490: I/dalvikvm(3069): threadid=3: reacting to signal 3
03-07 13:58:59.520: I/dalvikvm(3069): Wrote stack traces to '/data/anr/traces.txt'
03-07 13:58:59.520: I/Process(2423): Sending signal. PID: 2932 SIG: 3
03-07 13:58:59.520: I/dalvikvm(2932): threadid=3: reacting to signal 3
03-07 13:58:59.535: I/dalvikvm(3098): Wrote stack traces to '/data/anr/traces.txt'
03-07 13:58:59.535: I/Process(2423): Sending signal. PID: 2925 SIG: 3
03-07 13:58:59.535: I/dalvikvm(2925): threadid=3: reacting to signal 3
03-07 13:58:59.545: I/dalvikvm(2932): Wrote stack traces to '/data/anr/traces.txt'
03-07 13:58:59.545: I/Process(2423): Sending signal. PID: 2781 SIG: 3
03-07 13:58:59.545: I/dalvikvm(2781): threadid=3: reacting to signal 3
03-07 13:58:59.710: I/dalvikvm(2781): Wrote stack traces to '/data/anr/traces.txt'
03-07 13:58:59.745: I/dalvikvm(2925): Wrote stack traces to '/data/anr/traces.txt'
03-07 13:59:01.945: E/asset(2423): !@+++ closed '/mnt/asec/com.square_enix.android_googleplay.FF4AY_GP-1/pkg.apk' by system_server(FinalizerDaemon)
03-07 13:59:01.985: E/asset(2423): !@+++ closed '/mnt/asec/com.yodo1.crossyroad-1/pkg.apk' by system_server(FinalizerDaemon)
03-07 13:59:01.985: E/asset(2423): !@+++ closed '/mnt/asec/com.mojang.minecraftpe-2/pkg.apk' by system_server(FinalizerDaemon)
03-07 13:59:01.985: E/asset(2423): !@+++ closed '/mnt/asec/com.frogmind.badland-1/pkg.apk' by system_server(FinalizerDaemon)
03-07 13:59:01.985: E/asset(2423): !@+++ closed '/mnt/asec/com.smgstudio.onemoreline-4/pkg.apk' by system_server(FinalizerDaemon)
03-07 13:59:01.985: E/asset(2423): !@+++ closed '/mnt/asec/com.square_enix.android_googleplay.FFIV_GP-1/pkg.apk' by system_server(FinalizerDaemon)
03-07 13:59:01.985: E/asset(2423): !@+++ closed '/mnt/asec/com.FireproofStudios.TheRoom-1/pkg.apk' by system_server(FinalizerDaemon)
03-07 13:59:01.985: E/asset(2423): !@+++ closed '/mnt/asec/com.djinnworks.stickstuntbikerlite-1/pkg.apk' by system_server(FinalizerDaemon)
03-07 13:59:01.985: E/asset(2423): !@+++ closed '/mnt/asec/com.rayark.pluto-1/pkg.apk' by system_server(FinalizerDaemon)
03-07 13:59:01.985: E/asset(2423): !@+++ closed '/mnt/asec/com.rayark.Cytus.full-1/pkg.apk' by system_server(FinalizerDaemon)
03-07 13:59:01.985: E/asset(2423): !@+++ closed '/mnt/asec/com.djinnworks.StickmanBasketball-1/pkg.apk' by system_server(FinalizerDaemon)
03-07 13:59:02.890: I/dumpstate(11062): begin
03-07 13:59:02.905: I/SpenGestureManager(2423): setFocusWindow0
03-07 13:59:02.910: I/InputDispatcher(2423): Delivering key to (2423): action: 0x1 (0)
03-07 13:59:02.915: I/InputDispatcher(2423): Delivering key to (2423): action: 0x0 (0)
03-07 13:59:02.915: I/InputDispatcher(2423): Delivering key to (2423): action: 0x1 (0)
03-07 13:59:02.915: W/ViewRootImpl(2423): Dropping event due to no window focus
03-07 13:59:02.915: W/ViewRootImpl(2423): Dropping event due to no window focus
03-07 13:59:02.915: W/ViewRootImpl(2423): Dropping event due to no window focus
03-07 13:59:02.915: W/ViewRootImpl(2423): Dropping event due to no window focus
03-07 13:59:02.915: W/ViewRootImpl(2423): Dropping event due to no window focus
03-07 13:59:02.915: W/ViewRootImpl(2423): Dropping event due to no window focus
03-07 13:59:02.915: W/ViewRootImpl(2423): Dropping event due to no window focus
03-07 13:59:02.920: I/InputDispatcher(2423): Delivering key to (2423): action: 0x0 (0)
03-07 13:59:02.920: I/SurfaceFlinger(1997): id=3225 createSurf (1x1),1 flag=4, npegtest
03-07 13:59:02.940: W/ViewRootImpl(2423): Dropping event due to no window focus
03-07 13:59:02.940: W/ViewRootImpl(2423): Dropping event due to no window focus
03-07 13:59:02.940: W/ViewRootImpl(2423): Dropping event due to no window focus
03-07 13:59:02.940: W/ViewRootImpl(2423): Dropping event due to no window focus
03-07 13:59:02.940: W/ViewRootImpl(2423): Dropping event due to no window focus
03-07 13:59:02.940: W/ViewRootImpl(2423): Dropping event due to no window focus
03-07 13:59:02.940: W/ViewRootImpl(2423): Dropping event due to no window focus
03-07 13:59:02.945: I/InputDispatcher(2423): Delivering key to (2423): action: 0x1 (0)
03-07 13:59:02.960: I/InputDispatcher(2423): Delivering key to (2423): action: 0x0 (0)
03-07 13:59:02.960: I/InputDispatcher(2423): Delivering key to (2423): action: 0x1 (0)
03-07 13:59:02.960: I/InputDispatcher(2423): Delivering key to (2423): action: 0x0 (0)
03-07 13:59:02.965: I/InputDispatcher(2423): Delivering key to (2423): action: 0x1 (0)
03-07 13:59:02.965: I/InputDispatcher(2423): Delivering key to (2423): action: 0x0 (0)
03-07 13:59:02.970: I/InputDispatcher(2423): Delivering key to (2423): action: 0x1 (0)
03-07 13:59:02.975: I/InputDispatcher(2423): Delivering key to (2423): action: 0x0 (0)
03-07 13:59:02.980: I/InputDispatcher(2423): Delivering key to (2423): action: 0x1 (0)
03-07 13:59:02.980: I/InputDispatcher(2423): Delivering key to (2423): action: 0x0 (0)
03-07 13:59:02.980: I/InputDispatcher(2423): Delivering key to (2423): action: 0x1 (0)
03-07 13:59:02.985: I/InputDispatcher(2423): Delivering key to (2423): action: 0x0 (0)
03-07 13:59:02.985: I/InputDispatcher(2423): Delivering key to (2423): action: 0x1 (0)
03-07 13:59:02.985: I/InputDispatcher(2423): Delivering key to (2423): action: 0x0 (0)
03-07 13:59:02.990: I/InputDispatcher(2423): Delivering key to (2423): action: 0x1 (0)
03-07 13:59:02.990: I/InputDispatcher(2423): Delivering key to (2423): action: 0x0 (0)
03-07 13:59:02.990: I/InputDispatcher(2423): Delivering key to (2423): action: 0x1 (0)
03-07 13:59:02.995: I/InputDispatcher(2423): Delivering key to (2423): action: 0x0 (0)
03-07 13:59:02.995: I/InputDispatcher(2423): Delivering key to (2423): action: 0x1 (0)
03-07 13:59:02.995: I/InputDispatcher(2423): Delivering key to (2423): action: 0x0 (0)
03-07 13:59:02.995: I/InputDispatcher(2423): Delivering key to (2423): action: 0x1 (0)
03-07 13:59:03.005: I/InputDispatcher(2423): Delivering key to (2423): action: 0x0 (0)
03-07 13:59:03.005: I/InputDispatcher(2423): Delivering key to (2423): action: 0x1 (0)
03-07 13:59:03.005: I/InputDispatcher(2423): Delivering key to (2423): action: 0x0 (0)
03-07 13:59:03.010: I/InputDispatcher(2423): Delivering key to (2423): action: 0x1 (0)
03-07 13:59:03.010: I/InputDispatcher(2423): Delivering key to (2423): action: 0x0 (0)
03-07 13:59:03.010: I/InputDispatcher(2423): Delivering key to (2423): action: 0x1 (0)
03-07 13:59:03.015: I/InputDispatcher(2423): Delivering key to (2423): action: 0x0 (0)
03-07 13:59:03.015: I/InputDispatcher(2423): Delivering key to (2423): action: 0x1 (0)
03-07 13:59:03.015: I/InputDispatcher(2423): Delivering key to (2423): action: 0x0 (0)
03-07 13:59:03.020: I/InputDispatcher(2423): Delivering key to (2423): action: 0x1 (0)
03-07 13:59:03.020: I/InputDispatcher(2423): Delivering key to (2423): action: 0x0 (0)
03-07 13:59:03.025: I/InputDispatcher(2423): Delivering key to (2423): action: 0x1 (0)
03-07 13:59:03.025: I/InputDispatcher(2423): Delivering key to (2423): action: 0x0 (0)
03-07 13:59:03.025: I/InputDispatcher(2423): Delivering key to (2423): action: 0x1 (0)
03-07 13:59:03.025: I/InputDispatcher(2423): Delivering key to (2423): action: 0x0 (0)
03-07 13:59:03.030: I/InputDispatcher(2423): Delivering key to (2423): action: 0x1 (0)
03-07 13:59:03.030: I/InputDispatcher(2423): Delivering key to (2423): action: 0x0 (0)
03-07 13:59:03.035: I/InputDispatcher(2423): Delivering key to (2423): action: 0x1 (0)
03-07 13:59:03.035: I/InputDispatcher(2423): Delivering key to (2423): action: 0x0 (0)
03-07 13:59:03.035: I/InputDispatcher(2423): Delivering key to (2423): action: 0x1 (0)
03-07 13:59:03.185: E/android.os.Debug(2423): !@Dumpstate > sdumpstate -k -t -z -d -o /data/log/dumpstate_app_anr
03-07 13:59:03.250: W/ContextImpl(2423): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1524 com.android.server.analytics.data.collection.application.CrashAnrDetector.broadcastEvent:296 com.android.server.analytics.data.collection.application.CrashAnrDetector.processDropBoxEntry:254 com.android.server.analytics.data.collection.application.CrashAnrDetector.access$100:60 com.android.server.analytics.data.collection.application.CrashAnrDetector$1.onReceive:102
03-07 13:59:04.110: I/InputReader(2423): Touch event's action is 0x0 (deviceType=0) [pCnt=1, s=0.11709 ] when=52807189138000
03-07 13:59:04.110: I/InputDispatcher(2423): Delivering touch to (2781): action: 0x4, toolType: 1
03-07 13:59:04.110: I/InputDispatcher(2423): Delivering touch to (2423): action: 0x0, toolType: 1
03-07 13:59:04.150: I/InputReader(2423): Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=] when=52807232052000
03-07 13:59:04.150: I/InputDispatcher(2423): Delivering touch to (2423): action: 0x1, toolType: 1
03-07 13:59:04.170: W/ActivityManager(2423): Force finishing activity com.example.mpegtest/.IntercomActivity
03-07 13:59:04.175: I/ActivityManager(2423): Killing 10965:com.example.mpegtest/u0a198 (adj 0): user request after error
03-07 13:59:04.180: E/ViewRootImpl(2423): sendUserActionEvent() mView == null
03-07 13:59:04.185: W/InputDispatcher(2423): channel ~ Consumer closed input channel or an error occurred. events=0x9
03-07 13:59:04.185: E/InputDispatcher(2423): channel ~ Channel is unrecoverably broken and will be disposed!
03-07 13:59:04.185: W/InputDispatcher(2423): Attempted to unregister already unregistered input channel
03-07 13:59:04.185: I/SurfaceFlinger(1997): id=3220 Removed TurfaceView (11/15)
03-07 13:59:04.185: I/SurfaceFlinger(1997): id=3220 Removed TurfaceView (-2/15)
03-07 13:59:04.185: I/WindowState(2423): WIN DEATH: Window{42ec49b8 u0 com.example.mpegtest/com.example.mpegtest.IntercomActivity}
03-07 13:59:04.185: W/WindowManager(2423): Force-removing child win Window{42f41838 u0 SurfaceView} from container Window{42ec49b8 u0 com.example.mpegtest/com.example.mpegtest.IntercomActivity}
03-07 13:59:04.195: I/SurfaceFlinger(1997): id=3219 Removed JntercomAct (11/14)
03-07 13:59:04.195: I/SurfaceFlinger(1997): id=3219 Removed JntercomAct (-2/14)
03-07 13:59:04.205: I/SurfaceFlinger(1997): id=3223 Removed EimLayer (8/13)
03-07 13:59:04.205: I/SurfaceFlinger(1997): id=3223 Removed EimLayer (-2/13)
03-07 13:59:04.205: I/SurfaceFlinger(1997): id=3222 Removed EimLayer (7/12)
03-07 13:59:04.205: I/SurfaceFlinger(1997): id=3222 Removed EimLayer (-2/12)
03-07 13:59:04.210: W/ActivityManager(2423): mDVFSHelper.acquire()
03-07 13:59:04.215: W/WindowManager(2423): Failed looking up window
03-07 13:59:04.215: W/WindowManager(2423): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@432448a0 does not exist
03-07 13:59:04.215: W/WindowManager(2423): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:10547)
03-07 13:59:04.215: W/WindowManager(2423): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:10538)
03-07 13:59:04.215: W/WindowManager(2423): at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:1605)
03-07 13:59:04.215: W/WindowManager(2423): at android.os.BinderProxy.sendDeathNotice(Binder.java:493)
03-07 13:59:04.215: W/WindowManager(2423): at dalvik.system.NativeStart.run(Native Method)
03-07 13:59:04.215: I/WindowState(2423): WIN DEATH: null
03-07 13:59:04.255: I/SurfaceFlinger(1997): id=3226 createSurf (720x1280),1 flag=4, Mauncher
03-07 13:59:04.255: I/SpenGestureManager(2423): setFocusWindow21035
03-07 13:59:04.335: E/Launcher(2949): Error finding setting, default accessibility to not found: accessibility_enabled
03-07 13:59:04.340: W/InputMethodManagerService(2423): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@440958f8 attribute=null, token = android.os.BinderProxy@432b01f0
03-07 13:59:04.355: I/SELinux(11070): Function: selinux_android_load_priority , priority [3] , priority version is VE=SEPF_GT-I9305_4.4.4_0033
03-07 13:59:04.355: E/dalvikvm(11070): >>>>> Normal User
03-07 13:59:04.355: E/dalvikvm(11070): >>>>> com.android.email [ userId:0 | appId:10157 ]
03-07 13:59:04.420: I/SurfaceFlinger(1997): id=3225 Removed npegtest (11/12)
03-07 13:59:04.420: I/SurfaceFlinger(1997): id=3225 Removed npegtest (-2/12)
03-07 13:59:04.550: I/Process(11070): Sending signal. PID: 11023 SIG: 9
03-07 13:59:04.550: I/Process(11070): Sending signal. PID: 11023 SIG: 9
03-07 13:59:04.550: I/ActivityManager(2423): Killing 11023:com.android.exchange/u0a158 (adj 5): kill background
03-07 13:59:04.560: I/Process(11070): Sending signal. PID: 11070 SIG: 9
03-07 13:59:04.575: I/ActivityManager(2423): Process com.android.email (pid 11070) (adj 0) has died.
03-07 13:59:04.710: W/ActivityManager(2423): mDVFSHelper.release()
03-07 13:59:05.015: W/ProcessCpuTracker(2423): Skipping unknown process pid 11092
03-07 13:59:05.560: I/SELinux(11097): Function: selinux_android_load_priority , priority [3] , priority version is VE=SEPF_GT-I9305_4.4.4_0033
03-07 13:59:05.560: E/dalvikvm(11097): >>>>> Normal User
03-07 13:59:05.560: E/dalvikvm(11097): >>>>> com.android.exchange [ userId:0 | appId:10158 ]
03-07 13:59:17.775: E/Watchdog(2423): !@Sync 1757
03-07 13:59:22.250: I/TLC_TIMA_PKM(2423): TIMA: recv_cmd_id = 2
03-07 13:59:22.250: I/TLC_TIMA_PKM(2423): TIMA: recv_cmd ret = 0, result_ondemand = MSG=Kernel Verification Success;
03-07 13:59:31.515: I/dumpstate(11062): waiting for zip started
03-07 13:59:31.520: I/dumpstate(11062): waiting for zip end
03-07 13:59:31.520: I/dumpstate(11062): done
03-07 13:59:47.775: E/Watchdog(2423): !@Sync 1758
 
hast du dir ml diesen comment da angesehen in deinem link der beschreibt doch irgendwie deine situation:
"to any future people using this code I just wanted to point out my experience with it. if there is an error you will get a black screen. I had certificate problems and without the catches being filled in there was no errors posted to logcat. So all I had was a black screen. once I resolved the cert issues all worked"
 
es ist von Zertifikaten die Rede, was ist damit gemeint?

Der ursprüngliche Beitrag von 15:07 Uhr wurde um 16:08 Uhr ergänzt:

Hat sich geklärt - danke ^^
 
Hey würdest du dein Wissen mit uns teilen bitte für die nächsten die das Problem haben
 
Denke mal, er hat die Url aus dem Beispiel benutzt.
(String URL = "http://gamic.dnsalias.net:7001/img/video.mjpeg"; )
 
Was ist denn das bitte?
Was passiert da mit diesen spiele apks?
PHP:
03-07 13:59:01.945: E/asset(2423): !@+++ closed '/mnt/asec/com.square_enix.android_googleplay.FF4AY_GP-1/pkg.apk' by system_server(FinalizerDaemon)
03-07 13:59:01.985: E/asset(2423): !@+++ closed '/mnt/asec/com.yodo1.crossyroad-1/pkg.apk' by system_server(FinalizerDaemon)
03-07 13:59:01.985: E/asset(2423): !@+++ closed '/mnt/asec/com.mojang.minecraftpe-2/pkg.apk' by system_server(FinalizerDaemon)
03-07 13:59:01.985: E/asset(2423): !@+++ closed '/mnt/asec/com.frogmind.badland-1/pkg.apk' by system_server(FinalizerDaemon)
03-07 13:59:01.985: E/asset(2423): !@+++ closed '/mnt/asec/com.smgstudio.onemoreline-4/pkg.apk' by system_server(FinalizerDaemon)
03-07 13:59:01.985: E/asset(2423): !@+++ closed '/mnt/asec/com.square_enix.android_googleplay.FFIV_GP-1/pkg.apk' by system_server(FinalizerDaemon)
03-07 13:59:01.985: E/asset(2423): !@+++ closed '/mnt/asec/com.FireproofStudios.TheRoom-1/pkg.apk' by system_server(FinalizerDaemon)
03-07 13:59:01.985: E/asset(2423): !@+++ closed '/mnt/asec/com.djinnworks.stickstuntbikerlite-1/pkg.apk' by system_server(FinalizerDaemon)
03-07 13:59:01.985: E/asset(2423): !@+++ closed '/mnt/asec/com.rayark.pluto-1/pkg.apk' by system_server(FinalizerDaemon)
03-07 13:59:01.985: E/asset(2423): !@+++ closed '/mnt/asec/com.rayark.Cytus.full-1/pkg.apk' by system_server(FinalizerDaemon)
03-07 13:59:01.985: E/asset(2423): !@+++ closed '/mnt/asec/com.djinnworks.StickmanBasketball-1/pkg.apk' by system_server(FinalizerDaemon)

und ansonsten ist sehr viel vom window manager und dass kein Focus besteht und accessebility von seinem service oder so die rede.

Ja Un sein timeout halt ...
 
Da war dein Garbage Collector fleißiig.
 
Verstehe ich nicht, normalerweise müsste du auch ein Bild mit einer 2000 DSL-Leitung streamen können.
 
Mmmh ich könnte mich irren aber 2000er damit meinst du doch 2 mbits/s oder das liegt nach meinem Verständnis weit über 15 kbits
 
15 KBits, das liegt in den untersten Bereichen eine 56k Modems. :)

Bin einfach davon ausgegangen, das es 16000 Leitung mit einer Rate von 15.000kbits betreibt (15kbits kann ich mir nicht vorstellen).

Ist mein Fehler. ;)
 
Sorry, dass ich es nicht ausdrücklich genug gesagt habe ^^ mit dem Custom HttpClienten und ordentlicher Internetleistung funktioniert alles ^^ nächstes mal lese ich mir auch die Kommentare bei stackoverflow durch :lol:
 
Zurück
Oben Unten