Skip to content

Video.js player does not play video when clicked? #8134

Answered by amtins
vuongdanghuy asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @vuongdanghuy

videojs-http-streaming is bundled with videojs so you don't need to included videojs-http-streaming. This should work:

<!DOCTYPE html>
<html>
    <head>
        <meta charset=utf-8 />
        <title> My live video </title>
        <link href="https://unpkg.com/video.js/dist/video-js.css" rel="stylesheet">
    </head>
    <body>
        <h1>My live video - simple HLS player </h1>
        <video-js id="video_id" class="vjs-default-skin" controls preload="auto" width="640" height="360">
            <source src="http://server_ip:server_port/playlist.m3u8" type="application/x-mpegURL">
        </video-js>
        <script src="https://unpkg.com/video.js/dist/video.js"></script>

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@vuongdanghuy
Comment options

@vuongdanghuy
Comment options

Answer selected by vuongdanghuy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants