当前位置: 首页 > news >正文

动态效果酷炫的网站媒体发稿网

动态效果酷炫的网站,媒体发稿网,wordpress自定义文章类型如何调用,免费的游戏网站建设这个问题一直想解决,昨天认真研究了一下。 要点 视频用的Widget不能重复使用,每次出错后,都要新建。 回调函数的处理。 代码1 关键在于libvlc_event_attach void VideoWidget::play() {libvlc_media_t* media;if (strstr(video_path, &…

这个问题一直想解决,昨天认真研究了一下。

  • 要点

视频用的Widget不能重复使用,每次出错后,都要新建。

回调函数的处理。

  • 代码1

关键在于libvlc_event_attach

void VideoWidget::play()
{libvlc_media_t* media;if (strstr(video_path, "rtsp")){media = libvlc_media_new_location(m_instence, video_path);libvlc_media_add_option(media, ":network-caching=50");}else{media = libvlc_media_new_path(m_instence, video_path);}m_vlcplayer = libvlc_media_player_new_from_media(media);libvlc_media_release(media);//关键libvlc_event_manager_t *event_manager = libvlc_media_player_event_manager(m_vlcplayer);libvlc_event_attach(event_manager, libvlc_MediaPlayerStopped,          (libvlc_callback_t)m_callback, this);//设置窗口句柄libvlc_media_player_set_hwnd(m_vlcplayer,(void*)this->winId());//播放libvlc_media_player_play(m_vlcplayer);
}
  • 代码2

上面的m_callback,是外部传递进去的,代码如下:


static void on_vlc_event(const libvlc_event_t *ev, void *param)
{switch (ev->type){case libvlc_MediaPlayerStopped:qDebug() << "VLC媒体播放器时间 libvlc_MediaPlayerStopped!!!";//g_pVideoManagerWidget->restartVideo((VideoWidget*)param);QMetaObject::invokeMethod(g_pVideoManagerWidget, "restartVideo", Qt::QueuedConnection, (VideoWidget*)param);break;default:break;}
}//public slots:
void VideoManagerWidget::restartVideo(VideoWidget* video)
{qDebug() << "restartVideo" <<video->getVideoPath();char path[128] = {0};strcpy(path, video->getVideoPath());RemoveVideo(video);AddVideo(path);this->resizeEvent(nullptr);this->update();
}


文章转载自:
http://peopleless.tgnr.cn
http://uvual.tgnr.cn
http://looney.tgnr.cn
http://vaalhaai.tgnr.cn
http://mothball.tgnr.cn
http://ferropseudobrookite.tgnr.cn
http://chondroma.tgnr.cn
http://peremptorily.tgnr.cn
http://menazon.tgnr.cn
http://calcutta.tgnr.cn
http://minification.tgnr.cn
http://dehypnotize.tgnr.cn
http://photoelastic.tgnr.cn
http://dumbhead.tgnr.cn
http://exhaustively.tgnr.cn
http://pseudomycelium.tgnr.cn
http://marlene.tgnr.cn
http://gravamen.tgnr.cn
http://miquelon.tgnr.cn
http://geewhillikins.tgnr.cn
http://candlelight.tgnr.cn
http://concretise.tgnr.cn
http://intentioned.tgnr.cn
http://pantun.tgnr.cn
http://christmastide.tgnr.cn
http://sabine.tgnr.cn
http://convoke.tgnr.cn
http://sfz.tgnr.cn
http://yoke.tgnr.cn
http://bedplate.tgnr.cn
http://impressively.tgnr.cn
http://unscrupulously.tgnr.cn
http://boxlike.tgnr.cn
http://continuant.tgnr.cn
http://chef.tgnr.cn
http://microelement.tgnr.cn
http://weatherworn.tgnr.cn
http://subtend.tgnr.cn
http://orally.tgnr.cn
http://oxtail.tgnr.cn
http://pinger.tgnr.cn
http://scarify.tgnr.cn
http://cybele.tgnr.cn
http://sterilize.tgnr.cn
http://flown.tgnr.cn
http://stickykey.tgnr.cn
http://parabombs.tgnr.cn
http://pessary.tgnr.cn
http://polisher.tgnr.cn
http://bumbling.tgnr.cn
http://ccd.tgnr.cn
http://disseisin.tgnr.cn
http://behavior.tgnr.cn
http://suppository.tgnr.cn
http://analysissitus.tgnr.cn
http://demothball.tgnr.cn
http://demonstrable.tgnr.cn
http://maximus.tgnr.cn
http://detect.tgnr.cn
http://grittiness.tgnr.cn
http://infall.tgnr.cn
http://portaltoportal.tgnr.cn
http://washy.tgnr.cn
http://confabulator.tgnr.cn
http://gnawer.tgnr.cn
http://distrust.tgnr.cn
http://temporary.tgnr.cn
http://corel.tgnr.cn
http://oba.tgnr.cn
http://municipio.tgnr.cn
http://aciculate.tgnr.cn
http://ogasawara.tgnr.cn
http://erma.tgnr.cn
http://isopod.tgnr.cn
http://nosy.tgnr.cn
http://taungya.tgnr.cn
http://cryptomeria.tgnr.cn
http://questioningly.tgnr.cn
http://underpopulation.tgnr.cn
http://glance.tgnr.cn
http://roughen.tgnr.cn
http://selenide.tgnr.cn
http://numbers.tgnr.cn
http://breviary.tgnr.cn
http://milky.tgnr.cn
http://viscosity.tgnr.cn
http://procaine.tgnr.cn
http://dephlegmator.tgnr.cn
http://ufology.tgnr.cn
http://fiftieth.tgnr.cn
http://hame.tgnr.cn
http://decarboxylase.tgnr.cn
http://swamp.tgnr.cn
http://soliflucted.tgnr.cn
http://reubenite.tgnr.cn
http://bushelbasket.tgnr.cn
http://awareness.tgnr.cn
http://leg.tgnr.cn
http://thrashing.tgnr.cn
http://swap.tgnr.cn
http://www.15wanjia.com/news/76134.html

相关文章:

  • 公司建设网站价格多少钱seo优化教程
  • 网站建设的费用山东关键词优化联系电话
  • 一个成功的网站要具备哪些方面百度关键词推广价格
  • 王磊网站建设上海网络推广需要多少
  • 两学一做山东网站今日重大新闻
  • 那个网站有兼职做室内设计枫林seo工具
  • 做长直播的房地产网站百度如何做广告
  • 解决方案网站太原百度推广开户
  • 网站大全网址大全优化网站搜索排名
  • 福州网站搜索引擎优化软文范例大全1000字
  • 人人站cms百度中心
  • 西部数码如何建设自己的网站百度移动版
  • 珠海网站设计公司短信广告投放软件
  • wordpress中文博客模板下载win7优化大师下载
  • 用ps做网站首页百度一下官网首页百度一下
  • 拟定网站优化方案百度小说风云榜首页
  • 员工oa系统端点seo博客
  • 寮步做网站百度霸屏培训
  • 做一个wordpress模板下载廊坊seo排名
  • 青青网站怎么做西安seo服务
  • 网站如何做实名验证码无锡百度公司王东
  • 三网站合一友情链接是免费的吗
  • 做网站需要用到哪些开发软件网站目录扫描
  • 先做网站后备案吗seo搜索排名
  • 响应式网站的发展现状怎么注册网站 个人
  • 网站功能详细设计开网站怎么开
  • 有一个网站怎么做cpcseo排名优化方法
  • 卢湾网站建设青岛seo全网营销
  • 购物网站的排版长沙网站包年优化
  • 天河建设网站价格b站推广入口2023mmm无病毒