• 大小: 7.79MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-26
  • 语言: 其他
  • 标签: 网页  支持rtsp  http  

资源简介

网页实时视频播放器,支持rtsp,http,等多种流媒体协议,支持录像,截图,暂停,所有功能带有网页demo.

资源截图

代码片段和文件信息

// MainDialog.cpp : implementation file
//

#include “stdafx.h“
#include “MyActiveX.h“
#include “MainDialog.h“




// CMainDialog dialog

IMPLEMENT_DYNAMIC(CMainDialog CDialog)

CMainDialog::CMainDialog(CWnd* pParent /*=NULL*/)
: CDialog(CMainDialog::IDD pParent)
{
// m_bFullScreen = 0;
/* if(!m_backPNG.IsNull()) m_backPNG.Destroy();
m_backPNG.Load(L“backpic.png“);  */
}

CMainDialog::~CMainDialog()
{
/* if(!m_backPNG.IsNull()) 
 m_backPNG.Destroy();*/
}

void CMainDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);

//DDX_Control(pDX IDC_PROGRESSBAR m_ProgressBar);
}


BEGIN_MESSAGE_MAP(CMainDialog CDialog)
ON_WM_CREATE()
// ON_WM_LBUTTONDBLCLK()
// ON_WM_PAINT()
//ON_WM_PAINT()
ON_WM_PAINT()
END_MESSAGE_MAP()


// CMainDialog message handlers

int CMainDialog::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CDialog::OnCreate(lpCreateStruct) == -1)
return -1;
return 0;
}

void CMainDialog::OnPaint()
{
CPaintDC dc(this); // device context for painting
CRect rect;
    GetClientRect(rect);
   // dc.FillSolidRect(rectRGB(000));  //设置为黑色背景
BITMAP bmp;
HBITMAP hBmp = ::LoadBitmap(::AfxGetInstanceHandle()MAKEINTRESOURCE(IDB_BITMAP1));
::Getobject(hBmp sizeof(bmp) &bmp);
HDC hDC = ::CreateCompatibleDC(NULL);
Selectobject(hDC hBmp);
::StretchBlt(dc.m_hDCrect.leftrect.top rect.right - rect.left rect.bottom - rect.tophDC 0 0 bmp.bmWidthbmp.bmHeightSRCCOPY);
Deleteobject(hBmp);
Deleteobject(hDC);
CDialog::OnPaint();
}

//void CMainDialog::OnLButtonDblClk(UINT nFlags CPoint point)
//{
// // TODO: 在此添加消息处理程序代码和/或调用默认值
// //CDialog::OnLButtonDblClk(nFlags point);   
//  
//    m_bFullScreen=!m_bFullScreen; // 设置全屏显示标志   
//     //一种更好的全屏显示   
//    LONG style = ::GetWindowLong(this->m_hWndGWL_style);   
//    if(m_bFullScreen)//全屏显示   
//    {   
//        //用MFC隐藏系统任务栏   
//        CWnd * wnd = FindWindow(L“Shell_TrayWnd“NULL);   
//        wnd->SetWindowPos(NULL0000SWP_HIDEWINDOW);   
//  
//        m_hWndParent=::GetParent(m_hWnd);      
//        ::ShowWindow(m_hWndParentSW_HIDE);      
//        ::SetParent(m_hWndNULL);      
//        style &= ~(WS_DLGframe | WS_THICKframe);   
//        SetWindowLong(this->m_hWndGWL_style style);   
//        this->ShowWindow(SW_SHOWMAXIMIZED);   
//        //CRect rect;   
//        //this->GetWindowRect(&rect);   
//        //::SetWindowPos((this->m_hWndHWND_NOTOPMOSTrect.left-1 rect.top-1 rect.right-rect.left + 3 rect.bottom-rect.top + 3 SWP_frameCHANGED);   
//        int   nScreenWidth=GetSystemMetrics(SM_CXSCREEN);      
//        int   nScreenHeight=GetSystemMetrics(SM_CYSCREEN);   
//        ::SetWindowPos(this->m_hWndHWND_NOTOPMOST00 nScreenWidthnScreenHeight SWP_frameCHANGED);   
//    }   
//    else  
//    {   
//  
//       //用MFC显示系统任务栏   
//        CWnd * wnd = FindWindow(L“Shell_TrayWnd“NULL);   
//        wn

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       2476  2010-12-20 19:46  MyActiveX\include\vlc\deprecated.h

     文件      13879  2010-12-20 19:46  MyActiveX\include\vlc\libvlc.h

     文件       6013  2010-12-20 19:46  MyActiveX\include\vlc\libvlc_events.h

     文件      15346  2010-12-20 19:46  MyActiveX\include\vlc\libvlc_media.h

     文件       3639  2010-12-20 19:46  MyActiveX\include\vlc\libvlc_media_discoverer.h

     文件       2959  2010-12-20 19:46  MyActiveX\include\vlc\libvlc_media_library.h

     文件       6540  2010-12-20 19:46  MyActiveX\include\vlc\libvlc_media_list.h

     文件       6162  2010-12-20 19:46  MyActiveX\include\vlc\libvlc_media_list_player.h

     文件      41305  2010-12-28 21:55  MyActiveX\include\vlc\libvlc_media_player.h

     文件       2414  2010-12-20 20:04  MyActiveX\include\vlc\libvlc_structures.h

     文件       2122  2010-12-20 19:46  MyActiveX\include\vlc\libvlc_version.h

     文件      12627  2010-12-20 19:46  MyActiveX\include\vlc\libvlc_vlm.h

     文件      29750  2010-12-20 19:46  MyActiveX\include\vlc\plugins\vlc_about.h

     文件       6614  2010-12-20 19:46  MyActiveX\include\vlc\plugins\vlc_access.h

     文件       1923  2010-12-20 19:46  MyActiveX\include\vlc\plugins\vlc_acl.h

     文件      13317  2010-12-20 19:46  MyActiveX\include\vlc\plugins\vlc_aout.h

     文件       2792  2010-12-20 19:46  MyActiveX\include\vlc\plugins\vlc_aout_mixer.h

     文件      23474  2010-12-20 19:46  MyActiveX\include\vlc\plugins\vlc_arrays.h

     文件       1178  2010-12-20 19:46  MyActiveX\include\vlc\plugins\vlc_art_finder.h

     文件       1909  2010-12-20 19:46  MyActiveX\include\vlc\plugins\vlc_atomic.h

     文件       1303  2010-12-20 19:46  MyActiveX\include\vlc\plugins\vlc_avcodec.h

     文件       4646  2010-12-20 19:46  MyActiveX\include\vlc\plugins\vlc_bits.h

     文件      11913  2010-12-20 19:46  MyActiveX\include\vlc\plugins\vlc_block.h

     文件      14144  2010-12-20 19:46  MyActiveX\include\vlc\plugins\vlc_block_helper.h

     文件       4113  2010-12-20 19:46  MyActiveX\include\vlc\plugins\vlc_charset.h

     文件       8386  2010-12-20 19:46  MyActiveX\include\vlc\plugins\vlc_codec.h

     文件      28809  2010-12-20 19:46  MyActiveX\include\vlc\plugins\vlc_common.h

     文件       6537  2010-12-20 19:46  MyActiveX\include\vlc\plugins\vlc_config.h

     文件      12984  2010-12-20 19:46  MyActiveX\include\vlc\plugins\vlc_configuration.h

     文件      11829  2010-12-20 19:46  MyActiveX\include\vlc\plugins\vlc_config_cat.h

............此处省略143个文件信息

评论

共有 条评论