使用php的音频流(Audio Streaming using php)

系统教程 行业动态 更新时间:2024-06-14 16:59:47
使用php的音频流(Audio Streaming using php)

我需要一些应用程序的参考,我将预先定义时间和歌曲,然后歌曲开始播放。

例如,如果我想在早上8点播放一首歌曲。 那首歌只在那个时候开始。 现在,如果用户“A”在早上8点打开我的网页,那么歌曲开始播放,而其他用户“B”在上午8:05打开网页,那么歌曲必须从开始播放,但用户都应该获得相同的音频,即用户“B”将错过5分钟的歌曲。

需要一些关于这一点的参考。

I need want some reference for a application, in which i will pre-define the time & song and at that time the song starts to play.

For Example, If I want to play a song at 8am. Then that song starts at that time only. Now if user "A" open my webpage at 8am then the song starts to play and other user "B" open webpage at 8:05am then the song must not play from start but both the user should get same audio i.e. user "B" will miss 5 min song.

Need some reference regarding this point.

最满意答案

好的,如果您对缓冲和速度没有任何问题,那么您可以使用免费版的jwplayer 。

根据时间提取歌曲及其播放时间,如用户打开页面时的晚上8点,然后提取播放时间和结束时间介于当前时间(晚上8点)之间的歌曲。

之后使用搜索功能jwplayer,如果歌曲的播放时间是晚上7:55,结束时间是晚上8:10,用户在晚上8点打开页面,然后用jwplayer('your_element').seek(5*60); 5分钟后寻找音频jwplayer('your_element').seek(5*60); 根据时间寻找视频并播放视频

OK if you don't have any problem with the buffering and the speed then you can use the free version of jwplayer.

Extract the song and its playtime according to the time like its is 8:00pm when user opened the page then extract the song whose playtime and end time lies between the current time(8:00pm).

After that use seek function jwplayer like if the play time of the song is 7:55pm and end time is 8:10pm and the user opened the page on 8:00pm then seek the audio 5 min later with jwplayer('your_element').seek(5*60); to seek the video and play the video according to the time

更多推荐

本文发布于:2023-04-17 08:59:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/195b6cb95e303263c540e1d1938b6d12.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:音频   php   Streaming   Audio

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!