Stremio / stremio-addon-sdk

🧙 A Node.js SDK for creating and publishing Stremio add-ons
https://www.stremio.com/addon-sdk
MIT License
605 stars 158 forks source link

HSL(m3u8) and mp4 not playing #236

Closed yoanhg421 closed 9 months ago

yoanhg421 commented 9 months ago

Hello, I just started learning streamio add-on development, I got a test app running with catalog, meta, , stream, and search, however this is a little scrapper app for learning purposes, and the source videos are in HSL. I can't seem to get them to play at all when clicking on the stream.

I added a test stream to all videos just to test it's a source problem but no luck., this is the test hsl file https://devstreaming-cdn.apple.com/videos/streaming/examples/img_bipbop_adv_example_fmp4/master.m3u8

It plays fine on a web browser, same for the source videos, but streamio gets stuck on the loading screen with the logo pulse.

Please help. using MacOS to test.

Also mp4s don't seem to play either.

this is what a stream look like for me. I don't see any id requirements for streams.

 {
    title: "hls-test",
    url: "https://archive.org/download/ninja_warrior_sasuke_us/Ninja%20Warrior%2001.mp4"
  }
yoanhg421 commented 9 months ago

OK. so the streams work fine on StremioWeb but don't load with the MacOS App I'm guessing its an app error thing. all the other add-ons I have installed work fine, but it look like they are using torrents.

Will test on my AndroidTV, where I really need it to work.

yoanhg421 commented 9 months ago

I'm not sure what was wrong. I was using typescript in the project and wouldn't work. after removing all of it, now it seems to play fine. very strange. types from @types/stremio-addon-sdk have errors anyways.