Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No image for my camera. Example camera works #18

Open
snudel opened this issue Jan 26, 2024 · 0 comments
Open

No image for my camera. Example camera works #18

snudel opened this issue Jan 26, 2024 · 0 comments

Comments

@snudel
Copy link

snudel commented Jan 26, 2024

Hi

Describe the bug
I created a clear android project in Android studio using api version 34.
Copy pasted everything and your example stream showed up.

Pasted my camera link.
Nothing shows up
The link looks like this:
http://cam5.home.tilsch.it:880/cgi-bin/CGIStream.cgi?cmd=GetMJStream&usr=XXX&pwd=XXX

I tried removing all stuff from the url by masking the below url and fetching the content via php
http://debian.home.tilsch.it:1155/cam5.php

Both urls are not shopwing the picture in your code.
so it is not the format of the url
also I can reach and see the content via chrome. It's also not the connection.

The logcat shows initially
Skip drawing, canvas is null or bitmap is not ready yet

later it cycles through
src.length=4096 srcPos=0 dst.length=1000000 dstPos=999640 length=4096
disconnected with http://cam5.home.tilsch.it:880/cgi-bin/CGIStream.cgi?cmd=GetMJStream&usr=XXX&pwd=XXX
tagSocket(65) with statsTag=0xffffffff, statsUid=-1

No errors or further messages than that.

There is nothing more than your example in the project:
`public class MainActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    MjpegView viewer = (MjpegView) findViewById(R.id.mjpegview);
    viewer.setMode(MjpegView.MODE_FIT_WIDTH);
    viewer.setAdjustHeight(true);
    viewer.setSupportPinchZoomAndPan(false);
    String url = "http://cam5.home.tilsch.it:880/cgi-bin/CGIStream.cgi?cmd=GetMJStream&usr=XXX&pwd=XXX";
    viewer.setUrl(url);
    //viewer.setUrl("http://185.18.130.194:8001/mjpg/video.mjpg");
    viewer.startStream();

}

}`
I also tried a public camera which also showed the picture.

Do you have any idea left for my by any chance?

Thanks
Michael

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant