导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页
    1. 主页
    2. vejoker
    3. 最佳
    V
    • 资料
    • 关注 0
    • 粉丝 0
    • 我的积分 878
    • 主题 9
    • 帖子 17
    • 最佳 4
    • 群组 0

    vejoker 发布的最佳帖子

    • 回复: 分享QT中引入tplayer,未能渲染到weight中,有没有大佬能改写源码能在QT中使用

      【已解决:可以显示渲染到屏幕中】

      自己挖的坑还得自己解决😢

      按照以上步骤配置好环境,引入该有的库文件

      在main.cpp中,设置以下内容

      #include "mainwindow.h"
      
      #include <QApplication>
      
      #include <QDebug>
      #include <tplayer.h>
      #include "User/tpmanager.h"
      #include <QLabel>
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
          MainWindow w;
      
          //可以注释掉这个MainWindow w窗体,使它不可见。或者给他透明度,我这里给的是透明度
          w.setWindowOpacity(0.5);//这句不起作用,冗余代码
          w.show();
      
          //绘制内容在tplayer视频上
          QLabel* label = new QLabel();
          label->setText("hello");
          label->setStyleSheet("font-size:20px;color:#ff0000");
          label->move(400,460);
          label->show();
      
      
          qInfo() << "hello" ;
      
      
          TPlayer* tplayer = TPlayerCreate(CEDARX_PLAYER);
          TPlayerSetNotifyCallback(tplayer,myCallback,NULL);
          TPlayerSetDisplayRect(tplayer,0,0,800,640);//设置位置大小
          if(TPlayerSetDataSource(tplayer,"http://192.168.0.123:9999/explorer?path=upload%2F2025-03%2F4.mp4",NULL) != 0)
          {
              printf("TPlayerSetDataSource() return fail.\n");
          }
          else
          {
              printf("TPlayerSetDataSource() end\n");
          }
          if(TPlayerPrepare(tplayer)!= 0)
          {
              printf("TPlayerPrepare return fail.\n");
          }else{
              printf("TPlayerPrepare end\n");
          }
          if(TPlayerStart(tplayer) != 0)
          {
              printf("TPlayerStart() return fail.\n");
          }else{
              printf("started.\n");
          }
      
      
          return a.exec();
      }
      
      

      效果图片:
      捕获.JPG

      发布在 GUI
      V
      vejoker
    • wifimanager的is_ap_connected显示有误

      1743660387471.png
      上图,获取到ip的,也能联网。但是通过官方wifimanager的示例wifi_get_connection_info_test显示disconnected的状态
      1743660639842.png
      上面是源码

      请教大佬,如何获取wifi正确有效的连接状态?

      发布在 Linux
      V
      vejoker
    • T133-S3芯片,XR829wifi蓝牙芯片,蓝牙传输数据大小问题

      XR829芯片有蓝牙传输大小限制吗? client 写请求回调中,数据超过20个字节就无法接收了。
      捕获.JPG

      发布在 Wireless & Analog Series
      V
      vejoker
    • 回复: QT时钟程序报不能加载.so库

      @huanian 大佬,请问您的qtenv.sh脚本内容是什么。我也遇到相关qt程序开机自启不能加载so库的情况。

      发布在 MR Series
      V
      vejoker
    • 1 / 1