Method for realizing cross-platform point-to-point (P2P) video chat

一种实现跨平台的p2p视频聊天的方法

Abstract

本发明公开一种实现跨平台的P2P视频聊天的方法,包括下述步骤:分析与操作系统有关的部分,通过宏定义的方式区别各个操作系统之间的差异性,实现跨操作系统;找出与硬件平台有关的部分,将其抽象成不同的接口,并将接口封装成动态链接库,程序运行时,扫描各个接口所调用函数在相应的硬件平台上有没有具体的实现函数,当有实现函数时加载该接口对应的动态链接库及其实现函数,否则不加载,从而实现跨平台。本发明创作能够在windows、Linux、嵌入式Linux等操作系统间通用,且能应用于各种基于嵌入式Linux系统的平台,解决嵌入式系统之间以及嵌入式系统和PC机之间的跨平台通讯。
The invention discloses a method for realizing a cross-platform point-to-point (P2P) video chat, which comprises the following steps of: analyzing parts related to operating systems, and distinguishing differences among the operating systems in a macro definition mode to realize cross-operating system; finding parts related to a hardware platform out, abstracting the parts into different interfaces and encapsulating the interfaces into a dynamic link library; and scanning whether functions called by each interface have specific realizing functions on the corresponding hardware platform or notwhen a program runs, if the realizing functions exist, loading the dynamic link library corresponding to the interface and the realizing functions thereof, and otherwise unloading so as to realize cross platform. The method is universally used in windows, Linux, embedded Linux operating systems and the like, can be applied to various embedded Linux system-based platforms, and solves the problem of cross-platform communication between embedded systems and between the embedded system and a personal computer (PC).

Claims

Description

Topics

Download Full PDF Version (Non-Commercial Use)

Patent Citations (2)

    Publication numberPublication dateAssigneeTitle
    CN-101193129-AJune 04, 2008中兴通讯股份有限公司Generation method and device for authentication user name
    CN-1491013-AApril 21, 2004深圳市中兴通讯股份有限公司Broadband cut-in user managing method

NO-Patent Citations (1)

    Title
    钟继坤: "跨平台开源软件基础框架的应用研究", 《中国优秀硕士学位论文全文数据库》, 30 November 2009 (2009-11-30), pages 4 - 24

Cited By (6)

    Publication numberPublication dateAssigneeTitle
    CN-102169708-AAugust 31, 2011深圳市融创天下科技发展有限公司Audio and video play system, method, mobile terminal and player
    CN-102984502-AMarch 20, 2013天津爱迪尔软件开发有限公司Cross-platform device based on visual data transmission
    CN-103105169-AMay 15, 2013广东翼卡车联网服务有限公司一种使车载导航仪导航板与地图软件兼容的方法和系统
    CN-103105169-BJune 01, 2016广东翼卡车联网服务有限公司一种使车载导航仪导航板与地图软件兼容的方法和系统
    CN-104539869-AApril 22, 2015佛山络威网络技术有限公司Video call service method
    CN-104836980-AAugust 12, 2015烽火通信科技股份有限公司System and method for implementing video calls based on intelligent terminals and IP (Internet Protocol) cameras