Sometimes Connection refused (Android:VideoView) The 2019 Stack Overflow Developer Survey...

Are my PIs rude or am I just being too sensitive?

How do you keep chess fun when your opponent constantly beats you?

"... to apply for a visa" or "... and applied for a visa"?

Was credit for the black hole image misattributed?

How do I add random spotting to the same face in cycles?

Make it rain characters

Why can't wing-mounted spoilers be used to steepen approaches?

The following signatures were invalid: EXPKEYSIG 1397BC53640DB551

How can I protect witches in combat who wear limited clothing?

Sort list of array linked objects by keys and values

ELI5: Why do they say that Israel would have been the fourth country to land a spacecraft on the Moon and why do they call it low cost?

What aspect of planet Earth must be changed to prevent the industrial revolution?

Does the AirPods case need to be around while listening via an iOS Device?

How to politely respond to generic emails requesting a PhD/job in my lab? Without wasting too much time

When did F become S in typeography, and why?

How does this infinite series simplify to an integral?

I could not break this equation. Please help me

Who or what is the being for whom Being is a question for Heidegger?

Problems with Ubuntu mount /tmp

How to stretch delimiters to envolve matrices inside of a kbordermatrix?

Match Roman Numerals

Take groceries in checked luggage

Mortgage adviser recommends a longer term than necessary combined with overpayments

Single author papers against my advisor's will?



Sometimes Connection refused (Android:VideoView)



The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
The Ask Question Wizard is Live!
Data science time! April 2019 and salary with experienceArtificially create a connection timeout errorNetwork tools that simulate slow network connectionHow can I connect to Android with ADB over TCP?Detect network connection type on AndroidSimulating Slow Internet ConnectionDetect whether there is an Internet connection available on Androidjava.net.ConnectException: localhost/127.0.0.1:8080 - Connection refusedjava.net.ConnectException: Connection refusedAndroid check internet connectionjava.net.ConnectException: Connection refused: connect





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I'm not sure if it's a hardware or software problem. I have written an application (fragment), which should display a video on the screen.



This works for many videos (see comment in the source code). I can not pick up the picture on my Hikvision surveillance camera (DS-2CD2063GO-I). It does not show the video (on the real hardware) and then reports the faulty access via a dialog.



Settings in the Hikvision:



Stream Type: Main Stream
Resolution: 1280 * 720P
Bit rate: Variable
Video quality: +++++
Frame rate: 20
Max. Bit rate 8192
Video encoding: H.265 (H.264 does not work either)
H.265 +: OFF
Profile: main profile
I-frame interval: 50
SVC: OFF


Access via the same address works via VLC.



source code:



package com.wiboni.autohome;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.VideoView;

public class MessageFragment extends Fragment {
//private static final String MOVIE_URL = "https://archive.org/download/ksnn_compilation_master_the_internet/ksnn_compilation_master_the_internet_512kb.mp4";
//private static final String MOVIE_URL = "rtsp://:@wowzaec2demo.streamlock.net:554/vod/mp4:BigBuckBunny_115k.mov";

//doesn't work:
private static final String MOVIE_URL = "rtsp://admin:12345678@192.168.178.42:554";
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_message,container,false);
}

@Override
public void onStart() {
VideoView mVideoView=(VideoView)getView().findViewById(R.id.mVideoView);
mVideoView.setVideoURI(Uri.parse(MOVIE_URL));
mVideoView.requestFocus();
mVideoView.start();
super.onStart();
}

}


Logs:



