Giter Site home page Giter Site logo

Comments (3)

pkjy avatar pkjy commented on May 26, 2024 1

可以直接传bytes过来的,demo里面的服务端也是通过二进制传给前端的。前端可以直接通过websocket接收数据然后调用播放就好了。我demo里面给的就是通过websocket接收数据并播放。

websocket内的数据截图,你可以直接去我的在线demo网页里,按F12打开控制台查看。

image

from pcm-player.

ericjiajia avatar ericjiajia commented on May 26, 2024

from pcm-player.

pkjy avatar pkjy commented on May 26, 2024

我这能正常播放,这个报错看着像是没成功加载我的js文件(https://unpkg.com/pcm-player),你试试看这个文件能正常访问吗?如果不行就打开科学上网试试。
我主动拦截掉这个js文件能复现你的这个报错,多半是js资源加载失败导致的。

from pcm-player.

Related Issues (19)

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.