zoukankan      html  css  js  c++  java
  • RTSP协议视频流媒体播放器EasyPlayer-RTSP-OCX接口文档API接口函数定义

    视频流媒体服务器在安防、互联网、教育、录播、IPTV等多个领域实现了广泛应用,EasyPlayer是一款精炼、高效、稳定的流媒体播放器,其中EasyPlayerPro已经实现了H265编码视频的播放。

    EasyPlayer还有RTSP版本,能够集成到各平台进行视频播放,接口调用比较简单,本文就为大家介绍一下EasyPlayer-RTSP的接口函数定义。

    函数说明:打开网络流

    int Start(char* szURL, HWND hShowWnd, RENDER_FORMAT eRenderFormat, int rtpovertcp, const char *username, const char *password, int bHardDecode, MediaSourceCallBack callback=NULL, void *userPtr=NULL) ;
    

    参数说明:
    szURL:RTSP地址;hShowWnd:句柄;,eRenderFormat:渲染模式;rtpovertcp:连接方式;bHardDecode:1=硬解,0=软解

    typedef enum __RENDER_FORMAT
    {
    	DISPLAY_FORMAT_YV12		=		842094169,
    	DISPLAY_FORMAT_YUY2		=		844715353,
    	DISPLAY_FORMAT_UYVY		=		1498831189,
    	DISPLAY_FORMAT_A8R8G8B8	=		21,
    	DISPLAY_FORMAT_X8R8G8B8	=		22,
    	DISPLAY_FORMAT_RGB565	=		23,
    	DISPLAY_FORMAT_RGB555	=		25,
    	DISPLAY_FORMAT_RGB24_GDI=		26
    }RENDER_FORMAT;
    

    函数说明:配置

    void Config(int nFrameCache,  BOOL bPlaySound, BOOL bShowToScale = TRUE, BOOL  bShowStatisticInfo = FALSE);
    

    参数说明:nFrameCache:缓存大小,bPlaySound:是否播放声音

    函数说明:设置OSD

    void SetOSD(int show, EASY_PALYER_OSD osd);
    

    参数说明:Show 0=不显示,1=显示

    typedef struct tagEASY_PALYER_OSD 
    {
     	char	stOSD[1024];
     	DWORD	alpha;		//0-255
     	DWORD	color;		//RGB(0xf9,0xf9,0xf9)
     	DWORD	shadowcolor;		//RGB(0x4d,0x4d,0x4d) 全为0背景透明
     	RECT	rect;		//OSD基于图像右上角显示区域
     	int			size;		//just D3D Support 
    }EASY_PALYER_OSD;
  • 相关阅读:
    【Pandas最好用的函数】
    【自动下单外挂】
    【爬取新浪股票实时数据--tushare】
    linux入门:设置代理服务器
    nginx入门(3):静态服务搭建
    nginx入门(2):配置文档结构
    nginx入门(1):开启,关闭,重新加载配置文件
    SELinux的开启和关闭
    centos7 播放网页flash视频
    索引最左前缀匹配原则
  • 原文地址:https://www.cnblogs.com/EasyNVR/p/13370683.html
Copyright © 2011-2022 走看看