Giter Site home page Giter Site logo

Comments (6)

dhvitOP avatar dhvitOP commented on July 26, 2024

For html you can use default video tag with controls attribute of html. But the vidstreaming video links doesn't let you use it by cloudflare protection. Here is the simple example -

<video controls autoplay>
<source src="Your video URL here"  type="video/mp4" />
</video>

from animeez.

dhvitOP avatar dhvitOP commented on July 26, 2024

Though video tag player cannot run m3u8 video files. For that you have to use some plugins like videojs which can parse it. (But plugins like videojs would use their ui player not default player)

from animeez.

dhvitOP avatar dhvitOP commented on July 26, 2024

If your issue is resolved, you can close this issue at any time

from animeez.

adgsenpai avatar adgsenpai commented on July 26, 2024

I know your guys did some magic when rendering the video/anime with the respective headers and referrer URL. Lets just say I will use VideoJS. Can you show me how to render any one anime on a blank canvas with these restrictions. Just asking for a demo which I can understand?

from animeez.

dhvitOP avatar dhvitOP commented on July 26, 2024

ok first of all, we haven't touched referer url while getting video link. we have just used m3u8 files in every anime (not mp4) because even we can't access mp4 files. we have used source_bk array from response of gogoplay and sometimes have used source array's m3u8 url if source_bk one doesn't work.

here is a clear example for playing a m3u8 file using videojs -

          <source type="application/x-mpegURL" src=" m3u8 url here "></source>
</video> 
<script>
  <script src="https://vjs.zencdn.net/ie8/ie8-version/videojs-ie8.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/videojs-contrib-hls/5.14.1/videojs-contrib-hls.js"></script>
<script src="https://vjs.zencdn.net/7.2.3/video.js"></script>
var player = videojs('media');
player.play();
    player.on('error', function() {
  player.src({ type: 'application/x-mpegURL', src: "Backup m3u8 url here like source array one" });
});
</script>```

I know its a bit confusing but check api.js scrapeMP4 function and watch.ejs html file in views folder more deeply.

from animeez.

adgsenpai avatar adgsenpai commented on July 26, 2024

Owner

Thanks alot! Will try it. I will close issue now.

from animeez.

Related Issues (16)

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.