
Recherche avancée
Autres articles (38)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
MediaSPIP Player : les contrôles
26 mai 2010, parLes contrôles à la souris du lecteur
En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...)
Sur d’autres sites (4649)
-
RTMP stream in Android using Vitamio with librtmp
8 septembre 2015, par user3774795I need to play some rtmp video in android app. I found solution here. But when my video played more than 1 minutes, I got errors and video stopped.
Code
private String path;
private int streamId;
@Bind(R.id.streamVideoView) VideoView mVideoView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_view_stream);
ButterKnife.bind(this);
setupVideoView();
}
private void setupVideoView() {
path = getIntent().getStringExtra("streamURL");
streamId = getIntent().getIntExtra("streamId", 0);
if (!io.vov.vitamio.LibsChecker.checkVitamioLibs(this))
return;
mVideoView.setVideoPath(path + " live=1");
mVideoView.setBufferSize(2048);
mVideoView.start();
}Errors
D/HybiParser﹕ Creating frame for : [B@53686940 op : 10 err : -1
I/Vitamio﹕ Info (901, 107) D/Vitamio﹕ onInfo : (901, 107)
I/Vitamio﹕ Info (901, 84) D/Vitamio﹕ onInfo : (901, 84)
D/HybiParser﹕ Sending pong !!
D/HybiParser﹕ Creating frame for : [B@53675358 op : 10 err : -1
I/Vitamio﹕ Info (901, 119) D/Vitamio﹕ onInfo : (901, 119)
E/Vitamio[Player]﹕ [h264 @ 0xb8705270] sps_id (32) out of range
E/Vitamio[Player]﹕ [h264 @ 0xb8705270] sps_id out of range
E/Vitamio[Player]﹕ [h264 @ 0xb8705270] non-existing PPS 35 referenced
E/Vitamio[Player]﹕ [h264 @ 0xb8705270] decode_slice_header error
E/Vitamio[Player]﹕ [h264 @ 0xb8705270] no frame !
E/Vitamio[Player]﹕ FFMPEG NATIVE avcodec_decode_video2
E/Vitamio[Player]﹕ [h264 @ 0xb8705270] non-existing PPS 35 referenced
E/Vitamio[Player]﹕ [h264 @ 0xb8705270] decode_slice_header error
E/Vitamio[Player]﹕ [h264 @ 0xb8705270] no frame !
E/Vitamio[Player]﹕ FFMPEG NATIVE avcodec_decode_video2
Please, help me !!
-
Merge remote-tracking branch ’tomasdev/master’ into V2.97a.20120318+DEV
12 mai 2012, par Scott Schillerm demo/360-player/canvas-visualization.html m demo/360-player/demo-slider-controls.js m demo/360-player/script/360player.js Merge remote-tracking branch ’tomasdev/master’ into V2.97a.20120318+DEV
-
music bot stopping music entirely instead of skipping one song discord.py
26 septembre 2018, par Y4h LWhen i use my skip command, my program stops playing music, instead of skipping a song.
Here’s the code :queues = {}
players = {}
opts = {
'default_search': 'auto',
'quiet': True,
}
voice_states = {}
class voice:
def __init__(self, client):
self.client = client
@commands.command(pass_context=True)
async def skip(self, ctx):
id = ctx.message.server.id
players[id].stop()
@commands.command(
pass_context=True
)
async def play(self, ctx, url):
server = ctx.message.server
channel = ctx.message.author.voice.voice_channel
try:
await self.client.join_voice_channel(channel)
except:
print(" ")
if server.id not in players or players[server.id].is_done():
server = ctx.message.server
voice_client = self.client.voice_client_in(server)
player = await voice_client.create_ytdl_player(url, after=lambda: queue(server.id), ytdl_options=opts)
players[server.id] = player
await self.client.say('Now Playing ' )
player.start()
else:
server = ctx.message.server
voice_client = self.client.voice_client_in(server)
player = await voice_client.create_ytdl_player(url, after=lambda: queue(server.id), ytdl_options=opts)
if server.id in queues:
queues[server.id].append(player)
else:
queues[server.id] = [player]
await self.client.say('Now Playing ' )
await self.client.say('Video queued.')
def queue(self, id):
if queues[id] != []:
player = queues[id].pop(0)
players[id] = player
player.start()
def setup(client):
client.add_cog(voice(client))i receive no error codes,
just no queue.
Fixes to my code or own solutions are appreciated.
Sorry, for long code, but you need all the context