Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (80)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip 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, par

    Chaque 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 2011

    Le 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 Scholz
    configure : 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>

    • [DH] configure
  • multipart/x-mixed-replace - MJPG video stream does not close in

    18 janvier 2024, par karlcess

    I'm using Node.js and React.&#xA;In React I have a simple component that is displayed on the screen when a button is clicked. The component is as follows :

    &#xA;

    import React from &#x27;react&#x27;&#xA;&#xA;const Image = () => {&#xA;  return <img src="http://stackoverflow.com/api/mjpgStream/stream01" style='max-width: 300px; max-height: 300px' />;&#xA;}&#xA;&#xA;

    &#xA;

    Webpack redirects my requests (api=localhost:3456/mjpgStream/stream0).&#xA;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 :

    &#xA;

    const cb: RequestHandler = (req, res) => {&#xA;  const url = req.url.toString().slice(1);&#xA;  res.writeHead(200, {&#xA;    "Content-Type": "multipart/x-mixed-replace;boundary=&#x27;stream&#x27;",&#xA;    Connection: "keep-alive",&#xA;    Expires: "Fri, 27 May 1977 00:00:00 GMT",&#xA;    "Cache-Control": "no-cache, no-store, max-age=0, must-revalidate",&#xA;    Pragma: "no-cache",&#xA;  });&#xA;  let sub = PubSub.subscribe(url, function (msg: any, data: any) {&#xA;    res.write("--stream\r\n");&#xA;    res.write("Content-Type: image/jpeg\r\n");&#xA;    res.write("Content-Length: " &#x2B; data.length &#x2B; "\r\n");&#xA;    res.write("\r\n");&#xA;    res.write(data, "binary");&#xA;    res.write("\r\n");&#xA;  });&#xA;&#xA;  req.on("close", () => {&#xA;    PubSub.unsubscribe(sub);&#xA;    res.end();&#xA;  });&#xA;&#xA;  res.on("error", function (err) {&#xA;    console.error("Error in response:", err);&#xA;  });&#xA;};&#xA;&#xA;router.get(/\/[a-z,0-9]*/, cb);&#xA;

    &#xA;

    The video stream is published in the topic with PubSub and is correctly displayed in the Image component.&#xA;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.

    &#xA;

  • Updated mixed-mode HTML5/flash messaging, debug links

    20 janvier 2011, par Scott Schiller

    m index.html Updated mixed-mode HTML5/flash messaging, debug links