Jump to content

Play not AVI Video


oMBRa
 Share

Recommended Posts

search the example scripts, threre is a flv/flash player which can help you into this.

Website: www.cerescode.comForum: www.forum.cerescode.comIRC: irc.freenode.net , Channel: #Ceres--------------------Autoit Wrappers, Great additions to your script (Must See) (By: Valuater)Read It Befor Asking Question Click Here...--------------------Join Monoceres's Forums http://www.monoceres.se--------------------There are three kinds of people: Those who make things happen, those who watch things happen, and those who ask, ‘What happened?’” –Casey Stengel
Link to comment
Share on other sites

@Andreik I downloaded ffmpeg, I converted my flv video to avi, then I tried to open it with guictrlcreate avi and I get this error: "the application or dll is not a valid image of windows".

@ChromeFan I found volly flash player but I dunno how to use it

Link to comment
Share on other sites

Hallo Ombra

To play .flv or other flashmovies directly in a gui you has to deal with activex components, a lot of freeware around like the example below from adobe, you probably already have the component installed in your system.

; ==================================================================
; Author: Kåre Johansson
; AutoIt Version: 3.1.1.55
; Description: Simple example: Embedding ShockwaveFlash object to play
; .flv and other type of flash movies from disk or directly as online streams
; Needs: Activex component file: Flash9f.ocx the Adobe Flash Player 9.0
; ==================================================================
#include <WindowsConstants.au3>
#include <GUIConstants.au3>

Global $oRP = ObjCreate("ShockwaveFlash.ShockwaveFlash")
If Not IsObj($oRP) Then 
  MsgBox(48,"ERROR...","Component object failed")
Exit
EndIf

Global Const $MainW = GUICreate('Shockwave player', 300, 200, -1, -1,BitOr($WS_OVERLAPPEDWINDOW,$WS_VISIBLE,$WS_CLIPSIBLINGS))
$GUIActiveX = GUICtrlCreateObj( $oRP, 0, 0 , 300 , 200)

With $oRP; Object tag pool
  .BackgroundColor = 0x000000
  .LoadMovie(0, 'http://www.youtube.com/v/-cBfl0-cC3o&hl=en&fs=1')
  .play
EndWith
GUISetState();Show GUI

While 1
    $msg = GUIGetMsg()
Select
  Case $msg = $GUI_EVENT_CLOSE
   ExitLoop
EndSelect
WEnd
$oRP = 0; free component
Exit

That's it - hope it helps, component doc at adobe

kjactive ;)

Edited by kjactive
Link to comment
Share on other sites

I dont have Activex component, I will download it then I will say u if it works... anyway thx

EDITED: I downloaded Flash9f.ocx and I put it in the folder system32, should I download also the Adobe Flash Player 9.0?

Edited by oMBra
Link to comment
Share on other sites

@Andreik I downloaded ffmpeg, I converted my flv video to avi, then I tried to open it with guictrlcreate avi and I get this error: "the application or dll is not a valid image of windows".

@ChromeFan I found volly flash player but I dunno how to use it

What command line you use to convert (parameters)?

When the words fail... music speaks.

Link to comment
Share on other sites

the problem isnt on deconding from flv to avi but in getting an error when i try to open it with guictrlcreate avi. and I need to converto from flv to avi not mp3... anyway ffmpeg says tha mp3 is an unknow encoder

Edited by oMBra
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...