Stratos: Punto de Encuentro de Desarrolladores

¡Bienvenido a Stratos!

Acceder

Foros





Menu

Mostrar Mensajes

Esta sección te permite ver todos los posts escritos por este usuario. Ten en cuenta que sólo puedes ver los posts escritos en zonas a las que tienes acceso en este momento.

Mostrar Mensajes Menu

Mensajes - scorpionhack

#1
Buenas:
yo queria hacer un Mar como el de abajo mediante codigo, y empeze a preguntar y a buscar , y al final encontre un programa que abajo esta el link tambien, lo unico que yo queria que el efecto del mar se me viera en un picture y no se me ve en un picturebox, ¿Como puedo pasarlo a un picture?

Muchas gracias por todo
LINK:
http://www.escolapia.net/caldes/alumnes/05/nanotech/efect%20agua.zip
imagen:
#2
Programación de audio / fmod
08 de Julio de 2006, 01:12:17 AM
Buenas:
Estoy creando una pagina web sobre programas en visual basic y necesito un tutorial de fmod ya que yo no se como va.
gracias
#3
General Programadores / Directshow Solucionado Pero No Del Todo
21 de Noviembre de 2005, 07:11:03 PM
 Buenas:
este es el codigo de direct show que utilizo, haver si me puedes ayudar.
gracias

Option Explicit
Option Base 0
Option Compare Text

Private m_dblRate As Double                'Rate in Frames Per Second
Private m_bstrFileName As String           'Loaded Filename
Private m_dblRunLength As Double           'Duration in seconds
Private m_dblStartPosition As Double       'Start position in seconds
Public m_boolVideoRunning As Boolean       'Flag used to trigger clock

Private dblPosition As Double ' Current Play position

Private m_objBasicAudio  As IBasicAudio      'Basic Audio Object
Private m_objBasicVideo As IBasicVideo       'Basic Video Object
Private m_objMediaEvent As IMediaEvent       'MediaEvent Object
Private m_objVideoWindow As IVideoWindow     'VideoWindow Object
Private m_objMediaControl As IMediaControl   'MediaControl Object
Private m_objMediaPosition As IMediaPosition 'MediaPosition Object
           
           
                     
   ' ****************************************************
   ' ****   Main Video Loading method
   ' ****      Use this method to load video file
Sub RunVideoContent(ByVal path As String, Optional ByVal DontMaintainRatio As Boolean, Optional ByVal FullScreen As Boolean)
   Dim nCount As Long
   Dim sScale As Double
   Dim topMod As Long
   On Local Error GoTo ErrLine
   
       ' NOTE: to get the clip duration use - m_dblRunLength

       ' Initialize global variables based on the
       ' contents of the file:
       '   m_bstrFileName - name of file name selected by the user
       '   m_dblRunLength = length of the file; duration
       '   m_dblStartPosition - point at which to start playing clip
       '   m_objMediaControl, m_objMediaEvent, m_objMediaPosition,
       '   m_objBasicAudio, m_objVideoWindow - programmable objects
   
       'clean up memory (in case a file was previously opened)
   UnloadActiveMovieControl
   
       ' Setting file to object
   m_bstrFileName = path
   
       'Instantiate a filter graph for the requested
       'file format.
   Set m_objMediaControl = New FilgraphManager
   Call m_objMediaControl.RenderFile(m_bstrFileName)
   
       'Setup the IBasicAudio object (this
       'is equivalent to calling QueryInterface()
       'on IFilterGraphManager). Initialize the volume
       'to the maximum value.
   
       ' Some filter graphs don't render audio
       ' In this sample, skip setting volume property
   Set m_objBasicAudio = m_objMediaControl
   m_objBasicAudio.Volume = 0
   m_objBasicAudio.Balance = 0
   
       'Setup the IVideoWindow object. Remove the
       'caption, border, dialog frame, and scrollbars
       'from the default window. Position the window.
       'Set the parent to the app's form.
   Set m_objVideoWindow = m_objMediaControl
   m_objVideoWindow.WindowStyle = CLng(&H6000000)
   m_objVideoWindow.Left = 0
       ' Getting Scale Ratio
   sScale = m_objVideoWindow.Height / m_objVideoWindow.Width
       ' Setting object width
   m_objVideoWindow.Width = Video_ActiveMovie.video.Width
   If Not (DontMaintainRatio) Then
       m_objVideoWindow.Height = Video_ActiveMovie.video.Width * sScale
       topMod = (Video_ActiveMovie.video.Height - m_objVideoWindow.Height) / 2
   Else
       m_objVideoWindow.Height = Video_ActiveMovie.video.Height
   End If
   m_objVideoWindow.Top = topMod
       ' Setting FullScreen Mode
   m_objVideoWindow.FullScreenMode = FullScreen
       'reset the video window owner - The surface the video is implemented upon
   m_objVideoWindow.Owner = Video_ActiveMovie.video.hWnd
   
       'Setup the IMediaEvent object for the
       'sample toolbar (run, pause, play).
   Set m_objMediaEvent = m_objMediaControl
   
       'Setup the IMediaPosition object so that we
       'can display the duration of the selected
       'video as well as the elapsed time.
   Set m_objMediaPosition = m_objMediaControl
   
       'set the playback rate given the desired optional
   m_objMediaPosition.Rate = 1 ' Normal play rate
                               ' NOTE: you can set values like 1.5 for 150% speed, pretty nice
       ' Use user-established playback rate
   m_dblRate = m_objMediaPosition.Rate
       ' getting play length
   m_dblRunLength = Round(m_objMediaPosition.Duration, 2)
       ' Reset start position to 0
   m_dblStartPosition = 0
   
       ' Play the file
   PlayActiveMovie
   Exit Sub
   
