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

    fine FLV ok? allora parte l'altro flv

    Ciao a tutti, ho già effettuato ricerche ma ho trovato risposte solo per i component che uso.



    carico tre filmati flv , il primo parte in automatico

    var connection_nc:NetConnection = new NetConnection();
    connection_nc.connect(null);
    var stream_ns:NetStream = new NetStream(connection_nc);
    my_video.attachVideo(stream_ns);
    stream_ns.play("video_1.flv");

    gli altri due sono in pausa:
    stream_ns_2.play("video_2.flv");
    stream_ns_2.seek(0);
    stream_ns_2.pause();

    stream_ns_3.play("video_3.flv");
    stream_ns_3.seek(0);
    stream_ns_3.pause();

    come faccio a dire quando ha finito il primo fai partire il secondo e poi il terzo quando finisce il secondo?
    Questo perche' ho tagliato in tre un filamto che sarebbe stato troppo grande da caricare tutto insieme.......


    visto che ci sono , e' possibile creare una barra di avanzamento senza usare i component?

    grazie
    -Nextart.it Graphic Solutions

  2. #2
    mi sembra lo scrisse Natili

    codice:
    function endOfVideoDetector(p_infoCode:String):Boolean {
    	if (p_infoCode == "NetStream.Play.Start") {
    		m_playStop = false;
    	} else if (p_infoCode == "NetStream.Play.Stop") {
    		m_playStop = true;
    	} else if (p_infoCode == "NetStream.Buffer.Full" || p_infoCode == "NetStream.Play.Reset") {
    		m_bufferEmpty = false;
    	} else if (p_infoCode == "NetStream.Buffer.Empty") {
    		m_bufferEmpty = true;
    	}
    	if (m_playStop && m_bufferEmpty) {
    		if (withinNSecondsOfEnd(0.4)) {
    			m_playStop = false;
    			m_bufferEmpty = false;
    			return true;
    		} else {
    			m_playStop = false;
    			m_bufferEmpty = false;
    			pause(true);
    			pause(false);
    			return false;
    		}
    	}
    	return false;
    }
    function withinNSecondsOfEnd(p_theSeconds:Number) {
    	if ((duration-time)<p_theSeconds) {
    		return true;
    	} else {
    		return false;
    	}
    }

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 © 2024 vBulletin Solutions, Inc. All rights reserved.