我需要一些应用程序的参考,我将预先定义时间和歌曲,然后歌曲开始播放。
例如,如果我想在早上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
更多推荐
发布评论