Giter VIP home page Giter VIP logo

Comments (6)

numberwolf avatar numberwolf commented on May 28, 2024

I have test play with an external url by h265web successed.

Will be success with this external url:
https://findermp.video.qq.com/251/20302/stodownload?encfilekey=Cvvj5Ix3eezXKmVNfShJRUicJJMYPEroic00808a7aXgqxLficlB5eFicLcRadFRvLjb5tEsOhvukXSeW3Hh9gt9Ogc06BKaByGrNZht0VI0MYCob2zAV6NF9tnl2MEjq88qxxUVtbf6qibOibJWicURREOyNLiabYG1960ia3ymzrrWiaBf3VUOiaPNbwMGy3UgHzkQQO5&adaptivelytrans=0&bizid=1023&dotrans=937&hy=SH&idx=1&m=dfbe64968ef75c4dcadddaf38fb372dc&token=x5Y29zUxcibA8OUawCN97XjTILgaC1Nrib24vgIRVrSyajowopDZ5MiakoJYPVyibs8v&taskid=2021012781544

Example (Modify demo's index.html):
code:

var token = "base64:QXV0aG9yOmNoYW5neWFubG9uZ3xudW1iZXJ3b2xmLEdpdGh1YjpodHRwczovL2dpdGh1Yi5jb20vbnVtYmVyd29sZixFbWFpbDpwb3JzY2hlZ3QyM0Bmb3htYWlsLmNvbSxRUTo1MzEzNjU4NzIsSG9tZVBhZ2U6aHR0cDovL3h2aWRlby52aWRlbyxEaXNjb3JkOm51bWJlcndvbGYjODY5NCx3ZWNoYXI6bnVtYmVyd29sZjExLEJlaWppbmcsV29ya0luOkJhaWR1";
        var type = "mp4";
        var url = "https://findermp.video.qq.com/251/20302/stodownload?encfilekey=Cvvj5Ix3eezXKmVNfShJRUicJJMYPEroic00808a7aXgqxLficlB5eFicLcRadFRvLjb5tEsOhvukXSeW3Hh9gt9Ogc06BKaByGrNZht0VI0MYCob2zAV6NF9tnl2MEjq88qxxUVtbf6qibOibJWicURREOyNLiabYG1960ia3ymzrrWiaBf3VUOiaPNbwMGy3UgHzkQQO5&adaptivelytrans=0&bizid=1023&dotrans=937&hy=SH&idx=1&m=dfbe64968ef75c4dcadddaf38fb372dc&token=x5Y29zUxcibA8OUawCN97XjTILgaC1Nrib24vgIRVrSyajowopDZ5MiakoJYPVyibs8v&taskid=2021012781544";

        const PLAYER_CORE_TYPE_DEFAULT = 0; // 默认内核 recommand!!!!!!
        const PLAYER_CORE_TYPE_CNATIVE = 1; // 测试内核

        var config = {
            type: type,
            player: "glplayer",
            width: 960,
            height: 540,
            accurateSeek : true,
            token : token,
            extInfo : {
                core : PLAYER_CORE_TYPE_DEFAULT,
                // core : PLAYER_CORE_TYPE_CNATIVE,
                coreProbePart : 0.4,
                moovStartFlag : true,
                readyShow : true,
                ignoreAudio : 0
            }
        };
        makeH265webjs(url, config);

For others external urls, if you play failed, maybe cross-origin error.

from h265web.js.

Agrejus avatar Agrejus commented on May 28, 2024

I tried the test link and I do not see any video, only audio. Is that intended?

from h265web.js.

numberwolf avatar numberwolf commented on May 28, 2024

I tried the test link and I do not see any video, only audio. Is that intended?

It's HEVC codec, can not play video by browers.

Try play it with h265web, and if you set option readyShow to true, you need to wait until you see the cover image, then you can start play.

from h265web.js.

numberwolf avatar numberwolf commented on May 28, 2024

here cover image

image

from h265web.js.

Agrejus avatar Agrejus commented on May 28, 2024

I will give that a try, thank you

from h265web.js.

numberwolf avatar numberwolf commented on May 28, 2024

I will give that a try, thank you

If you failed again, you can show me your code and suggest the console log with external url.

from h265web.js.

Related Issues (20)

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.