ErrLine:
   Err.Clear
   Resume Next
End Sub
           
   ' ****************************************************
   ' ****   Unloading Control from memory
   ' ****
Sub UnloadActiveMovieControl()
   On Local Error GoTo ErrLine
   
   'stop playback
   m_boolVideoRunning = False
   DoEvents
   'cleanup media control
   If Not m_objMediaControl Is Nothing Then
       m_objMediaControl.Stop
   End If
   'clean-up video window
   If Not m_objVideoWindow Is Nothing Then
       m_objVideoWindow.Left = Screen.Width * 8
       m_objVideoWindow.Height = Screen.Height * 8
       m_objVideoWindow.Owner = 0          'sets the Owner to NULL
   End If
           
   'clean-up & dereference
   If Not m_objBasicAudio Is Nothing Then Set m_objBasicAudio = Nothing
   If Not m_objBasicVideo Is Nothing Then Set m_objBasicVideo = Nothing
   If Not m_objMediaControl Is Nothing Then Set m_objMediaControl = Nothing
   If Not m_objVideoWindow Is Nothing Then Set m_objVideoWindow = Nothing
   If Not m_objMediaPosition Is Nothing Then Set m_objMediaPosition = Nothing
   Exit Sub
           
ErrLine:
   Err.Clear
End Sub
           

   ' ****************************************************
   ' ****   Control Methods
   ' ****      Play,Pause & Stop

Sub PlayActiveMovie()
   On Local Error GoTo errHandle
   
   'Invoke the MediaControl Run() method
   'and pause the video that is being
   'displayed through the predefined
   'filter graph.
   
   'Assign specified starting position dependent on state
   If CLng(m_objMediaPosition.CurrentPosition) < CLng(m_dblStartPosition) Then
       m_objMediaPosition.CurrentPosition = m_dblStartPosition
   ElseIf CLng(m_objMediaPosition.CurrentPosition) = CLng(m_dblRunLength) Then
       m_objMediaPosition.CurrentPosition = m_dblStartPosition
   End If
   
   m_boolVideoRunning = True
   Call m_objMediaControl.Run
   
   
   Exit Sub
errHandle:
   Err.Clear
   Resume Next
   'logerror
End Sub

Sub PauseActiveMovie()
   On Local Error GoTo errHandle
       ' Validating state
   If Not (m_boolVideoRunning) Then Exit Sub
       ' Pausing
   Call m_objMediaControl.Pause
       ' setting state
   m_boolVideoRunning = False
   
   Exit Sub
errHandle:
   Err.Clear
   'logerror
End Sub

Sub StopActiveMovie()
   On Local Error GoTo errHandle
       ' Validating state
   If Not (m_boolVideoRunning) Then Exit Sub
       ' Stopping
   Call m_objMediaControl.Stop
       ' setting state
   m_boolVideoRunning = False
       ' reset to the beginning of the video
   m_objMediaPosition.CurrentPosition = 0
   
   Exit Sub
errHandle:
   Err.Clear
   'logerror