04-11 21:50:39.989 11637-11637/? E/adbd: recv: OPEN 00000578 00000000 0015:73 68 65 6C 6C 3A 6C 6F 67 63 61 74 20 2D 76 20 6C 6F 6E 67 00 
04-11 21:50:42.941 11637-11637/? E/adbd: recv: OPEN 00000579 00000000 0014:73 68 65 6C 6C 3A 70 6D 20 6C 69 73 74 20 75 73 65 72 73 00
04-11 21:50:43.619 12749-12749/? E/appproc: Enhanced Zygote ASLR: ro.knox.enhance.zygote.aslr != 1. Enhanced Zygote ASLR is DISABLED!
04-11 21:50:43.850 12749-12749/? E/SemAffinityControl: SemAffinityControl: registerfunction enter
04-11 21:50:43.894 11637-11637/? E/adbd: recv: OPEN 0000057a 00000000 001a:73 68 65 6C 6C 3A 61 6D 20 67 65 74 2D 63 75 72 72 65 6E 74 2D 75 73 65 72 00
04-11 21:50:43.983 11637-11637/? E/adbd: recv: OPEN 0000057b 00000000 002a:73 68 65 6C 6C 3A 64 75 6D 70 73 79 73 20 70 61 63 6B 61 67 65 20 63 6F 6D 2E 77 69 62 6F 6E 69 2E 61 75 74 6F 68 6F 6D 65 00
04-11 21:50:44.081 11637-11637/? E/adbd: recv: OPEN 0000057c 00000000 002a:73 68 65 6C 6C 3A 64 75 6D 70 73 79 73 20 70 61 63 6B 61 67 65 20 63 6F 6D 2E 77 69 62 6F 6E 69 2E 61 75 74 6F 68 6F 6D 65 00
04-11 21:50:44.172 11637-11637/? E/adbd: recv: OPEN 0000057d 00000000 0006:73 79 6E 63 3A 00
04-11 21:50:44.209 11637-11637/? E/adbd: recv: OPEN 0000057f 00000000 0022:6C 6F 63 61 6C 61 62 73 74 72 61 63 74 3A 63 6F 6D 2E 77 69 62 6F 6E 69 2E 61 75 74 6F 68 6F 6D 65 00
failed to connect to socket 'localabstract:com.wiboni.autohome': Connection refused
04-11 21:50:44.223 11637-11637/? E/adbd: recv: OPEN 00000581 00000000 0014:73 68 65 6C 6C 3A 70 6D 20 6C 69 73 74 20 75 73 65 72 73 00
04-11 21:50:44.912 12772-12772/? E/appproc: Enhanced Zygote ASLR: ro.knox.enhance.zygote.aslr != 1. Enhanced Zygote ASLR is DISABLED!
04-11 21:50:45.138 12772-12772/? E/SemAffinityControl: SemAffinityControl: registerfunction enter
04-11 21:50:47.231 11637-11637/? E/adbd: recv: OPEN 00000582 00000000 0028:73 68 65 6C 6C 3A 61 6D 20 66 6F 72 63 65 2D 73 74 6F 70 20 63 6F 6D 2E 77 69 62 6F 6E 69 2E 61 75 74 6F 68 6F 6D 65 00
04-11 21:50:47.234 11637-11637/? E/adbd: recv: OPEN 00000583 00000000 001a:73 68 65 6C 6C 3A 77 6D 20 64 69 73 6D 69 73 73 2D 6B 65 79 67 75 61 72 64 00
04-11 21:50:47.339 11637-11637/? E/adbd: recv: OPEN 00000584 00000000 0006:73 79 6E 63 3A 00
04-11 21:50:47.373 11637-11637/? E/adbd: recv: OPEN 00000585 00000000 008b:73 68 65 6C 6C 3A 61 6D 20 73 74 61 72 74 20 2D 6E 20 22 63 6F 6D 2E 77 69 62 6F 6E 69 2E 61 75 74 6F 68 6F 6D 65 2F 63 6F 6D 2E 77 69 62 6F 6E 69 2E 61 75 74 6F 68 6F 6D 65 2E 4D 61 69 6E 41 63 74 69 76 69 74 79 22 20 2D 61 20 61 6E 64 72 6F 69 64 2E 69 6E 74 65 6E 74 2E 61 63 74 69 6F 6E 2E 4D 41 49 4E 20 2D 63 20 61 6E 64 72 6F 69 64 2E 69 6E 74 65 6E 74 2E 63 61 74 65 67 6F 72 79 2E 4C 41 55 4E 43 48 45 52 00
04-11 21:50:47.474 12815-12815/? E/Zygote: isWhitelistProcess - Process is Whitelisted
04-11 21:50:47.474 12815-12815/? E/libpersona: scanKnoxPersonas
04-11 21:50:47.475 12815-12815/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
04-11 21:50:47.541 11637-11637/? E/adbd: recv: OPEN 00000586 00000000 000b:6A 64 77 70 3A 31 32 38 31 35 00
04-11 21:50:47.882 2916-3101/? E/MdnieScenarioControlService: Exception : java.io.FileNotFoundException: /sys/class/mdnie/mdnie/scenario (No such file or directory) , in : null , value : null , length : 0
04-11 21:50:47.958 12804-12804/? E/appproc: Enhanced Zygote ASLR: ro.knox.enhance.zygote.aslr != 1. Enhanced Zygote ASLR is DISABLED!
04-11 21:50:48.103 2916-3063/? E/WindowManager: win=Window{a621fd9 u0 com.android.settings/com.android.settings.Settings EXITING} destroySurfaces: appStopped=false win.mWindowRemovalAllowed=false win.mRemoveOnExit=false win.mViewVisibility=8, caller=com.android.server.wm.AppWindowToken.destroySurfaces:748 com.android.server.wm.AppWindowToken.destroySurfaces:732 com.android.server.wm.WindowState.onExitAnimationDone:5646 com.android.server.wm.AppWindowAnimator.stepAnimationLocked:517 com.android.server.wm.AppWindowToken.stepAppWindowsAnimation:1745
04-11 21:50:48.212 12804-12804/? E/SemAffinityControl: SemAffinityControl: registerfunction enter
04-11 21:50:48.985 12815-12827/com.wiboni.autohome E/MediaPlayerNative: error (1, -2147483648)
04-11 21:50:49.049 12815-12815/com.wiboni.autohome E/MediaPlayer: Error (1,-2147483648)
04-11 21:50:49.207 2916-3063/? E/WindowManager: win=Window{c2c0b4d u0 Splash Screen com.wiboni.autohome EXITING} destroySurfaces: appStopped=false win.mWindowRemovalAllowed=true win.mRemoveOnExit=true win.mViewVisibility=0, caller=com.android.server.wm.AppWindowToken.destroySurfaces:748 com.android.server.wm.AppWindowToken.destroySurfaces:732 com.android.server.wm.WindowState.onExitAnimationDone:5646 com.android.server.wm.WindowStateAnimator.stepAnimationLocked:553 com.android.server.wm.DisplayContent.lambda$-com_android_server_wm_DisplayContent_21578:476
04-11 21:50:49.289 12815-12815/com.wiboni.autohome E/MediaPlayerNative: isPlaying: called in state MEDIA_PLAYER_STATE_ERROR
04-11 21:50:49.608 2916-3101/? E/MdnieScenarioControlService: Exception : java.io.FileNotFoundException: /sys/class/mdnie/mdnie/scenario (No such file or directory) , in : null , value : null , length : 0









