stefaniuk / docker-streaming-server

Live streaming server
165 stars 56 forks source link

including docker volume = "Specified “type” attribute of “application/x-mpegURL” is not supported in browser?" #4

Open laurencefass opened 6 years ago

laurencefass commented 6 years ago

update:

to make this work as advertised I have commented out the server volume from the compose file as it appears to be the cause of everything that follows. any insight into the problem would be very much appreciated.

#    volumes:
#      - ../../mounts/var/lib/streaming:/var/lib/streaming

IF I LEAVE VOLUMES MOUNTED....

i cant run the live video.js stream in the browser i dont know if its a video.js or docker-streaming-server issue yet.

request URL: http://192.168.99.100/hls/test.m3u8

server response:

<html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/1.13.8</center>
</body>
</html>

the server is definitely not replying to request for file...

$curl 192.168.99.100:8080/hls/test.m3u8
curl: (52) Empty reply from server

starting the server with

cd documents/examples
docker-compose up -d

error reported in firefox and chrome.

Specified “type” attribute of “application/x-mpegURL” is not supported. Load of media resource http://192.168.99.100:8080/hls/test.m3u8 failed.
192.168.99.100:9999
VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) The media could not be loaded, either because the server or network failed or because the format is not supported. 
Object { code: 4, message: "The media could not be loaded, either because the server or network failed or because the format is not supported." }
video.min.js:1:29532

output of the streaming-server each time i load the browser.


2018/04/10 11:27:11 [alert] 12#12: *139 fcntl(O_DIRECT) "/var/lib/streaming/hls/test.m3u8" failed (22: Invalid argument), client: 192.168.99.1, server: , request: "GET /hls/test.m3u8 HTTP/1.1", host: "192.168.99.100:8080", referrer: "http://192.168.99.100:9999/"
2018/04/10 11:27:11 [crit] 12#12: *139 io_submit("/var/lib/streaming/hls/test.m3u8") failed (22: Invalid argument) while sending response
to client, client: 192.168.99.1, server: , request: "GET /hls/test.m3u8 HTTP/1.1", host: "192.168.99.100:8080", referrer: "http://192.168.99.100:9999/"

any help appreciated. thanks.

laurencefass commented 6 years ago

according to nginx.conf, server root = /var/lib/streaming/

and /var/lib/streaming/hls/test.m3u8 is available while streaming

but i can't access http://192.168.99.100:8080/hls/test.m3u8 from the browser.

should this file be accessible to the browser via http? what about to the rtmp server?

?

laurencefass commented 6 years ago

also cant see the stream in VLC media player at

rtmp://192.168.99.100/live/test

Is that the correct rmtp address?

laurencefass commented 6 years ago

the following source works fine in the same page as broken player so i guess the browser is not the problem.

<video id="player2" class="video-js vjs-default-skin" width="640" height="360" controls>
    <source src="https://d2zihajmogu5jn.cloudfront.net/bipbop-advanced/bipbop_16x9_variant.m3u8" type="application/x-mpegURL" />
</video>

following screenshot shows no response from http server...

streaming error