Giter Site home page Giter Site logo

cs305-2022-qa's People

Contributors

charlottee67 avatar

Watchers

 avatar

cs305-2022-qa's Issues

appear simultaneously

There is a requirement that danmakus are correctly sent and appear simultaneously on each client.
If there are some delay for example about 100ms, is this allowed?

WS版本中sever

想请问一下为什么WS版本中sever端的websocket只send一次就会自动关闭,有什么解决方案嘛

Access to XMLHttpRequest has been blocked by CORS policy

macOS Monterey 12.3.1

直接在谷歌浏览器以及Safari中访问http版本server端口:127.0.0.1:8765,可以正常获取页面内容,但是轮询报错:

截屏2022-04-25 15 50 43

一开始以为是XMLHttpRequest CORS policy的问题,下了个插件,不行。

截屏2022-04-25 15 53 01

继续搜索,怀疑是是file协议不被支持,于是使用--disable-web-security启动chrome,仍然出错。

截屏2022-04-25 15 54 33

尝试使用vscode live server启动html页面(从127.0.0.1:5500访问8765),还是不对。

请问这个是什么造成的?

关于类`DNSHandler`的问题

请问能否解释一下DNSHandler类中handle方法需要做什么以及有什么功能?这个注释里面的塑料英语让人十分得confusing。

关于库和时间同步的问题

  1. 请问能否使用flask?
  2. 请问对于视频的播放,假设用户A播放到第60s,用户B播放到第30s,此时A发了弹幕,B应该是30s后显示还是立刻显示?
  3. video的话,需要做不同视频的区分吗?

关于报告的问题

请问报告中需要提供有关功能实现的截图吗?
还是说提供步骤就可以。。
感觉同时开好几个窗口很难截图也很麻烦。。。而且我css完全写糊了,缩小窗口的话所有dom元素会乱跑

另外,打包的时候需要把视频一起传上去吗

假二次元顺便问一句头像的出处

中途打开的client

如果在client A 已经发送了一些弹幕后,有个client B才刚刚打开,连接到了server,client A 发送的那些弹幕还需要在B上发出来吗(不考虑bonus)

关于最后结果测试

请问一下两个版本都需要多个窗口都能同步吗还是http只需要自己发自己看,ws才需要多个同步

框架代码直接蜜汁报错

作业框架中有一个这个代码,每次运行输入后必定报错(此时还没运行到任何NotImplementedError以及需要实现的部分):

image

报错信息如下所示:

image

请问该问题应该如何解决?

Python3.10 get_event_loop: DeprecationWarning

QQ图片20220417140759

用Python3.10来运行这个WS的python文件,会报DeprecationWarning,但是程序不会终止,弹幕系统的功能可以正常运行。

想问一下,有没有什么好的解决办法,让它不报DeprecationWarning。

补充:
批注 2022-04-17 141152
官方文档里似乎是说,这种get_event_loop的方式就快被改成get_running_loop了。
我目前的解决是,将这条语句改成如下,不知是否符合要求:(run了以后感觉似乎可行?求明确)
批注 2022-04-17 141332

请问对于websocket的访问失败

当我访问
就会出现Failed to open a WebSocket connection: invalid Connection header: keep-alive.
You cannot access a WebSocket server directly with a browser. You need a WebSocket client.

控制台报错:Failed to load resource: the server responded with a status of 426 (Upgrade Required)
请问这样该怎么办呢?ws版本9.1

关于bonus的video部分的问题

请问bonus的视频部分是要求我们:真正的能够播放视频(这样的话时间应该是视频的相对时间,还要考虑到快进 暂停等) 还是 实现带有时间戳的历史弹幕显示功能即可(这个时间是从打开该页面开始计算)
如果是需要真的能够播放视频,需要把视频源存放在服务器吗?还是直接放在客户端。

WS basic实现的具体要求

在WS中,实现到哪种程度算是完成了basic的要求?

  1. 如果我同时开两个网页,它们可以互相收到,但是如果我先开一个网页,发了弹幕,然后再开第二个网页,它不会收到在它打开之前第一个网页发的弹幕。
  2. 如果我同时开两个网页,它们可以互相收到;如果我先开一个网页,发了弹幕,然后再开第二个网页,它可以收到在它打开之前第一个网页发的弹幕。

要求的程度是1还是2呢?

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.