share|improve this question













migrated from superuser.com yesterday


This question came from our site for computer enthusiasts and power users.



















  • Welcome to Super User! Unfortunately this post is on the wrong SE site because it is the wrong category. While you say it may be a "hardware problem", it does not belong on Super User for 2 big reasons. 1) It is mostly a programming related issue at this stage (so it mostly likely belongs on Stack Overflow) and because it seems this camera issue is for androids and not conventional computers, 2) it may belong on the "Android Enthusiasts" because its related to Androids if it truly was a hardware issue. However at this stage it is likely a programming library issue and belongs on S. Overflow.

    – El8dN8
    yesterday


















0















I'm not sure if it's a hardware or software problem. I have written an application (fragment), which should display a video on the screen.



This works for many videos (see comment in the source code). I can not pick up the picture on my Hikvision surveillance camera (DS-2CD2063GO-I). It does not show the video (on the real hardware) and then reports the faulty access via a dialog.



Settings in the Hikvision:



Stream Type: Main Stream
Resolution: 1280 * 720P
Bit rate: Variable
Video quality: +++++
Frame rate: 20
Max. Bit rate 8192
Video encoding: H.265 (H.264 does not work either)
H.265 +: OFF
Profile: main profile
I-frame interval: 50
SVC: OFF


Access via the same address works via VLC.



source code:



package com.wiboni.autohome;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.VideoView;

public class MessageFragment extends Fragment {
//private static final String MOVIE_URL = "https://archive.org/download/ksnn_compilation_master_the_internet/ksnn_compilation_master_the_internet_512kb.mp4";
//private static final String MOVIE_URL = "rtsp://:@wowzaec2demo.streamlock.net:554/vod/mp4:BigBuckBunny_115k.mov";

//doesn't work:
private static final String MOVIE_URL = "rtsp://admin:12345678@192.168.178.42:554";
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_message,container,false);
}

@Override
public void onStart() {
VideoView mVideoView=(VideoView)getView().findViewById(R.id.mVideoView);
mVideoView.setVideoURI(Uri.parse(MOVIE_URL));
mVideoView.requestFocus();
mVideoView.start();
super.onStart();
}

}


Logs:



