
Recherche avancée
Autres articles (111)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Soumettre bugs et patchs
10 avril 2011Un logiciel n’est malheureusement jamais parfait...
Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
Si vous pensez avoir résolu vous même le bug (...)
Sur d’autres sites (10930)
-
Play MP4 while recording moov atom.
2 septembre 2013, par Bavagnoli PaoloI am recording a video with VLC using MP4 Encapsulation + h264 codec. The video is recorded correctly , but I need to be able to access and play the recorded video while recording from a winform c# application.
I have integrated VLC in the winform application but the problem is that the mp4 file is not playable during recording.
I understood that the problem is the moov atom file is created at the end when the recording as terminated.
First solution I have found is to copy the file when the user need to access the file then generate a moov atom using for example MP4Box utility.
Does anybody know a better way to achieve this ?
Thanks
-
Is there any way to play video other then .mp4 on Android in Kivy ?
11 décembre 2016, par Gerasimov Mikhail -
How to play encrypted video in exoplayer (android app) coming from HLS streamer ?
2 février 2021, par Harshil MakwanaI am right now using FFMPEG to stream mp4 file using HLS.
I am using this link to enable encryption : https://hlsbook.net/how-to-encrypt-hls-video-with-ffmpeg/


To play video in my android app, I am using exoplayer, below is my source code to play video :


Player player;
private MediaSource buildMediaSource(Uri uri) {
 TrackSelection.Factory adaptiveTrackSelection = new AdaptiveTrackSelection.Factory(new DefaultBandwidthMeter());
 player = ExoPlayerFactory.newSimpleInstance(
 this,
 new DefaultTrackSelector(adaptiveTrackSelection));
 playerView.setPlayer(player);
 // These factories are used to construct two media sources.
 DefaultBandwidthMeter defaultBandwidthMeter = DefaultBandwidthMeter.getSingletonInstance(this);
 DataSource.Factory dataSourceFactory = new DefaultDataSourceFactory(mContext,
 Util.getUserAgent(mContext, "cookvid"), defaultBandwidthMeter);
 //DataSource.Factory dataSourceFactory =
 // new DefaultDataSourceFactory(this, "exoplayer-codelab");

 HlsMediaSource.Factory mediaSourceFactory = new HlsMediaSource.Factory(dataSourceFactory);
 return mediaSourceFactory.createMediaSource(uri);
 //return new ProgressiveMediaSource.Factory(dataSourceFactory)
 // .createMediaSource(uri);
}
private void initializePlayer() {
 Uri uri = Uri.parse(getString(R.string.media_url_hls));
 MediaSource mediaSource = buildMediaSource(uri);
 player.setPlayWhenReady(playWhenReady);
 player.seekTo(currentWindow, playbackPosition);
 player.addListener(playbackStateListener);
 player.prepare(mediaSource, false, false);
}



But with this code, I can not play video in app, If I am not using this encryption ,then exoplayer can play video without any issue.


Please help me on this, I am newbie on exoplayer side.