kamranayub / picam-viewer

A HLS stream viewer for Picam
MIT License
23 stars 8 forks source link

Doesn't work BUT ... #1

Closed lippih closed 4 years ago

lippih commented 6 years ago

... I think it's a problem from picam! The player doesn't play the HLS Stream from picam, but it plays other streams from the net. I tried also VLC, to see if I have some errors with my server; VLC has no problems to play the HLS Stream from picam. So the combination videojs-contrib-hls and picam doesn't work, perhaps someone can tell me why? Perhaps its a problem with the index.m3u8 generated from picam?

kamranayub commented 6 years ago

What browser are you using to test? I use Chrome and haven't had issues streaming Picam with the viewer. You can also open the developer tools in Chrome and see if there are any errors. Maybe it's just a bad path.

On Sat, Mar 10, 2018, 13:37 lippih notifications@github.com wrote:

... I think it's a problem from picam! The player doesn't play the HLS Stream from picam, but it plays other streams from the net. I tried also VLC, to see if I have some errors with my server; VLC has no problems to play the HLS Stream from picam. So the combination videojs-contrib-hls and picam doesn't work, perhaps someone can tell me why? Perhaps its a problem with the index.m3u8 generated from picam?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kamranayub/picam-viewer/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AAiaazSMP60YTVCdcJ_E9oXUO7DwUqGLks5tdCuQgaJpZM4SlaJ_ .

hazardary commented 4 years ago

Hi, I also have the same problem. I can view the stream correctly followed your post but the webpage doesn't working. I have tried chrome and edge and ie. Inspect the webpage, I found:

I know nothing about js and I don't know how to tell if it grab the right path. Also, how can you redirect the web address http://babypi.local/ to this address? I have to use http://babypi.local/picam-viewer/index.html to see the player.

kamranayub commented 4 years ago

Actually it sounds like you may not have configured nginx correctly, the root should be pointing to your picam-viewer path, so the URL should just be http://babypi.local not http://babypi.local/picam-viewer

I can double check the guide, it should be configuring it that way unless you missed a command or the guide missed something. But yeah that's my guess!

Also I noticed I can no longer use the shortcut DNS babypi.local, I have been using the IP address for the past year or two. I can add that note as well.

hazardary commented 4 years ago

Thanks a lot. I got it fixed. I changed root /var/www/html to root /var/www/html/picam-viewer

in nginx default config. I think you didn't mention this in "Adding a web player" section. Great tutorial. Thanks again.

kamranayub commented 4 years ago

Perfect, I will add this to the guide! Appreciate it!

On Sun, Nov 10, 2019, 12:07 PM hazardary notifications@github.com wrote:

Thanks a lot. I got it fixed. I changed root /var/www/html to root /var/www/html/picam-viewer

in nginx default config. I think you didn't mention this in "Adding a web player" section. Great tutorial. Thanks again.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kamranayub/picam-viewer/issues/1?email_source=notifications&email_token=AAEJU26NW6E4QQI2DG4KGMTQTBEWZA5CNFSM4EUVUJ72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDVC75Q#issuecomment-552218614, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEJU256XHEFZWX4XF6NM23QTBEWZANCNFSM4EUVUJ7Q .