04-11 21:50:39.989 11637-11637/? E/adbd: recv: OPEN 00000578 00000000 0015:73 68 65 6C 6C 3A 6C 6F 67 63 61 74 20 2D 76 20 6C 6F 6E 67 00 
04-11 21:50:42.941 11637-11637/? E/adbd: recv: OPEN 00000579 00000000 0014:73 68 65 6C 6C 3A 70 6D 20 6C 69 73 74 20 75 73 65 72 73 00
04-11 21:50:43.619 12749-12749/? E/appproc: Enhanced Zygote ASLR: ro.knox.enhance.zygote.aslr != 1. Enhanced Zygote ASLR is DISABLED!
04-11 21:50:43.850 12749-12749/? E/SemAffinityControl: SemAffinityControl: registerfunction enter
04-11 21:50:43.894 11637-11637/? E/adbd: recv: OPEN 0000057a 00000000 001a:73 68 65 6C 6C 3A 61 6D 20 67 65 74 2D 63 75 72 72 65 6E 74 2D 75 73 65 72 00
04-11 21:50:43.983 11637-11637/? E/adbd: recv: OPEN 0000057b 00000000 002a:73 68 65 6C 6C 3A 64 75 6D 70 73 79 73 20 70 61 63 6B 61 67 65 20 63 6F 6D 2E 77 69 62 6F 6E 69 2E 61 75 74 6F 68 6F 6D 65 00
04-11 21:50:44.081 11637-11637/? E/adbd: recv: OPEN 0000057c 00000000 002a:73 68 65 6C 6C 3A 64 75 6D 70 73 79 73 20 70 61 63 6B 61 67 65 20 63 6F 6D 2E 77 69 62 6F 6E 69 2E 61 75 74 6F 68 6F 6D 65 00
04-11 21:50:44.172 11637-11637/? E/adbd: recv: OPEN 0000057d 00000000 0006:73 79 6E 63 3A 00
04-11 21:50:44.209 11637-11637/? E/adbd: recv: OPEN 0000057f 00000000 0022:6C 6F 63 61 6C 61 62 73 74 72 61 63 74 3A 63 6F 6D 2E 77 69 62 6F 6E 69 2E 61 75 74 6F 68 6F 6D 65 00
failed to connect to socket 'localabstract:com.wiboni.autohome': Connection refused
04-11 21:50:44.223 11637-11637/? E/adbd: recv: OPEN 00000581 00000000 0014:73 68 65 6C 6C 3A 70 6D 20 6C 69 73 74 20 75 73 65 72 73 00
04-11 21:50:44.912 12772-12772/? E/appproc: Enhanced Zygote ASLR: ro.knox.enhance.zygote.aslr != 1. Enhanced Zygote ASLR is DISABLED!
04-11 21:50:45.138 12772-12772/? E/SemAffinityControl: SemAffinityControl: registerfunction enter
04-11 21:50:47.231 11637-11637/? E/adbd: recv: OPEN 00000582 00000000 0028:73 68 65 6C 6C 3A 61 6D 20 66 6F 72 63 65 2D 73 74 6F 70 20 63 6F 6D 2E 77 69 62 6F 6E 69 2E 61 75 74 6F 68 6F 6D 65 00
04-11 21:50:47.234 11637-11637/? E/adbd: recv: OPEN 00000583 00000000 001a:73 68 65 6C 6C 3A 77 6D 20 64 69 73 6D 69 73 73 2D 6B 65 79 67 75 61 72 64 00
04-11 21:50:47.339 11637-11637/? E/adbd: recv: OPEN 00000584 00000000 0006:73 79 6E 63 3A 00
04-11 21:50:47.373 11637-11637/? E/adbd: recv: OPEN 00000585 00000000 008b:73 68 65 6C 6C 3A 61 6D 20 73 74 61 72 74 20 2D 6E 20 22 63 6F 6D 2E 77 69 62 6F 6E 69 2E 61 75 74 6F 68 6F 6D 65 2F 63 6F 6D 2E 77 69 62 6F 6E 69 2E 61 75 74 6F 68 6F 6D 65 2E 4D 61 69 6E 41 63 74 69 76 69 74 79 22 20 2D 61 20 61 6E 64 72 6F 69 64 2E 69 6E 74 65 6E 74 2E 61 63 74 69 6F 6E 2E 4D 41 49 4E 20 2D 63 20 61 6E 64 72 6F 69 64 2E 69 6E 74 65 6E 74 2E 63 61 74 65 67 6F 72 79 2E 4C 41 55 4E 43 48 45 52 00
04-11 21:50:47.474 12815-12815/? E/Zygote: isWhitelistProcess - Process is Whitelisted
04-11 21:50:47.474 12815-12815/? E/libpersona: scanKnoxPersonas
04-11 21:50:47.475 12815-12815/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
04-11 21:50:47.541 11637-11637/? E/adbd: recv: OPEN 00000586 00000000 000b:6A 64 77 70 3A 31 32 38 31 35 00
04-11 21:50:47.882 2916-3101/? E/MdnieScenarioControlService: Exception : java.io.FileNotFoundException: /sys/class/mdnie/mdnie/scenario (No such file or directory) , in : null , value : null , length : 0
04-11 21:50:47.958 12804-12804/? E/appproc: Enhanced Zygote ASLR: ro.knox.enhance.zygote.aslr != 1. Enhanced Zygote ASLR is DISABLED!
04-11 21:50:48.103 2916-3063/? E/WindowManager: win=Window{a621fd9 u0 com.android.settings/com.android.settings.Settings EXITING} destroySurfaces: appStopped=false win.mWindowRemovalAllowed=false win.mRemoveOnExit=false win.mViewVisibility=8, caller=com.android.server.wm.AppWindowToken.destroySurfaces:748 com.android.server.wm.AppWindowToken.destroySurfaces:732 com.android.server.wm.WindowState.onExitAnimationDone:5646 com.android.server.wm.AppWindowAnimator.stepAnimationLocked:517 com.android.server.wm.AppWindowToken.stepAppWindowsAnimation:1745
04-11 21:50:48.212 12804-12804/? E/SemAffinityControl: SemAffinityControl: registerfunction enter
04-11 21:50:48.985 12815-12827/com.wiboni.autohome E/MediaPlayerNative: error (1, -2147483648)
04-11 21:50:49.049 12815-12815/com.wiboni.autohome E/MediaPlayer: Error (1,-2147483648)
04-11 21:50:49.207 2916-3063/? E/WindowManager: win=Window{c2c0b4d u0 Splash Screen com.wiboni.autohome EXITING} destroySurfaces: appStopped=false win.mWindowRemovalAllowed=true win.mRemoveOnExit=true win.mViewVisibility=0, caller=com.android.server.wm.AppWindowToken.destroySurfaces:748 com.android.server.wm.AppWindowToken.destroySurfaces:732 com.android.server.wm.WindowState.onExitAnimationDone:5646 com.android.server.wm.WindowStateAnimator.stepAnimationLocked:553 com.android.server.wm.DisplayContent.lambda$-com_android_server_wm_DisplayContent_21578:476
04-11 21:50:49.289 12815-12815/com.wiboni.autohome E/MediaPlayerNative: isPlaying: called in state MEDIA_PLAYER_STATE_ERROR
04-11 21:50:49.608 2916-3101/? E/MdnieScenarioControlService: Exception : java.io.FileNotFoundException: /sys/class/mdnie/mdnie/scenario (No such file or directory) , in : null , value : null , length : 0









share|improve this question













migrated from superuser.com yesterday


This question came from our site for computer enthusiasts and power users.



















  • Welcome to Super User! Unfortunately this post is on the wrong SE site because it is the wrong category. While you say it may be a "hardware problem", it does not belong on Super User for 2 big reasons. 1) It is mostly a programming related issue at this stage (so it mostly likely belongs on Stack Overflow) and because it seems this camera issue is for androids and not conventional computers, 2) it may belong on the "Android Enthusiasts" because its related to Androids if it truly was a hardware issue. However at this stage it is likely a programming library issue and belongs on S. Overflow.

    – El8dN8
    yesterday














