kodi-pvr / pvr.stalker

A PVR Client that connects Kodi to Stalker Middleware
GNU General Public License v2.0
40 stars 64 forks source link

what is the mimeType used for the videos? #146

Open rajmylav opened 3 years ago

rajmylav commented 3 years ago

what is the mimeType used for the videos?

phunkyfish commented 3 years ago

That would depend on the source. If it’s live a TS (mpegts) stream the type is video/mp2t.

rajmylav commented 3 years ago

Do you know which web video player supports video/mp2t

phunkyfish commented 3 years ago

All of them

rajmylav commented 3 years ago

ok let me be more specific,

I am trying to stream video

image

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>Video.js Sandbox</title>
    <link href="//vjs.zencdn.net/7.10.2/video-js.min.css" rel="stylesheet">
    <script src="//vjs.zencdn.net/7.10.2/video.min.js"></script>
</head>
<body>
<div style="background-color:#eee; border: 1px solid #777; padding: 10px; margin-bottom: 20px; font-size: .8em; line-height: 1.5em; font-family: Verdana, sans-serif;">
    <p>You can use /sandbox/ for writing and testing your own code. Nothing in /sandbox/ will get checked into the repo, except files that end in .example (so don't edit or add those files). To get started make a copy of index.html.example and rename it to index.html.</p>
    <pre>cp sandbox/index.html.example sandbox/index.html</pre>
    <pre>npm run start</pre>
    <pre>open http://localhost:9999/sandbox/index.html</pre>
</div>

<video-js
        id="vid1"
        controls
        preload="auto"
        width="640"
        height="264">
    <source src="http://m2.websecureme.net:80/1QzXhQcuQZJ4vYC/CXjsAuUIN2/102475" >

    <p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="https://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a></p>
</video-js>

<script>
    var options = {};

    var player = videojs('vid1', options, function onPlayerReady() {
        videojs.log('Your player is ready!');

        // In this context, `this` is the player that was created by Video.js.
        this.play();

        // How about an event listener?
        this.on('ended', function() {
            videojs.log('Awww...over so soon?!');
        });
    });

</script>

</body>
</html>

It's playing fine on vlc and stalker client but not on web browser

phunkyfish commented 3 years ago

Why would you open an issue here for that?

This addon is for the kodi media player.