
Recherche avancée
Médias (29)
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (80)
-
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 -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Pas question de marché, de cloud etc...
10 avril 2011Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
sur le web 2.0 et dans les entreprises qui en vivent.
Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)
Sur d’autres sites (10110)
-
configure : allow mixed declarations and code for Objective-C
25 septembre 2024, par Marvin Scholzconfigure : allow mixed declarations and code for Objective-C
Mixing declarations and code is quite common in Objective-C (as can be
seen by the number of warnings we have for this in Objective-C files)
and forcing to not do it usually results in worse code, with unnecessary
widely scoped variables, which in turn makes variable shadowing and
accidentally using the wrong variable more common and harder to notice.Signed-off-by : Zhao Zhili <zhilizhao@tencent.com>
-
multipart/x-mixed-replace - MJPG video stream does not close in
18 janvier 2024, par karlcessI'm using Node.js and React.
In React I have a simple component that is displayed on the screen when a button is clicked. The component is as follows :


import React from 'react'

const Image = () => {
 return <img src="http://stackoverflow.com/api/mjpgStream/stream01" style='max-width: 300px; max-height: 300px' />;
}




Webpack redirects my requests (api=localhost:3456/mjpgStream/stream0).
In node I created an express server that when receiving the GET continuously sends JPEG images with multipart/x-mixed-replace. Below is the code :


const cb: RequestHandler = (req, res) => {
 const url = req.url.toString().slice(1);
 res.writeHead(200, {
 "Content-Type": "multipart/x-mixed-replace;boundary='stream'",
 Connection: "keep-alive",
 Expires: "Fri, 27 May 1977 00:00:00 GMT",
 "Cache-Control": "no-cache, no-store, max-age=0, must-revalidate",
 Pragma: "no-cache",
 });
 let sub = PubSub.subscribe(url, function (msg: any, data: any) {
 res.write("--stream\r\n");
 res.write("Content-Type: image/jpeg\r\n");
 res.write("Content-Length: " + data.length + "\r\n");
 res.write("\r\n");
 res.write(data, "binary");
 res.write("\r\n");
 });

 req.on("close", () => {
 PubSub.unsubscribe(sub);
 res.end();
 });

 res.on("error", function (err) {
 console.error("Error in response:", err);
 });
};

router.get(/\/[a-z,0-9]*/, cb);



The video stream is published in the topic with PubSub and is correctly displayed in the Image component.
The problem is that when I click the button to close the Image component from the web page, the close event is not captured on the express server side and the mjpg flow continues to exist. I can't understand why.


-
Updated mixed-mode HTML5/flash messaging, debug links
20 janvier 2011, par Scott Schillerm index.html Updated mixed-mode HTML5/flash messaging, debug links