0












0








0








I'm not sure if it's a hardware or software problem. I have written an application (fragment), which should display a video on the screen.



This works for many videos (see comment in the source code). I can not pick up the picture on my Hikvision surveillance camera (DS-2CD2063GO-I). It does not show the video (on the real hardware) and then reports the faulty access via a dialog.



Settings in the Hikvision:



Stream Type: Main Stream
Resolution: 1280 * 720P
Bit rate: Variable
Video quality: +++++
Frame rate: 20
Max. Bit rate 8192
Video encoding: H.265 (H.264 does not work either)
H.265 +: OFF
Profile: main profile
I-frame interval: 50
SVC: OFF


Access via the same address works via VLC.



source code:



package com.wiboni.autohome;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.VideoView;

public class MessageFragment extends Fragment {
//private static final String MOVIE_URL = "https://archive.org/download/ksnn_compilation_master_the_internet/ksnn_compilation_master_the_internet_512kb.mp4";
//private static final String MOVIE_URL = "rtsp://:@wowzaec2demo.streamlock.net:554/vod/mp4:BigBuckBunny_115k.mov";

//doesn't work:
private static final String MOVIE_URL = "rtsp://admin:12345678@192.168.178.42:554";
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_message,container,false);
}

@Override
public void onStart() {
VideoView mVideoView=(VideoView)getView().findViewById(R.id.mVideoView);
mVideoView.setVideoURI(Uri.parse(MOVIE_URL));
mVideoView.requestFocus();
mVideoView.start();
super.onStart();
}

}


Logs:



