Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what is the mimeType used for the videos? #146

Open
rajmylav opened this issue Apr 16, 2021 · 5 comments
Open

what is the mimeType used for the videos? #146

rajmylav opened this issue Apr 16, 2021 · 5 comments

Comments

@rajmylav
Copy link

what is the mimeType used for the videos?

@phunkyfish
Copy link
Member

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

@rajmylav
Copy link
Author

Do you know which web video player supports video/mp2t

@phunkyfish
Copy link
Member

All of them

@rajmylav
Copy link
Author

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
Copy link
Member

phunkyfish commented Apr 17, 2021

Why would you open an issue here for that?

This addon is for the kodi media player.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants