如何在PHP中依次播放两个音频文件 [英] How do I play two audio files one after the other in PHP

查看:134
本文介绍了如何在PHP中依次播放两个音频文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用php播放两个音频文件

第一个文件应该先播放,当它停止时第二个应该开始播放。我有以下代码,但问题是同时播放它真的变得混乱了PLZ帮助



我尝试过:



?php 

$ y = 2;
$ z = 3;
$ filea =bflat.mp3;
$ fileb =SUUCgrcp.mp3;
if($ y == 2){

echo< embed src = \$ filea \hidden = \true\autostart = \ false\ >< /嵌入> 中;


}

if($ z == 3){

echo< embed src = \$ fileb \hidden = \true \autostart = \false \>< / embed>;
}

解决方案

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";


这篇关于如何在PHP中依次播放两个音频文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