04-11 21:50:39.989 11637-11637/? E/adbd: recv: OPEN 00000578 00000000 0015:73 68 65 6C 6C 3A 6C 6F 67 63 61 74 20 2D 76 20 6C 6F 6E 67 00 
04-11 21:50:42.941 11637-11637/? E/adbd: recv: OPEN 00000579 00000000 0014:73 68 65 6C 6C 3A 70 6D 20 6C 69 73 74 20 75 73 65 72 73 00
04-11 21:50:43.619 12749-12749/? E/appproc: Enhanced Zygote ASLR: ro.knox.enhance.zygote.aslr != 1. Enhanced Zygote ASLR is DISABLED!
04-11 21:50:43.850 12749-12749/? E/SemAffinityControl: SemAffinityControl: registerfunction enter
04-11 21:50:43.894 11637-11637/? E/adbd: recv: OPEN 0000057a 00000000 001a:73 68 65 6C 6C 3A 61 6D 20 67 65 74 2D 63 75 72 72 65 6E 74 2D 75 73 65 72 00
04-11 21:50:43.983 11637-11637/? E/adbd: recv: OPEN 0000057b 00000000 002a:73 68 65 6C 6C 3A 64 75 6D 70 73 79 73 20 70 61 63 6B 61 67 65 20 63 6F 6D 2E 77 69 62 6F 6E 69 2E 61 75 74 6F 68 6F 6D 65 00
04-11 21:50:44.081 11637-11637/? E/adbd: recv: OPEN 0000057c 00000000 002a:73 68 65 6C 6C 3A 64 75 6D 70 73 79 73 20 70 61 63 6B 61 67 65 20 63 6F 6D 2E 77 69 62 6F 6E 69 2E 61 75 74 6F 68 6F 6D 65 00
04-11 21:50:44.172 11637-11637/? E/adbd: recv: OPEN 0000057d 00000000 0006:73 79 6E 63 3A 00
04-11 21:50:44.209 11637-11637/? E/adbd: recv: OPEN 0000057f 00000000 0022:6C 6F 63 61 6C 61 62 73 74 72 61 63 74 3A 63 6F 6D 2E 77 69 62 6F 6E 69 2E 61 75 74 6F 68 6F 6D 65 00
failed to connect to socket 'localabstract:com.wiboni.autohome': Connection refused
04-11 21:50:44.223 11637-11637/? E/adbd: recv: OPEN 00000581 00000000 0014:73 68 65 6C 6C 3A 70 6D 20 6C 69 73 74 20 75 73 65 72 73 00
04-11 21:50:44.912 12772-12772/? E/appproc: Enhanced Zygote ASLR: ro.knox.enhance.zygote.aslr != 1. Enhanced Zygote ASLR is DISABLED!
04-11 21:50:45.138 12772-12772/? E/SemAffinityControl: SemAffinityControl: registerfunction enter
04-11 21:50:47.231 11637-11637/? E/adbd: recv: OPEN 00000582 00000000 0028:73 68 65 6C 6C 3A 61 6D 20 66 6F 72 63 65 2D 73 74 6F 70 20 63 6F 6D 2E 77 69 62 6F 6E 69 2E 61 75 74 6F 68 6F 6D 65 00
04-11 21:50:47.234 11637-11637/? E/adbd: recv: OPEN 00000583 00000000 001a:73 68 65 6C 6C 3A 77 6D 20 64 69 73 6D 69 73 73 2D 6B 65 79 67 75 61 72 64 00
04-11 21:50:47.339 11637-11637/? E/adbd: recv: OPEN 00000584 00000000 0006:73 79 6E 63 3A 00
04-11 21:50:47.373 11637-11637/? E/adbd: recv: OPEN 00000585 00000000 008b:73 68 65 6C 6C 3A 61 6D 20 73 74 61 72 74 20 2D 6E 20 22 63 6F 6D 2E 77 69 62 6F 6E 69 2E 61 75 74 6F 68 6F 6D 65 2F 63 6F 6D 2E 77 69 62 6F 6E 69 2E 61 75 74 6F 68 6F 6D 65 2E 4D 61 69 6E 41 63 74 69 76 69 74 79 22 20 2D 61 20 61 6E 64 72 6F 69 64 2E 69 6E 74 65 6E 74 2E 61 63 74 69 6F 6E 2E 4D 41 49 4E 20 2D 63 20 61 6E 64 72 6F 69 64 2E 69 6E 74 65 6E 74 2E 63 61 74 65 67 6F 72 79 2E 4C 41 55 4E 43 48 45 52 00
04-11 21:50:47.474 12815-12815/? E/Zygote: isWhitelistProcess - Process is Whitelisted
04-11 21:50:47.474 12815-12815/? E/libpersona: scanKnoxPersonas
04-11 21:50:47.475 12815-12815/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
04-11 21:50:47.541 11637-11637/? E/adbd: recv: OPEN 00000586 00000000 000b:6A 64 77 70 3A 31 32 38 31 35 00
04-11 21:50:47.882 2916-3101/? E/MdnieScenarioControlService: Exception : java.io.FileNotFoundException: /sys/class/mdnie/mdnie/scenario (No such file or directory) , in : null , value : null , length : 0
04-11 21:50:47.958 12804-12804/? E/appproc: Enhanced Zygote ASLR: ro.knox.enhance.zygote.aslr != 1. Enhanced Zygote ASLR is DISABLED!
04-11 21:50:48.103 2916-3063/? E/WindowManager: win=Window{a621fd9 u0 com.android.settings/com.android.settings.Settings EXITING} destroySurfaces: appStopped=false win.mWindowRemovalAllowed=false win.mRemoveOnExit=false win.mViewVisibility=8, caller=com.android.server.wm.AppWindowToken.destroySurfaces:748 com.android.server.wm.AppWindowToken.destroySurfaces:732 com.android.server.wm.WindowState.onExitAnimationDone:5646 com.android.server.wm.AppWindowAnimator.stepAnimationLocked:517 com.android.server.wm.AppWindowToken.stepAppWindowsAnimation:1745
04-11 21:50:48.212 12804-12804/? E/SemAffinityControl: SemAffinityControl: registerfunction enter
04-11 21:50:48.985 12815-12827/com.wiboni.autohome E/MediaPlayerNative: error (1, -2147483648)
04-11 21:50:49.049 12815-12815/com.wiboni.autohome E/MediaPlayer: Error (1,-2147483648)
04-11 21:50:49.207 2916-3063/? E/WindowManager: win=Window{c2c0b4d u0 Splash Screen com.wiboni.autohome EXITING} destroySurfaces: appStopped=false win.mWindowRemovalAllowed=true win.mRemoveOnExit=true win.mViewVisibility=0, caller=com.android.server.wm.AppWindowToken.destroySurfaces:748 com.android.server.wm.AppWindowToken.destroySurfaces:732 com.android.server.wm.WindowState.onExitAnimationDone:5646 com.android.server.wm.WindowStateAnimator.stepAnimationLocked:553 com.android.server.wm.DisplayContent.lambda$-com_android_server_wm_DisplayContent_21578:476
04-11 21:50:49.289 12815-12815/com.wiboni.autohome E/MediaPlayerNative: isPlaying: called in state MEDIA_PLAYER_STATE_ERROR
04-11 21:50:49.608 2916-3101/? E/MdnieScenarioControlService: Exception : java.io.FileNotFoundException: /sys/class/mdnie/mdnie/scenario (No such file or directory) , in : null , value : null , length : 0









share|improve this question














I'm not sure if it's a hardware or software problem. I have written an application (fragment), which should display a video on the screen.



This works for many videos (see comment in the source code). I can not pick up the picture on my Hikvision surveillance camera (DS-2CD2063GO-I). It does not show the video (on the real hardware) and then reports the faulty access via a dialog.



Settings in the Hikvision:



Stream Type: Main Stream
Resolution: 1280 * 720P
Bit rate: Variable
Video quality: +++++
Frame rate: 20
Max. Bit rate 8192
Video encoding: H.265 (H.264 does not work either)
H.265 +: OFF
Profile: main profile
I-frame interval: 50
SVC: OFF


Access via the same address works via VLC.



source code:



package com.wiboni.autohome;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.VideoView;

public class MessageFragment extends Fragment {
//private static final String MOVIE_URL = "https://archive.org/download/ksnn_compilation_master_the_internet/ksnn_compilation_master_the_internet_512kb.mp4";
//private static final String MOVIE_URL = "rtsp://:@wowzaec2demo.streamlock.net:554/vod/mp4:BigBuckBunny_115k.mov";

//doesn't work:
private static final String MOVIE_URL = "rtsp://admin:12345678@192.168.178.42:554";
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_message,container,false);
}

