ossrs / oryx

Oryx(SRS Stack) is an all-in-one, out-of-the-box, and open-source video solution for creating online video services, including live streaming and WebRTC, on the cloud or through self-hosting.
https://ossrs.io/oryx
MIT License
448 stars 97 forks source link

play error #144

Closed huihuiyule closed 8 months ago

huihuiyule commented 8 months ago

Describe the bug A clear and concise description of what the bug is.

v5.10.11 Desribe your SRS Stack version here. docker run -it --rm -v /home/live/srs-stack/data:/data -p 2022:2022/tcp -p 443:2443/tcp -p 1935:1935/tcp -p 1985:1985/tcp -p 80:8080/tcp -p 8000:8000/udp -p 10080:10080/udp -it --name srs-stack ossrs/srs-stack:v5.10.11

To Reproduce Steps to reproduce the behavior:

  1. When accessing via https://, the displayed address is 127.0.0.1 and it is followed by http.
  2. Certificate application shows a 500 error.
  3. The player page fails to load, unable to play.
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots image

Additional context Add any other context about the problem here.

TRANS_BY_GPT4

huihuiyule commented 8 months ago

image

huihuiyule commented 8 months ago

image Player Page Notification Refused to execute script from 'https://live.xxxxxx.xxx/players/js/jquery-1.12.2.min.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled. srs_player.html:1 Refused to execute script from 'https://live.xxxxxx.xxx/players/js/mpegts-1.7.3.min.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled. srs_player.html:1 Refused to execute script from 'https://live.xxxxxx.xxx/players/js/dash-v4.5.1.all.min.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.

The SRS backend is normal, but it is the SRS stack that reports an error like this

os: Ubuntu 22.04.3 LTS

TRANS_BY_GPT4

winlinvip commented 8 months ago

Thank you for your feedback. The issue is due to missing some JavaScript files, which results in a 404 error, identified as text/plain.

Fixed in v5.10.16

TRANS_BY_GPT4

huihuiyule commented 8 months ago

When accessing via https://, the displayed address is 127.0.0.1 and it is followed by http.

image image image

winlinvip commented 8 months ago

Please do not use the Console in the SRS Stack to play streams. Instead, use the link in the SRS Stack to play streams. This is because the Console is a simple control panel of SRS, which will be fully implemented in the SRS Stack in the future.

Should use the link in the SRS Stack like bellows:

image

TRANS_BY_GPT4

huihuiyule commented 8 months ago

SkeyeWebPlayer.js xgplayer.js

image