Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    media component e youtube

    salve raga, ho fatto un paio di prove per cercare di caricare dei video
    in flash da youtube che dovrebbe gestire il formato flv
    il primo tentativo è stato quello (estrapolando il vero link del file flv)
    di usare il componente flplayback e aggiungendo questo as:
    codice:
    player.contentPath = "http://ash-v83.ash.youtube.com/get_video?video_id=fIg66GlhFCk";
    	var listenerObject:Object = new Object();
    	listenerObject.metadataReceived = function(eventObject:Object):Void {
        	my_FLVPlybk.setSize(player.preferredWidth, player.preferredHeight);
    	}
    player.addEventListener("metadataReceived", listenerObject);
    ma mi restituisce l'errore:
    1005: Invalid xml: URL: "http://ash-v83.ash.youtube.com/get_video?video_id=fIg66GlhFCk" No root node found; if file is an flv it must have .flv extension

    poi ho provato semplicemente con un loadMovie su un movieclip vuoto del link che
    da youtube:
    codice:
     
    player.loadMovie("http://www.youtube.com/v/fIg66GlhFCk");
    stop();
    ma mi da una sfilza di roba in output:
    Constructing movie
    *** Violazione della sicurezza sandbox ***
    SecurityDomain 'http://www.youtube.com/p.swf?video_id=fIg66GlhFCk&eurl=http%3A//www.youtube.com/v/fIg66GlhFCk&iurl=http%3A//sjc-static12.sjc.youtube.com/vi/fIg66GlhFCk/2.jpg&t=OEgsToPDskLDQp2o1rl0Lkb8VNXEcyIa' ha cercato di accedere a un contesto incompatibile 'file:///C|/DOCUME%7E1/FRANCE%7E1/IMPOST%7E1/Temp/Senza%20nome%2D1.swf'
    *** Violazione della sicurezza sandbox ***
    Connessione a null interrotta - non consentita da http://www.youtube.com/p.swf?video_i...l0Lkb8VNXEcyIa
    -- I file SWF remoti non possono accedere ai file locali.
    Ending the movie is :_level0.player.tube.movie
    constructing MovieController:undefined
    timer.seek_total_timeundefined
    regular:undefined smal._xstart:undefined
    constructing EmbedSoundController:undefined
    setting movie
    setting the movie video_id:fIg66GlhFCk base_url:http://www.youtube.com/
    DIFFERENT loading :undefined vs http://www.youtube.com/get_video?vid...l0Lkb8VNXEcyIa
    registering controller to:_level0.player.tube.movie
    registering sound to:_level0.player.tube.movie
    controller movie is:_level0.player.tube.movie
    show v:100
    showing the goddamn play button
    *** Violazione della sicurezza sandbox ***
    SecurityDomain 'http://www.youtube.com/p.swf?video_id=fIg66GlhFCk&eurl=http%3A//www.youtube.com/v/fIg66GlhFCk&iurl=http%3A//sjc-static12.sjc.youtube.com/vi/fIg66GlhFCk/2.jpg&t=OEgsToPDskLDQp2o1rl0Lkb8VNXEcyIa' ha cercato di accedere a un contesto incompatibile 'file:///C|/DOCUME%7E1/FRANCE%7E1/IMPOST%7E1/Temp/Senza%20nome%2D1.swf'
    *** Violazione della sicurezza sandbox ***
    SecurityDomain 'http://www.youtube.com/p.swf?video_id=fIg66GlhFCk&eurl=http%3A//www.youtube.com/v/fIg66GlhFCk&iurl=http%3A//sjc-static12.sjc.youtube.com/vi/fIg66GlhFCk/2.jpg&t=OEgsToPDskLDQp2o1rl0Lkb8VNXEcyIa' ha cercato di accedere a un contesto incompatibile 'file:///C|/DOCUME%7E1/FRANCE%7E1/IMPOST%7E1/Temp/Senza%20nome%2D1.swf'
    sw:550 sh:400 rw:450.55 rh:356.1
    resizing to:550:400
    resizing to:509.333333333333:382 ratio:1.33333333333333
    overlay: 509.35,382
    end_screen: 509.35,382
    actual size of movie is:509.35:382.15
    resize width:509.35 bg offset30.55
    moive_width:509.35 w:550 mx:0
    px:undefined py:undefined
    *** Violazione della sicurezza sandbox ***
    SecurityDomain 'http://www.youtube.com/p.swf?video_id=fIg66GlhFCk&eurl=http%3A//www.youtube.com/v/fIg66GlhFCk&iurl=http%3A//sjc-static12.sjc.youtube.com/vi/fIg66GlhFCk/2.jpg&t=OEgsToPDskLDQp2o1rl0Lkb8VNXEcyIa' ha cercato di accedere a un contesto incompatibile 'http://sjc-static12.sjc.youtube.com/vi/fIg66GlhFCk/2.jpg'
    fiting image to:509.35:382 actual:509.35:382
    we loaded the image
    play movie:undefined
    ns:[object Object], ns.stats:[type Function]



    secondo voi che se deve fa? :master:

  2. #2
    finalmente ci sono riuscito!
    l'unico problema è che non riesco a capire le dimensioni dai metadata,
    visto che non sono memorizzate!
    spero di risolvere il problema!
    nessuno ha mai risolto?

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.