@Override
public void onStart() {
VideoView mVideoView=(VideoView)getView().findViewById(R.id.mVideoView);
mVideoView.setVideoURI(Uri.parse(MOVIE_URL));
mVideoView.requestFocus();
mVideoView.start();
super.onStart();
}

}


Logs:



04-11 21:50:39.989 11637-11637/? E/adbd: recv: OPEN 00000578 00000000 0015:73 68 65 6C 6C 3A 6C 6F 67 63 61 74 20 2D 76 20 6C 6F 6E 67 00 
04-11 21:50:42.941 11637-11637/? E/adbd: recv: OPEN 00000579 00000000 0014:73 68 65 6C 6C 3A 70 6D 20 6C 69 73 74 20 75 73 65 72 73 00
04-11 21:50:43.619 12749-12749/? E/appproc: Enhanced Zygote ASLR: ro.knox.enhance.zygote.aslr != 1. Enhanced Zygote ASLR is DISABLED!
04-11 21:50:43.850 12749-12749/? E/SemAffinityControl: SemAffinityControl: registerfunction enter
04-11 21:50:43.894 11637-11637/? E/adbd: recv: OPEN 0000057a 00000000 001a:73 68 65 6C 6C 3A 61 6D 20 67 65 74 2D 63 75 72 72 65 6E 74 2D 75 73 65 72 00
04-11 21:50:43.983 11637-11637/? E/adbd: recv: OPEN 0000057b 00000000 002a:73 68 65 6C 6C 3A 64 75 6D 70 73 79 73 20 70 61 63 6B 61 67 65 20 63 6F 6D 2E 77 69 62 6F 6E 69 2E 61 75 74 6F 68 6F 6D 65 00
04-11 21:50:44.081 11637-11637/? E/adbd: recv: OPEN 0000057c 00000000 002a:73 68 65 6C 6C 3A 64 75 6D 70 73 79 73 20 70 61 63 6B 61 67 65 20 63 6F 6D 2E 77 69 62 6F 6E 69 2E 61 75 74 6F 68 6F 6D 65 00
04-11 21:50:44.172 11637-11637/? E/adbd: recv: OPEN 0000057d 00000000 0006:73 79 6E 63 3A 00
04-11 21:50:44.209 11637-11637/? E/adbd: recv: OPEN 0000057f 00000000 0022:6C 6F 63 61 6C 61 62 73 74 72 61 63 74 3A 63 6F 6D 2E 77 69 62 6F 6E 69 2E 61 75 74 6F 68 6F 6D 65 00
failed to connect to socket 'localabstract:com.wiboni.autohome': Connection refused
04-11 21:50:44.223 11637-11637/? E/adbd: recv: OPEN 00000581 00000000 0014:73 68 65 6C 6C 3A 70 6D 20 6C 69 73 74 20 75 73 65 72 73 00
04-11 21:50:44.912 12772-12772/? E/appproc: Enhanced Zygote ASLR: ro.knox.enhance.zygote.aslr != 1. Enhanced Zygote ASLR is DISABLED!
04-11 21:50:45.138 12772-12772/? E/SemAffinityControl: SemAffinityControl: registerfunction enter
04-11 21:50:47.231 11637-11637/? E/adbd: recv: OPEN 00000582 00000000 0028:73 68 65 6C 6C 3A 61 6D 20 66 6F 72 63 65 2D 73 74 6F 70 20 63 6F 6D 2E 77 69 62 6F 6E 69 2E 61 75 74 6F 68 6F 6D 65 00
04-11 21:50:47.234 11637-11637/? E/adbd: recv: OPEN 00000583 00000000 001a:73 68 65 6C 6C 3A 77 6D 20 64 69 73 6D 69 73 73 2D 6B 65 79 67 75 61 72 64 00
04-11 21:50:47.339 11637-11637/? E/adbd: recv: OPEN 00000584 00000000 0006:73 79 6E 63 3A 00
04-11 21:50:47.373 11637-11637/? E/adbd: recv: OPEN 00000585 00000000 008b:73 68 65 6C 6C 3A 61 6D 20 73 74 61 72 74 20 2D 6E 20 22 63 6F 6D 2E 77 69 62 6F 6E 69 2E 61 75 74 6F 68 6F 6D 65 2F 63 6F 6D 2E 77 69 62 6F 6E 69 2E 61 75 74 6F 68 6F 6D 65 2E 4D 61 69 6E 41 63 74 69 76 69 74 79 22 20 2D 61 20 61 6E 64 72 6F 69 64 2E 69 6E 74 65 6E 74 2E 61 63 74 69 6F 6E 2E 4D 41 49 4E 20 2D 63 20 61 6E 64 72 6F 69 64 2E 69 6E 74 65 6E 74 2E 63 61 74 65 67 6F 72 79 2E 4C 41 55 4E 43 48 45 52 00
04-11 21:50:47.474 12815-12815/? E/Zygote: isWhitelistProcess - Process is Whitelisted
04-11 21:50:47.474 12815-12815/? E/libpersona: scanKnoxPersonas
04-11 21:50:47.475 12815-12815/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
04-11 21:50:47.541 11637-11637/? E/adbd: recv: OPEN 00000586 00000000 000b:6A 64 77 70 3A 31 32 38 31 35 00
04-11 21:50:47.882 2916-3101/? E/MdnieScenarioControlService: Exception : java.io.FileNotFoundException: /sys/class/mdnie/mdnie/scenario (No such file or directory) , in : null , value : null , length : 0
04-11 21:50:47.958 12804-12804/? E/appproc: Enhanced Zygote ASLR: ro.knox.enhance.zygote.aslr != 1. Enhanced Zygote ASLR is DISABLED!
04-11 21:50:48.103 2916-3063/? E/WindowManager: win=Window{a621fd9 u0 com.android.settings/com.android.settings.Settings EXITING} destroySurfaces: appStopped=false win.mWindowRemovalAllowed=false win.mRemoveOnExit=false win.mViewVisibility=8, caller=com.android.server.wm.AppWindowToken.destroySurfaces:748 com.android.server.wm.AppWindowToken.destroySurfaces:732 com.android.server.wm.WindowState.onExitAnimationDone:5646 com.android.server.wm.AppWindowAnimator.stepAnimationLocked:517 com.android.server.wm.AppWindowToken.stepAppWindowsAnimation:1745
04-11 21:50:48.212 12804-12804/? E/SemAffinityControl: SemAffinityControl: registerfunction enter
04-11 21:50:48.985 12815-12827/com.wiboni.autohome E/MediaPlayerNative: error (1, -2147483648)
04-11 21:50:49.049 12815-12815/com.wiboni.autohome E/MediaPlayer: Error (1,-2147483648)
04-11 21:50:49.207 2916-3063/? E/WindowManager: win=Window{c2c0b4d u0 Splash Screen com.wiboni.autohome EXITING} destroySurfaces: appStopped=false win.mWindowRemovalAllowed=true win.mRemoveOnExit=true win.mViewVisibility=0, caller=com.android.server.wm.AppWindowToken.destroySurfaces:748 com.android.server.wm.AppWindowToken.destroySurfaces:732 com.android.server.wm.WindowState.onExitAnimationDone:5646 com.android.server.wm.WindowStateAnimator.stepAnimationLocked:553 com.android.server.wm.DisplayContent.lambda$-com_android_server_wm_DisplayContent_21578:476
04-11 21:50:49.289 12815-12815/com.wiboni.autohome E/MediaPlayerNative: isPlaying: called in state MEDIA_PLAYER_STATE_ERROR
04-11 21:50:49.608 2916-3101/? E/MdnieScenarioControlService: Exception : java.io.FileNotFoundException: /sys/class/mdnie/mdnie/scenario (No such file or directory) , in : null , value : null , length : 0






