Recherche avancée

Médias (91)

Autres articles (107)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • 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 (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (6570)

  • configure : select avs2 parser for libdavs2 decoder

    13 juin 2022, par Zhao Zhili
    configure : select avs2 parser for libdavs2 decoder
    

    Signed-off-by : Zhao Zhili <zhilizhao@tencent.com>

    • [DH] configure
  • Enable parser in FLV demuxer for H264 codec

    13 décembre 2013, par Alex Sukhanov
    Enable parser in FLV demuxer for H264 codec
    

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavformat/flvdec.c
  • uncertain behaviour of xml parser and ffmpeg streaming

    8 octobre 2013, par user2775836

    I am making an ios application to display live streaming from ip camera using ffmpeg libraries.I am also using http api requests and responses.the response is in xml format ,hence i am using xml parser to parse the response.I have two view controllers(first and second).I am initializing the xml parser at view did disappear function of the first view controller also i am calling the function to stop the streaming in view did disappear after xml parsing function.While navigating from first view controller to second view controller the xml parser gets initiated but the parsing response does not get completed .when i come back from second to first view controller and then navigate again to second view controller ,at that time the full response is parsed.Why the response gets parsed second time not first time and why is it parsing half first time.Please help.
    The code is as follows :

    - (void)viewDidDisappear:(BOOL)animated {

          [self parsing]; //call to parsing function

       [self.h264dec stopDecode]; //call to stop streaming
       self.h264dec = nil;
    }

    parsing function is:

    -(void)parsing
    {
       NSString *urlString = [NSString stringWithFormat:@"http://www.example.com"];
       NSURL *url = [NSURL URLWithString:urlString];


       NSMutableURLRequest *theRequest = [NSMutableURLRequest requestWithURL:url];

       [theRequest addValue: @"application/x-www-form-urlencoded; charset=utf-8" forHTTPHeaderField:@"Content-Type"];
       [theRequest setHTTPMethod:@"GET"];

       NSURLConnection *connection = [[NSURLConnection alloc] initWithRequest:theRequest delegate:self];

       if( connection )
       {
           mutableData = [[NSMutableData alloc] init];
           NSLog(@"connection successful");
       }

    }

    -(void) connection:(NSURLConnection *) connection didReceiveResponse:(NSURLResponse *)response
    {
       NSLog(@"receive response");
    }
    -(void) connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
    {

       [mutableData appendData:data];
       NSLog(@"DIDRECEIVE");
       NSLog(@"the mutable data is: %@",mutableData);

    }

    -(void) connection:(NSURLConnection *)connection didFailWithError:(NSError *)error
    {
        return;
    }

    -(void)connectionDidFinishLoading:(NSURLConnection *)connection
    {
       NSLog(@"finish loading");

       // You can do your functions here. If your repines is in XML you have to parse the response using NSXMLParser. If your response in JSON you have use SBJSON.
       NSXMLParser *parser = [[NSXMLParser alloc] initWithData:mutableData];
       [parser setDelegate:self];
       [parser parse];

    }

       - (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName attributes:(NSDictionary *)attributeDict
       {

           if([elementName isEqualToString:@"Response"]){
               NSLog(@"item found");
               xmlStringFileObject =[[XMLStringFile alloc]init];
           }

       }

       - (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string
       {

             [nodecontent appendString:[string stringByTrimmingCharactersInSet:[NSCharacterSet    whitespaceAndNewlineCharacterSet]]];
           NSLog(@"node content = %@",nodecontent);
       }

       //bellow delegate method specify when it encounter end tag of specific that tag

       - (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName
       {
           //I am saving my nodecontent data inside the property of XMLString File class
            if([elementName isEqualToString:@"test"]){
               xmlStringFileObject.test=nodecontent;
               NSLog(@"test:%@",xmlStringFileObject.test);
           }

           else if([elementName isEqualToString:@"resolution"]){
               xmlStringFileObject.resolution=nodecontent;
               NSLog(@"resolution:%@",xmlStringFileObject.resolution);
               AppDelegate *app = (AppDelegate*) [[UIApplication sharedApplication]delegate];
               app.res = xmlStringFileObject.resolution;
               NSLog(@"THE APPDELEGATE RES VALUE IS:%@",app.res);
           }

               //finally when we reaches the end of tag i am adding data inside the NSMutableArray
           if([elementName isEqualToString:@"Response"]){
               [rssOutputData addObject:xmlStringFileObject];

               xmlStringFileObject = nil;

           }
           //release the data from mutable string variable


           //reallocate the memory to get new content data from file
           nodecontent=[[NSMutableString alloc]init];

       }