dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: FlvPlayer Help me plz

  1. #1
    Junior Member
    Join Date
    Dec 2006
    Posts
    7

    FlvPlayer Help me plz

    hello

    1- i did Flv player but i cant do {autoRewind } for video how can i make this video autoRewind .

    2- how can i make Flv player Fullscreen.

    this code what's wrong?

    PHP Code:
    var my_nc:NetConnection = new NetConnection(); 
    my_nc.connect(null); 

    var 
    my_ns:NetStream= new NetStream(my_nc); 
    my_video.attachVideo(my_ns); 

    my_ns.play(vpath); 

    my_ns.pause(true); 
    //---------------------------------------------- 


    my_ns.autoRewind false


    //---------------------------------------- 
    var duration

    my_ns.onMetaData = function(obj

        
    duration obj.duration



    //------------------------------------------ 
      

       
    stop_btn.onRelease=function() 

        
    my_ns.seek(0); 
        
    my_ns.pause(true); 
        
    p_mc.gotoAndStop(1); 
         



    //------------------------------------------------------- 
    var _progress setInterval(showProgress,100); 
    function 
    showProgress() 

        
    scroll_mc.sbill_mc._x = (my_ns.time duration ) * 224
        
    scroll_mc.buffer_mc._width=(my_ns.bytesLoaded my_ns.bytesTotal) * 240

    function 
    showScrub() 

        
    my_ns.seek((scroll_mc.sbill_mc._x 224) * duration); 
         


    var 
    _scrub

    scroll_mc.sbill_mc.onPress=function() 

        
    clearInterval (_progress); 
        
    _scrubsetInterval(showScrub,10); 
        
    this.startDrag(false,0,this._y,224,this._y); 



    scroll_mc.sbill_mc.onRelease=scroll_mc.sbill_mc.onReleaseOutside=function() 


        
    clearInterval(_scrub); 
    _progress setInterval(showProgress,100); 
        
    this.stopDrag(); 



    //--------------------------------- 

    this.createEmptyMovieClip ("sc_mc",this.getNextHighestDepth()); 

    sc_mc.attachAudio(my_ns); 
    var 
    _sound:Sound = new Sound(sc_mc); 



    vol_btn.voldown_btn.onRelease = function() 

         
        
    _sound.setVolume(0); 
         
         
        } 

        
    vol_btn.volup_btn.onRelease = function() 

         
        
    _sound.setVolume(100); 
         
         
        } 
             
    //---------------------------------------------------- 

    this.createEmptyMovieClip("sc_mc",this.getNextHighestDepth()); 
    sc_mc.attachAudio(my_ns); 

    var 
    _sound:Sound = new Sound(sc_mc); 
    //------------- 
    var _setv

    function 
    setvol() 

        
    _sound.setVolume((sound_scroll_mc.sbill_mc._x /40) * 100); 
         

    sound_scroll_mc.sbill_mc.onPress=function() 



         
    _setv =  setInterval(setvol,100);     
        
    this.startDrag(false,0,this._y,40,this._y); 


    sound_scroll_mc.sbill_mc.onRelease=sound_scroll_mc.sbill_mc.onReleaseOutside=function() 

        
    clearInterval(_setv); 
        
    this.stopDrag(); 

    //----------------- 

    and this open Fla..

    http://www.alflash.com/vb/uploaded/8291_1187256289.fla

    plz help me.

  2. #2
    Member
    Join Date
    Apr 2009
    Posts
    41
    I have a .mov file which I want to play in flvplayer component.
    But it doesnt do anything.
    Through help I have found that its property is 16bit integer(Big Endian), Mono, 22.050kHz, H.264, 1008*567, Millions .
    How to play that .mov file in flvplayer.
    The rest .mov file which I got plays fine in flvplayer component.
    Eg-AAC, mono, 44.100kHz, H.264, 1000*567, Millions.

    Any help ???

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center