
Recherche avancée
Autres articles (83)
-
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 -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;
Sur d’autres sites (9392)
-
How to stream a screen sharing through a server
27 mai 2020, par MoazI'm trying to write an application that captures the screen of the client device and streams it (using
ffmpeg
) to anode-media-server
which publishes it as an HLS stream. The stream is then viewed with an HLS player on a web browser (in my approach I used video.js)


What I did so far :



- 

- I created a node media server using the default configurations to Remux to HLS live stream in a file called
app.js
:







const NodeMediaServer = require('node-media-server');

const config = {
 rtmp: {
 port: 1935,
 chunk_size: 60000,
 gop_cache: true,
 ping: 30,
 ping_timeout: 60
 },
 http: {
 port: 8000,
 mediaroot: './media',
 allow_origin: '*'
 },
 trans: {
 ffmpeg: '/usr/local/bin/ffmpeg',
 tasks: [
 {
 app: 'live',
 hls: true,
 hlsFlags: '[hls_time=2:hls_list_size=3:hls_flags=delete_segments]',
 dash: true,
 dashFlags: '[f=dash:window_size=3:extra_window_size=5]'
 }
 ]
 }
};

var nms = new NodeMediaServer(config)
nms.run();








- 

- I ran it with the command
node app.js
- After installing
ffmpeg
and figuring out which video and audio source I wanted to stream from, I started streaming by running the command :







ffmpeg -f avfoundation -framerate 30 -i "1:1" -c:v libx264 -preset superfast -tune zerolatency -c:a aac -ar 44100 -f flv rtmp://localhost/live/STREAM_NAME



- 

- I prepared a simple html page which uses the video.js player to play the HLS stream :








 



 <h1>Video.js Example Embed</h1>

 
 <p class="vjs-no-js">
 To view this video please enable JavaScript, and consider upgrading to a
 web browser that
 <a href="https://videojs.com/html5-video-support/" target="_blank">supports HTML5 video
 </a></p>
 
 
 <code class="echappe-js"><script src="https://vjs.zencdn.net/7.8.2/video.js"></script>

<script src="https://unpkg.com/@videojs/http-streaming/dist/videojs-http-streaming.js"></script>

 
<script>&#xD;&#xA; var player = videojs(&#x27;my_video_1&#x27;);&#xD;&#xA; player.src([{&#xD;&#xA; "type":"application/x-mpegURL",&#xD;&#xA; "src":"http://localhost:8000/live/STREAM_NAME/index.m3u8"&#xD;&#xA; }]);&#xD;&#xA; player.play();&#xD;&#xA; </script>









- 

- then I ran an http server and served this html page to prevent and origin access errors.
- when opening this html page the stream works well in Chrome (v83.0.4103.61)







BUT :



- 

-
In Firefox Developer Edition (v76.0b8 (64-bit)) the player hangs on loading and nothing is shown. It keeps loading the HLS manifest file and the .ts files but the video is not showing :

-
In Safari (v13.1) on MacOS the player never loads correctly and the following errors are printed :








I tried another video player (flv.js) which workes with http-flv streams using the following basic html page :









 <video controls="controls" autoplay="autoplay" muted="muted" width="640" height="268"></video>

 <code class="echappe-js"><script src="https://cdn.bootcss.com/flv.js/1.5.0/flv.min.js"></script>

<script>&#xD;&#xA; if (flvjs.isSupported()) {&#xD;&#xA; var videoElement = document.getElementById(&#x27;flvPlayer&#x27;);&#xD;&#xA; var flvPlayer = flvjs.createPlayer({&#xD;&#xA; type: &#x27;flv&#x27;,&#xD;&#xA; "isLive": true,&#xD;&#xA; url: &#x27;http://localhost:8000/live/STREAM_NAME.flv&#x27;&#xD;&#xA; });&#xD;&#xA; flvPlayer.attachMediaElement(videoElement);&#xD;&#xA; flvPlayer.load();&#xD;&#xA; flvPlayer.play();&#xD;&#xA; }&#xD;&#xA; </script>










- 

- It worked as expected in Chrome





BUT :



- 

-
On Firefox it plays an empty video with some noise showing the following warnings :

-
And on Safari it doesn't play at all and shows the following error : 








I also tried the same steps on IE11 and on Edge and it also didn't work (Unfortunately, I don't have any screenshots)



So my questions are : what am I doing wrong ? why didn't each approach work ? and are there other/better approaches that I can also try which helps achiving the same goal (preferably something free/open source with as least latency as possible)


