代码拉取完成,页面将自动刷新
同步操作将从 histreamer/histreamer_dev 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
@echo off
set LOCAL_MUSIC_PATH=test_music
@rem default play time 30 seconds
set PLAY_TIME=30
cmake -B cmake-build-debug . >> nul
if not %errorlevel%==0 (
echo Error: cmake configure error.
exit /b 1
)
cmake --build cmake-build-debug --target histreamer_player
if not %errorlevel%==0 (
echo Error: compile error.
exit /b 1
)
@rem play local music
for %%i in (%LOCAL_MUSIC_PATH%\*) do (
echo Playing : %%i
cmake-build-debug\bin\histreamer_player.exe "%%i" %PLAY_TIME% >> play_media.log
if not %errorlevel%==0 (
echo "ERROR: Failed."
)
)
@rem play http music
echo Playing HTTP : https://img.51miz.com/preview/sound/00/26/73/51miz-S267356-423D33372.mp3
call cmake-build-debug\bin\histreamer_player.exe "https://img.51miz.com/preview/sound/00/26/73/51miz-S267356-423D33372.mp3" 20 >> play_media.log 2>>1
if not %errorlevel%==0 (
echo "ERROR: Failed."
)
echo Playing HLS : https://live.ximalaya.com/radio-first-page-app/live/1011/64.m3u8?transcode=aac
call cmake-build-debug\bin\histreamer_player.exe "https://live.ximalaya.com/radio-first-page-app/live/1011/64.m3u8?transcode=aac" 40 >> play_media.log 2>>1
if not %errorlevel%==0 (
echo "ERROR: Failed."
)
pause
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。