End Sub
                       

   ' ****************************************************
   ' ****   Various Setting methods
   ' ****
Sub SetActiveMovieBalance(ByVal Value As Long)
   On Local Error GoTo ErrLine
   'Set the balance using the slider
   If Not m_objMediaControl Is Nothing Then _
       m_objBasicAudio.Balance = Value
   Exit Sub
ErrLine:
   Err.Clear
End Sub

Sub SetActiveMovieVolume(ByVal Value As Long)
   On Local Error GoTo ErrLine
           
   'Set the volume using the slider
   If Not m_objMediaControl Is Nothing Then _
       m_objBasicAudio.Volume = Value
   Exit Sub
       
ErrLine:
   Err.Clear
End Sub
           
   ' ****************************************************
   ' ****   Info retrival Functions
   ' ****
Function GetVideoLength() As Double
   GetVideoLength = m_dblRunLength
End Function
   
Function GetVideoPos() As Double
   dblPosition = m_objMediaPosition.CurrentPosition
   GetVideoPos = dblPosition
End Function

Function VideoRunning() As Boolean
   VideoRunning = m_boolVideoRunning
End Function
           
   ' ****************************************************
   ' ****   The Timer event
   ' ****
Public Sub ActiveMovieTimerEvent()
   Dim nReturnCode As Long
   
   On Local Error GoTo errHandle
   
   If m_boolVideoRunning = True Then
           'obtain return code
       Call m_objMediaEvent.WaitForCompletion(100, nReturnCode)
               
             
       If nReturnCode = 0 Then ' Playing
           
           'get the current position for display
           dblPosition = m_objMediaPosition.CurrentPosition
           
       Else    ' Stopped
               ' NOTE: only occurs when clip FINISHES playin
               ' Set State
           m_boolVideoRunning = False
               ' Send event
           Video_ActiveMovie.VideoFinishedEvent
       End If
   End If
   Exit Sub
errHandle:
   'NOTE: Keep this as this method repeatedly raises errors
   '      without caring for my mental health
   Err.Clear
   Resume Next
End Sub
#4
General Programadores / Directshow Solucionado Pero No Del Todo
19 de Noviembre de 2005, 02:40:13 PM
 Buenas:
tengo un programa hecho en visual Basic que reproduce archivos de internet introduciendo la url , pero hay un problema y es que los reproduce poco a poco , como puedo hacer para que se reproduzca seguido??.

GRACIAS
#5
General Programadores / Problema Kn Visual Basic.
13 de Noviembre de 2005, 08:55:43 PM
 Me he bajado los dos directx sdk (8.0 y 8.1) pero kreo k no viene ningun ejemplo o por lo menos no lo veo....
#6
General Programadores / Problema Kn Visual Basic.
12 de Noviembre de 2005, 08:21:05 PM
 si que me lo he descargado pero yo no tengo windows Xp tengo el Millenium y no me deja instalarmelo por que es la version para Xp y he estado buscando una version para millenium pero no la he visto.
#7
General Programadores / Problema Kn Visual Basic.
12 de Noviembre de 2005, 01:41:20 PM
 He estado mirando eso que me has dicho pero no encuentro lo que me interesa ,
a lo mejor por que como esta en ingles no lo entiendo.
¿tu lo as visto?

#8
General Programadores / Problema Kn Visual Basic.
12 de Noviembre de 2005, 12:03:43 PM
 Esta vez escribiré bien.... :D
Sabeis si algún ejemplo sobre eso del video esque estado buscando por paginas pero no veo nada, y luego intente hacer un programa con direct show pero no consiguo ver peliculas de internet al meter su url.

gracias
#9
General Programadores / Problema Kn Visual Basic.
12 de Noviembre de 2005, 12:00:01 AM
 No esk kiera k me lo hagais , solo kiero k me ayudeis aunk me deis pistas, solo k lo necesito urgente.
gracias
#10
General Programadores / Problema Kn Visual Basic.
11 de Noviembre de 2005, 04:46:25 PM
 Wenas:
necesito hacer k mi programa reproduzca videos k se encuntran en internet mediante la url pero no knsigo hacer ese programa, aver si alguien me puede ayudar ha hacer este programa pero sin kntroles.
Gracias





Stratos es un servicio gratuito, cuyos costes se cubren en parte con la publicidad.
Por favor, desactiva el bloqueador de anuncios en esta web para ayudar a que siga adelante.
Muchísimas gracias.