| The development of education informatization has promoted changes in traditional teaching concepts and teaching methods.With the occurrence of the Covid-19,online learning has attracted much attention,and various application needs have become more urgent.As an important form of online learning,online reading has gradually become a trend.However,as a kind of deep reading and individual behavior,reading e-books need to show knowledge content from multiple angles and dimensions.The existing reading software is mainly for personal leisure reading,which is difficult to meet the requirements of collaborative reading and teaching interaction for students to read e-books.Hence,the thesis designs and implements a real-time interactive reading system based on cloud platform,which integrates audio and video technology into the scene of learners reading e-books,provides the function of students’ collaborative reading,andmeets the relevant needs of the school for textbook learning.In order to improve the efficiency and quality of learning,reading should be developed in the orientation of openness,immersion,interaction and collaboration.According to the system functional requirements and corresponding index requirements,the system mainly solves three technical problems: parsing and rendering of e-books,loading speed of the first screen of ebooks and real-time audio and video communication.The most important and basic function of e-book reading system is e-book parsing and rendering.Before e-book rendering,the most important is e-book pagination algorithm.Due to the different sizes of terminal devices,different font sizes set by users,and each page may have to display pictures and other contents,it is difficult to e-books into fixed pages.This system realizes the parsing and rendering function for epub e-books.When the user adjusts the font size,it can dynamically paginate and display the page.Another problem of e-book parsing and rendering is the speed of parsing and rendering.The loading speed of the first screen of e-book greatly affects the user’s perception.This system adopts appropriate performance optimization schemes for different application scenarios in the system to the system response time and the loading speed of the first screen of e-book,so as to improve the user’s experience.Aiming at the two requirements of video frame rate and delay of real-time audio and video communication to realize P2 P audio and video communication,this thesis use mesh architecture of webrtc audio and video communication to realize P2 P audio and video communication,and designs and implements network traversal server and signaling server in P2 P audio and video architecture in detail.In order to find the peer,the system designs a reading room.When users read the same e-book online,they will join the same reading room,learners can make P2 P audio and video calls.In order to improve the scalability of the system,the system carries out load balancing on the signaling server.At the same time,it also causes the problem of how users in the same reading room but assigned to different server processescommunicate.According to the system scenario,a scheme based on redis publish subscribe mode is designed to solve the problem.Finally,based on the system implementation,the system test environment is built to test the system.The first step,the function of each functional module of the system is tested,and then the performance of the front-end page response time,e-book first screen loading speed,video frame rate,audio and video delay and system concurrency are tested.The test results show that the system can meet the expected demand. |