Comments (6)
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.
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.
If your issue is resolved, you can close this issue at any time
from animeez.
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.
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.
Owner
Thanks alot! Will try it. I will close issue now.
from animeez.
Related Issues (16)
- Code mistake HOT 3
- TypeError: Cannot read properties of null (reading 'results') HOT 2
- How i can change language subtitles ? HOT 1
- not runing HOT 5
- Streaming not working error 404 HOT 2
- Sorry, posted by mistake.
- VIDEO PLAYER NOT WORKING HOT 4
- Ded
- When I'm trying to watch one piece the player is not working
- Error on website when trying to stream a video HOT 3
- Data Undefined - When running locally (403 Forbidden) HOT 7
- Working on a new better ui for website HOT 1
- Streaming Anime fails on Heroku and localhost HOT 3
- Hello Sir I want asking HOT 3
- can i use other database HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from animeez.