Coder Social home page Coder Social logo

Comments (13)

AnnoyingVillager avatar AnnoyingVillager commented on June 11, 2024

Same issue. Local m3u8 servers doesn't work. I've even tried a live m3u8 but it doesn't work as well.

from fabric-webstreamer.

AnnoyingVillager avatar AnnoyingVillager commented on June 11, 2024

I set up an M3U8 server to stream through OBS and play it normally when using potplayer, but when I paste the url into the game, it keeps black. Does this have anything to do with coding patterns and color patterns? (Using Google Translate may cause grammatical errors) image image

我试了湖南卫视的直播流,也是黑屏,http://219.151.31.38/liveplay-kk.rtxapp.com/live/program/live/hnwshd/4000000/mnf.m3u8

from fabric-webstreamer.

mindstorm38 avatar mindstorm38 commented on June 11, 2024

My implementation of M3U8 decoder might not be compliant with the standard, I don't know how much it's different from Twitch M3U8...

from fabric-webstreamer.

5ur3z avatar 5ur3z commented on June 11, 2024

Same issue. Local m3u8 servers doesn't work. I've even tried a live m3u8 but it doesn't work as well.

Local m3u8 servers will not work for sure,but when I use public network ip it still keeps black..

from fabric-webstreamer.

AnnoyingVillager avatar AnnoyingVillager commented on June 11, 2024

Same issue. Local m3u8 servers doesn't work. I've even tried a live m3u8 but it doesn't work as well.

Local m3u8 servers will not work for sure,but when I use public network ip it still keeps black..

Why do local m3u8 servers not work? I've tested it on chrome by implementing video.js in html files, and it worked fine. Local m3u8 servers work as the same as LAN servers, and it should have the same effect as a public server at your local network.

from fabric-webstreamer.

5ur3z avatar 5ur3z commented on June 11, 2024

Same issue. Local m3u8 servers doesn't work. I've even tried a live m3u8 but it doesn't work as well.

Local m3u8 servers will not work for sure,but when I use public network ip it still keeps black..

Why do local m3u8 servers not work? I've tested it on chrome by implementing video.js in html files, and it worked fine. Local m3u8 servers work as the same as LAN servers, and it should have the same effect as a public server at your local network.

emm看来我刚才说的不太严谨(
但是无论是本地还是公网IP搭建的m3u8服务器,都是黑屏
我找到一个可以被识别的m3u8链接,或许是格式的问题,只有这一小部分能被播放
https://live-hls.jstv.com/livezhuzhan/jsgg.m3u8?upt=4383b1d62510710360

from fabric-webstreamer.

AnnoyingVillager avatar AnnoyingVillager commented on June 11, 2024

Same issue. Local m3u8 servers doesn't work. I've even tried a live m3u8 but it doesn't work as well.

Local m3u8 servers will not work for sure,but when I use public network ip it still keeps black..

Why do local m3u8 servers not work? I've tested it on chrome by implementing video.js in html files, and it worked fine. Local m3u8 servers work as the same as LAN servers, and it should have the same effect as a public server at your local network.

emm看来我刚才说的不太严谨( 但是无论是本地还是公网IP搭建的m3u8服务器,都是黑屏 我找到一个可以被识别的m3u8链接,或许是格式的问题,只有这一小部分能被播放 https://live-hls.jstv.com/livezhuzhan/jsgg.m3u8?upt=4383b1d62510710360

按理来说都是h264编码,都是AAC格式音频,我从河南卫视直播页面提取出来的m3u8地址就可以播放,但是不知道为什么我自己的就不行,本地服务器的图片可以正常显示,但是m3u8就不行,我甚至去找了twitch上一篇讲hls的文章照着做都没用。一开始我还以为是我用iis搭建服务器的问题,后来发现nginx也不行。我把河南卫视直播的.ts片段下载下来放到自己的服务器上,用提取的m3u8依然播放不了,真的搞不懂是什么问题了

from fabric-webstreamer.

5ur3z avatar 5ur3z commented on June 11, 2024

My implementation of M3U8 decoder might not be compliant with the standard, I don't know how much it's different from Twitch M3U8...

Could you tell us How is the m3u8 playback function implemented?
May be this is the source of the issue.

from fabric-webstreamer.

mindstorm38 avatar mindstorm38 commented on June 11, 2024

I'm using an external library, as you can see in the following section:

private MediaPlaylist requestPlaylistBlocking(URI uri) throws IOException {
try {
HttpRequest request = HttpRequest.newBuilder(uri).GET().timeout(Duration.ofSeconds(5)).build();
HttpResponse<Stream<String>> res = this.res.getHttpClient()
.send(request, HttpResponse.BodyHandlers.ofLines());
if (res.statusCode() == 200) {
return this.hlsParser.readPlaylist(res.body().iterator());
} else {
throw new IOException("HTTP request failed, status code: " + res.statusCode());
}
} catch (InterruptedException e) {
throw new IOException(e);
}
}

It's this library: https://github.com/carlanton/m3u8-parser

from fabric-webstreamer.

5ur3z avatar 5ur3z commented on June 11, 2024

This problem has been solved!
Use linux to build an SRS server after using obs push stream can be, OBS push stream to choose x264 encoder

from fabric-webstreamer.

5ur3z avatar 5ur3z commented on June 11, 2024

But there is another serious bug

When I accidentally entered the wrong link into the game, it would cause the game to crash. After entering the game again, it still crashed

I typed “tail -f./objs/srs.log”

from fabric-webstreamer.

AnnoyingVillager avatar AnnoyingVillager commented on June 11, 2024

But there is another serious bug

When I accidentally entered the wrong link into the game, it would cause the game to crash. After entering the game again, it still crashed

I typed “tail -f./objs/srs.log”

To fix this, simply disable the mod, enter the game, replace the screen with minecraft blocks and reload the mod.

from fabric-webstreamer.

mindstorm38 avatar mindstorm38 commented on June 11, 2024

When I accidentally entered the wrong link into the game, it would cause the game to crash. After entering the game again, it still crashed

I believe this issue was fixed for 1.19 release of the mod. 64a8c0c

My current issue is that it's really complicated for me to maintain the mod for multiple minecraft versions

from fabric-webstreamer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.