前端使用uni app实现直播
浏览:340 次

1.前端拉流,app端直接使用视频标签,src填写数据流地址;微信小程序使用组件。
拉流效应

如果没有后端合作,您需要设置自己的直播服务器()或下载一个工具(此方法尚未尝试,此处不再解释)。
2.前端流

直接自定义流接口名称、地址+端口号/直播/自定义接口名称;live是流服务器的控制器名称。
流媒体效果

使用VLC工具进行测试。
下载地址:

拉流效应

如果没有后端合作,您需要设置自己的直播服务器()或下载一个工具(此方法尚未尝试,此处不再解释)。

直接自定义流接口名称、地址+端口号/直播/自定义接口名称;live是流服务器的控制器名称。
流媒体效果

使用VLC工具进行测试。
下载地址:
Template: main
Session:
Session type: db
[unisoft__unisoft] Array ( [permission] => [human_valid] => [passport] => )
Loaded Class:
Zend_Db: /web/unisoft/web.system/Zend/Db.php
Zend_Db_Adapter_Abstract: /web/unisoft/web.system/Zend/Db/Adapter/Abstract.php
Zend_Db_Adapter_Mysqli: /web/unisoft/web.system/Zend/Db/Adapter/Mysqli.php
Zend_Db_Profiler: /web/unisoft/web.system/Zend/Db/Profiler.php
Zend_Db_Statement_Interface: /web/unisoft/web.system/Zend/Db/Statement/Interface.php
Zend_Db_Statement: /web/unisoft/web.system/Zend/Db/Statement.php
Zend_Db_Statement_Mysqli: /web/unisoft/web.system/Zend/Db/Statement/Mysqli.php
Zend_Registry: /web/unisoft/web.system/Zend/Registry.php
Zend_Db_Table_Abstract: /web/unisoft/web.system/Zend/Db/Table/Abstract.php
Zend_Session_Abstract: /web/unisoft/web.system/Zend/Session/Abstract.php
Zend_Session: /web/unisoft/web.system/Zend/Session.php
Zend_Session_SaveHandler_Interface: /web/unisoft/web.system/Zend/Session/SaveHandler/Interface.php
Zend_Session_SaveHandler_DbTable: /web/unisoft/web.system/Zend/Session/SaveHandler/DbTable.php
Zend_Exception: /web/unisoft/web.system/Zend/Exception.php
Zend_Session_Exception: /web/unisoft/web.system/Zend/Session/Exception.php
Zend_Db_Select: /web/unisoft/web.system/Zend/Db/Select.php
Zend_Db_Table_Select: /web/unisoft/web.system/Zend/Db/Table/Select.php
Zend_Db_Expr: /web/unisoft/web.system/Zend/Db/Expr.php
Zend_Db_Table_Rowset_Abstract: /web/unisoft/web.system/Zend/Db/Table/Rowset/Abstract.php
Zend_Db_Table_Rowset: /web/unisoft/web.system/Zend/Db/Table/Rowset.php
Zend_Db_Table_Row_Abstract: /web/unisoft/web.system/Zend/Db/Table/Row/Abstract.php
Zend_Db_Table_Row: /web/unisoft/web.system/Zend/Db/Table/Row.php
HTTP: /web/unisoft/web.system/class/cls_http.inc.php
Zend_Session_Namespace: /web/unisoft/web.system/Zend/Session/Namespace.php
system_setting_class: /web/unisoft/web.core/system/setting.php
Zend_Cache: /web/unisoft/web.system/Zend/Cache.php
Zend_Cache_Backend: /web/unisoft/web.system/Zend/Cache/Backend.php
Zend_Cache_Backend_Interface: /web/unisoft/web.system/Zend/Cache/Backend/Interface.php
Zend_Cache_Backend_ExtendedInterface: /web/unisoft/web.system/Zend/Cache/Backend/ExtendedInterface.php
site_ip_class: /web/unisoft/web.core/site/ip.php
Zend_Validate_Interface: /web/unisoft/web.system/Zend/Validate/Interface.php
Zend_Validate: /web/unisoft/web.system/Zend/Validate.php
Zend_Loader: /web/unisoft/web.system/Zend/Loader.php
Zend_Validate_Abstract: /web/unisoft/web.system/Zend/Validate/Abstract.php
TPL: /web/unisoft/web.system/class/cls_template.inc.php
Savant3_Error: /web/unisoft/web.system/Savant3/Error.php
package_main_class: /web/unisoft/web.core/package/main.php
iot_hardware_main_class: /web/unisoft/web.core/iot/hardware/main.php
iot_hardware_category_class: /web/unisoft/web.core/iot/hardware/category.php
site_service_main_class: /web/unisoft/web.core/site/service/main.php
site_article_main_class: /web/unisoft/web.core/site/article/main.php
site_article_extra_class: /web/unisoft/web.core/site/article/extra.php
site_keyword_exclude_class: /web/unisoft/web.core/site/keyword/exclude.php
system_content_class: /web/unisoft/web.core/system/content.php
site_article_attachment_class: /web/unisoft/web.core/site/article/attachment.php
site_article_category_class: /web/unisoft/web.core/site/article/category.php
site_solution_main_class: /web/unisoft/web.core/site/solution/main.php
Database [main master]
[ Log time: 1788054272.0966 ] [ Expend time: 0.021265983581543 ] Connect DB
Cache
[ Log time: 1788054272.111 ] Backend:
[ Log time: 1788054272.1117 ] [ Expend time: 0.000685 ] Get Cache: settings_ef8c7cef1f80fbad45b9ee480e92d03c, result type: array
[ Log time: 1788054272.112 ] [ Expend time: 0.000228 ] Get Cache: crond, result type: boolean
[ Log time: 1788054272.1246 ] [ Expend time: 0.000774 ] Get Cache: model_7ec70ee0360b8a929eb442cbc38dfd27, result type: array
[ Log time: 1788054272.1282 ] [ Expend time: 0.002898 ] Get Cache: model_eebc36c56f6ebd5dc315368f04ea4f0d, result type: array
[ Log time: 1788054272.1295 ] [ Expend time: 0.000579 ] Get Cache: model_87644abf3b1d496cbf4b1667422d7d51, result type: array
[ Log time: 1788054272.1311 ] [ Expend time: 0.000628 ] Get Cache: site_service_list_7e49c82f3098f580fb5928807f5e466d, result type: array
[ Log time: 1788054272.1411 ] [ Expend time: 0.002038 ] Get Cache: site_keyword_exclude_b2c64c08a5048d87cc4904022274c118, result type: array
[ Log time: 1788054272.1494 ] [ Expend time: 0.002657 ] Get Cache: site_keyword_exclude_b2c64c08a5048d87cc4904022274c118, result type: array
[ Log time: 1788054272.155 ] [ Expend time: 0.001783 ] Get Cache: site_keyword_exclude_b2c64c08a5048d87cc4904022274c118, result type: array
[ Log time: 1788054272.1661 ] [ Expend time: 0.002035 ] Get Cache: site_keyword_exclude_b2c64c08a5048d87cc4904022274c118, result type: array
[ Log time: 1788054272.178 ] [ Expend time: 0.000364 ] Get Cache: 393fff217238d975171dcc89e570416f, result type: boolean
[ Log time: 1788054272.1813 ] [ Expend time: 0.001473 ] Save Cache: 393fff217238d975171dcc89e570416f, result type: integer
Database [core master]
[ Log time: 1788054272.1156 ] [ Expend time: 0.0016050338745117 ] Connect DB
[ Log time: 1788054272.1165 ] [ Expend time: 0.00069499015808105 ] SELECT `z_ip`.* FROM `z_ip` WHERE (ip = '216.73.217' AND visit_time = 1788054240) LIMIT 1
[ Log time: 1788054272.1182 ] [ Expend time: 0.0017330646514893 ] UPDATE z_ip SET visit_count = visit_count + 1 WHERE ip = '216.73.217' and visit_time = 1788054240
[ Log time: 1788054272.1191 ] [ Expend time: 0.00087785720825195 ] DELETE FROM z_ip WHERE visit_count < 120 and visit_time <= 1788054060
[ Log time: 1788054272.1199 ] [ Expend time: 0.0006709098815918 ] SELECT SUM(visit_count) AS `n0` FROM `z_ip` WHERE ((ip = '216.73.217') AND is_delete = 0)
[ Log time: 1788054272.1365 ] [ Expend time: 0.0033669471740723 ] SELECT `z_article`.* FROM `z_article` WHERE (no = '20a3a6ebf4e16571') LIMIT 1
[ Log time: 1788054272.1383 ] [ Expend time: 0.0010321140289307 ] SELECT `z_article_extra`.* FROM `z_article_extra` WHERE (is_delete = 0 AND article_id IN(6238))
[ Log time: 1788054272.1532 ] [ Expend time: 0.0009150505065918 ] SELECT `z_article_extra`.* FROM `z_article_extra` WHERE (article_id = 6238) LIMIT 1
[ Log time: 1788054272.161 ] [ Expend time: 0.0010881423950195 ] SELECT `z_article_attachment`.* FROM `z_article_attachment` WHERE (article_id = 6238 AND is_delete = 0) ORDER BY `id` DESC
[ Log time: 1788054272.164 ] [ Expend time: 0.0028688907623291 ] SELECT `z_article`.* FROM `z_article` WHERE (is_delete = 0 AND category_id = 55 AND is_enable = 1) ORDER BY `id` DESC LIMIT 5
[ Log time: 1788054272.1798 ] [ Expend time: 0.0017580986022949 ] UPDATE z_article SET view_count = view_count + 1 WHERE id = 6238
[ Log time: 1788054272.183 ] [ Expend time: 0.00086712837219238 ] SELECT `z_article_category`.* FROM `z_article_category` WHERE (id = 55) LIMIT 1
[ Log time: 1788054272.184 ] [ Expend time: 0.00083184242248535 ] SELECT `z_article_category`.* FROM `z_article_category` WHERE (id = 21) LIMIT 1
[ Log time: 1788054272.1858 ] [ Expend time: 0.00085091590881348 ] SELECT `z_solution`.* FROM `z_solution` WHERE (name = 'live_platform') LIMIT 1
Escape time: 0.12419986724854, 0 queries, PHP Memory usage: 5685.171875 KB, Server time: 2026-08-30 09:44:32