且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在PHP中依次播放两个音频文件

更新时间:2022-11-17 18:41:28

y = 2;


z = 3;

FILEA = bflat.mp3;

I want too play two audio files using php
First file should play first and when it stops the second one should start playing .I have the following code but the PROBLEM is both are getting played simultaneously and its really getting mixed up plz help

What I have tried:

?php

$y=2;
$z=3;
$filea="bflat.mp3";
$fileb="SUUCgrcp.mp3";   
if($y==2){
    
     echo "<embed src =\"$filea\" hidden=\"true\" autostart=\"false\"></embed>";
    
    
} 

if($z==3){
    
  echo "<embed src =\"$fileb\" hidden=\"true\" autostart=\"false\"></embed>";
}

y=2;


z=3;


filea="bflat.mp3";