Recherche avancée

Médias (91)

Autres articles (64)

  • MediaSPIP en mode privé (Intranet)

    17 septembre 2013, par

    À partir de la version 0.3, un canal de MediaSPIP peut devenir privé, bloqué à toute personne non identifiée grâce au plugin "Intranet/extranet".
    Le plugin Intranet/extranet, lorsqu’il est activé, permet de bloquer l’accès au canal à tout visiteur non identifié, l’empêchant d’accéder au contenu en le redirigeant systématiquement vers le formulaire d’identification.
    Ce système peut être particulièrement utile pour certaines utilisations comme : Atelier de travail avec des enfants dont le contenu ne doit pas (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

Sur d’autres sites (5840)

  • Anomalie #3055 (Nouveau) : Autorisation sur les listes d’objets

    13 septembre 2013, par Maïeul Rouquette

    Sous SPIP 3 il y a dans inc/autoriser.php

    function autoriser_auteurs_menu_dist($faire, $type, $id, $qui, $opt){return true;}
    function autoriser_articles_menu_dist($faire, $type, $id, $qui, $opt){return true;}
    function autoriser_rubriques_menu_dist($faire, $type, $id, $qui, $opt){return true;}

    ce qui permet de dire qu’on autorise pas à voir le menu menant à la liste des auteurs / des articles / des rubriques.

    Mais ! si on se rend sur (par exemple) ?exec=auteurs il n’y a aucune manière de ne pas autoriser à voir cette page.

    Je vois trois solutions
    a) dans prive/squelettes/contenu/auteurs.html mettre un test #AUTORISATIONauteurs,menu (ou équivalent, je ne me rappel plus la syntaxe exactes) et ainsi de suite sur toute les pages.
    b) la même chose, mais avec #AUTORISATIONvoir,auteurs. Le pb c’est qu’on arrive sur autoriser_auteur_voir ... ce qui entraîne confusion entre voir les auteurs et voir UN auteurs particulier
    c) considérer que pour chaque page ?exec on teste automatiquemnt l’autorisation sur le menu correspondant.

    Ps : ceci fait suite à ce message http://comments.gmane.org/gmane.comp.web.spip.user/184403 et ma tentative d’intégrer le besoin d’en autorité

  • How we can capture entire screen screenshot using android application via programming

    18 novembre 2022, par Krunal Indrodiya

    Can anyone having idea how we can capture entire screen screenshot including other application overlay menu and toast using android application programming not for adb commands and manual button press.

    


    I have went through some of the code which is taking screenshot excluding toast and other application overlay displayed on my screen.

    


    Below code is only capturing activity view screenshot not capturing any other app overrlay menu and toast. Mostly because of val v1: View = window.decorView this line.

    


    val mPath: String = context.cacheDir.absolutePath + "/temp_${System.currentTimeMillis()}" + ".png"
// create bitmap screenshot
val v1: View = window.decorView
v1.isDrawingCacheEnabled = true
val bitmap = Bitmap.createBitmap(v1.drawingCache)
v1.isDrawingCacheEnabled = false
val imageFile = File(mPath)
val outputStream = FileOutputStream(imageFile)
val quality = 100
bitmap.compress(Bitmap.CompressFormat.PNG, quality, outputStream)
outputStream.flush()
outputStream.close()


    


    Also try to execute command to capture screenshot via app programming but not get succeed,

    


    val process = Runtime.getRuntime().exec("su")
val os = DataOutputStream(process.outputStream)
val cmd= "exec-out screencap"
os.writeBytes(cmd)
os.close()


    


    Requirement

    


      

    • Listener to identify if any other app displaying overlay menu.
    • 


    • I would like to capture screenshot when any other application overlay is displayed on my screen and screenshot must contains other application overlay.
    • 


    


    Please let me know how can i archive this. I really appreciate for your single reply or answer. Thanks in advance.

    


  • ffmpeg : Missing subtitles on iPod

    7 septembre 2016, par forthrin

    I generating a playable video on a 3rd generation iPod Nano using the following command line, but I’m having certain challenges related to subtitles, stability and metadata.

    ffmpeg -y -i in.mkv -i in.srt -profile:v baseline -level 3 -refs 6 -ar 44100 -ac 2 -ab 128k
    -vf "scale=640:-1,pad=iw:480:0:(oh-ih)/2" -map 0:0 -map 0:1 -map 1:0 -map_metadata -1
    -movflags +faststart -scodec mov_text -metadata:s:s:0 language=eng out.mp4
    1. Subtitles won’t show. I tried both iPod settings "Subtitles On" and "Captions On". iPod software is latest 1.1.3. Subtitles show with OS X QuickTime after I change from "Auto" to "English" in the subtitle menu. Is there an ffmpeg flag to make subtitles display on the iPod ?

    2. The video player exits after 11-12 minutes for many of the converted videos. Restricting the bitrate -b:v 600k -bufsize 600k did not help. Any advice how to circumvent this ?

    3. Lastly, how can I make the video show under the "TV show" menu on the iPod ? Couldn’t find any help searching for "ffmpeg metadata tv". Or is this an internal iTunes feature ?