- I created a node media server using the default configurations to Remux to HLS live stream in a file called
-
Anomalie #4276 : fonctions non définies dans porte_plume_pipelines.php
24 janvier 2019, par François PalangiéBonjour,
Vous avez raison c’est la version 1.18.3 que j’ai maintenant, 1.18.1
devait être le numéro de version avant que je réinstalle la dernière
version de SPIP.Le problème était le même avec la 18.1.1 et la 18.1.3 . Le problème est
intervenu un matin sans que j’ai rien changé, je suppose que c’est mon
hébergeur qui a changé l’environnement et que c’est la cause du
problème... mais c’est curieux que cela produise ce type d’erreur !Cordialement,
François
Le 24/01/2019 à 12:59, redmine@spip.org a écrit :
La demande #4276 <https://core.spip.net/issues/4276#change-14694> a
été mise à jour par Franck D .- Statut changé de /Nouveau/ à /Fermé/
Hello :-)
Spip 3.2.3 est dispo avec la version 1.18.3 de porte plume
https://zone.spip.net/trac/spip-zone/browser/spip-zone/_core_/tags/spip-3.2.3/plugins/porte_plume/paquet.xml#L4
J’ai vérifier le zip et c’est bien le cas
https://files.spip.net/spip/archives/SPIP-v3.2.3.zip !
Vous êtes sûr de la version que vous avez ?
Franck
Anomalie #4276 : fonctions non définies dans
porte_plume_pipelines.php
<https://core.spip.net/issues/4276#change-14694>- Auteur : François Palangié
- Statut : Fermé
- Priorité : Normal
- Assigné à :
- Catégorie :
- Version cible :
- Resolution :
- Navigateur :
Environnement :
- SPIP 3.2.3 [24211]
- Porte plume 1.18.1 - stable
- Site : https://voyart.org
- PHPinfo : https://voyart.org/phpinfo.php
Problème :
Le site fonctionne, mais quand on tente d’accéder à la partie
privée on a ce message d’erreur, qui persiste même après une
réinstallation de SPIP :
Fatal error : Uncaught Error : Call to undefined function barre_outils_css_icones() in /var/www/vhosts/voyart.org/httpdocs/plugins-dist/porte_plume/porte_plume_pipelines.php:152
Stack trace :
#0 /var/www/vhosts/voyart.org/httpdocs/plugins-dist/porte_plume/porte_plume_pipelines.php(129) : porte_plume_insert_head_css(’<script type="t...', true)<br /><a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Anomalie: Document distant .zip uploadés et non gardés distants (Fermé)" href="https://core.spip.net/issues/1">#1</a> /var/www/vhosts/voyart.org/httpdocs/ecrire/inc/utils.php(199): porte_plume_insert_head_prive_css('<script type="t...')<br /><a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Anomalie: Filtres sur chaines de langues de nouveau cassés (Fermé)" href="https://core.spip.net/issues/2">#2</a> /var/www/vhosts/voyart.org/httpdocs/tmp/cache/charger_pipelines.php(596): minipipe('porte_plume_ins...', '<script type="t...')<br /><a class="issue tracker-1 status-5 priority-3 priority-lowest closed" title="Anomalie: problème de gestion de cache lors de l'installation de SPIP (Fermé)" href="https://core.spip.net/issues/3">#3</a> /var/www/vhosts/voyart.org/httpdocs/ecrire/inc/utils.php(265): execute_pipeline_header_prive_css('<script type="t...')<br /><a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Evolution: forum privé->public (Fermé)" href="https://core.spip.net/issues/4">#4</a> /var/www/vhosts/voyart.org/httpdocs/tmp/cache/skel/html_c44cf6e196e37af7575f04c7aba04247.php(72): pipeline('header_prive_cs...', '<script type="t...')<br /><a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Evolution: traduction francophone de la zone utilisant Trac (Fermé)" href="https://core.spip.net/issues/5">#5</a> /var/www/vhosts/voyart.org/httpdocs/ecrire/public/parametrer.php(128): html_c44cf6e196e37af7575f04c7aba04247(Array, Array)<br /><a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Anomalie: Renseigner les champs "component", "version", .. (Fermé)" href="https://core.spip.net/issues/6">#6</a> /var/www/vhosts/voyart.org/httpdocs/ecr in /var/www/vhosts/voyart.org/httpdocs/plugins-dist/porte_plume/porte_plume_pipelines.php on line 152</p><br />
<br />
<br />
<p>Le problème est contourné en renommant le répertoire <br />plugin-dist/porteplume<br />Le problème ne dépend pas du navigateur firefox, edge, chrome<br />Aucun problème sur le SPIP de développement installé avec <br />EasyPHP-devserver sur mon ordinateur perso</p><br />
<br />
<br />
<hr /><br />
<br />
<br />
<p>Vous recevez ce mail car vous êtes impliqués sur ce projet.<br />Pour changer les préférences d'envoi de mail, allez sur <br /><a class="external" href="http://core.spip.net/my/account">http://core.spip.net/my/account</a></p><br />
<br />
<br />
</blockquote><br />
<br />
<p>---<br />Cet email a fait l'objet d'une analyse antivirus par AVG.<br /><a class="external" href='http://www.avg.com/'>http://www.avg.com</a></p> -
Revision 33150 : Essayer de suivre les optimisations de la 2.0.10++ SVN
23 novembre 2009, par real3t@… — LogEssayer de suivre les optimisations de la 2.0.10++ SVN