networking video android






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked yesterday









Josef SoeJosef Soe

134




134




migrated from superuser.com yesterday


This question came from our site for computer enthusiasts and power users.









migrated from superuser.com yesterday


This question came from our site for computer enthusiasts and power users.















  • Welcome to Super User! Unfortunately this post is on the wrong SE site because it is the wrong category. While you say it may be a "hardware problem", it does not belong on Super User for 2 big reasons. 1) It is mostly a programming related issue at this stage (so it mostly likely belongs on Stack Overflow) and because it seems this camera issue is for androids and not conventional computers, 2) it may belong on the "Android Enthusiasts" because its related to Androids if it truly was a hardware issue. However at this stage it is likely a programming library issue and belongs on S. Overflow.

    – El8dN8
    yesterday



















  • Welcome to Super User! Unfortunately this post is on the wrong SE site because it is the wrong category. While you say it may be a "hardware problem", it does not belong on Super User for 2 big reasons. 1) It is mostly a programming related issue at this stage (so it mostly likely belongs on Stack Overflow) and because it seems this camera issue is for androids and not conventional computers, 2) it may belong on the "Android Enthusiasts" because its related to Androids if it truly was a hardware issue. However at this stage it is likely a programming library issue and belongs on S. Overflow.

    – El8dN8
    yesterday

















Welcome to Super User! Unfortunately this post is on the wrong SE site because it is the wrong category. While you say it may be a "hardware problem", it does not belong on Super User for 2 big reasons. 1) It is mostly a programming related issue at this stage (so it mostly likely belongs on Stack Overflow) and because it seems this camera issue is for androids and not conventional computers, 2) it may belong on the "Android Enthusiasts" because its related to Androids if it truly was a hardware issue. However at this stage it is likely a programming library issue and belongs on S. Overflow.

– El8dN8
yesterday





Welcome to Super User! Unfortunately this post is on the wrong SE site because it is the wrong category. While you say it may be a "hardware problem", it does not belong on Super User for 2 big reasons. 1) It is mostly a programming related issue at this stage (so it mostly likely belongs on Stack Overflow) and because it seems this camera issue is for androids and not conventional computers, 2) it may belong on the "Android Enthusiasts" because its related to Androids if it truly was a hardware issue. However at this stage it is likely a programming library issue and belongs on S. Overflow.

– El8dN8
yesterday












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55647424%2fsometimes-connection-refused-androidvideoview%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55647424%2fsometimes-connection-refused-androidvideoview%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Cannot install PyQt5 The Next CEO of Stack OverflowCannot install tcpreplay 3.4.4cannot...

Kapp-Putsch Acontecimentos | Outros artigos | Menu de navegação

Why did early computer designers eschew integers? The Next CEO of Stack OverflowWhat register...