Jump to content


Photo

Super Video Play Dll 2


  • Please log in to reply
45 replies to this topic

#1 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 17 July 2006 - 01:26 PM

OK, the Super Video Play 2 is out.

If you download it, you might think, "why version 2, it has less functions".
But this version is created with a more stable and faster method of playing video.
The effect and info functions are not present anymore, but they didn't seem to work after all.

Main SVP2 info:
- Uses automatic client window creation to stop flashing video playback, and to enable full screen playback.

- Improved streaming support, now video streams without a file extension like "domain/video/" can be used.

- A status function to check wether the the media is playing, paused and go on ...

- More than one media handle can be played at the same time

Supported media types (tested so possibly not limited to):
AVI,WMV,MPG,MP3,AVI,JPG,BMP,GIF

Example screenshot:
(link removed)

Please don't ask me about the Max WinAPI dll included for the example, no offical release is made yet.
- Edit: Now Max WinAPI is released, go here.


(link removed)

Note, to make a new video window just use SVP_Open(file) to create another handle.
The DLL is made to support up to 1000 handles at the same time.

Edited by h0bbel, 19 September 2013 - 06:53 PM.

  • 0
The empty archive bug should be fixed on my site.
Please use the "report bug" button on my site to report bugs, makes things clearer.

#2 undeadragonslayer

undeadragonslayer

    GMC Member

  • New Member
  • 5 posts

Posted 17 July 2006 - 01:45 PM

a link would help...
but it sounds good, although kinda hard w/o a link.
  • 0

#3 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 17 July 2006 - 01:54 PM

a link would help...
but it sounds good, although kinda hard w/o a link.

<{POST_SNAPBACK}>


Hehe totally forgotten :)
Now its in the post
  • 0
The empty archive bug should be fixed on my site.
Please use the "report bug" button on my site to report bugs, makes things clearer.

#4 zephroelectro

zephroelectro

    GMC Member

  • New Member
  • 265 posts

Posted 12 August 2006 - 03:44 AM

woot!! ^_^

Edited by zephroelectro, 10 January 2007 - 06:11 PM.

  • 0

#5 freaky_entertainment

freaky_entertainment

    GMC Member

  • GMC Member
  • 457 posts

Posted 12 August 2006 - 05:06 PM

Hm ... I can't make anything with it - on the init function - it displays error with the resources ... check it :)
  • 0

Cxn8eVf.pnggVywn2c.pngckddPHm.png


#6 IceMetalPunk

IceMetalPunk

    InfiniteIMPerfection

  • GMC Elder
  • 9603 posts
  • Version:GM:Studio

Posted 12 August 2006 - 05:21 PM

I got it to work. You need to make a room, with an object that uses the *explained* scripts.

Anyway, it's nice, but since the video is in a pop-up, it's a little hard to control it from GM with user input. If it could be embedded in the window, then it'd be great.

-IMP :P :)

*EDIT* Nevermind, just saw the SVP_Window() script. Now if only I could get the default video dimensions to use in that script....

*EDIT2* Also, as the speed is being changed, the video pauses... that's a little annoying.

*EDIT3* I don't know about the other audio functions, but at least the bass functions don't work. The definition for GetBass wasn't even in there, so I added it based on the other function names. That didn't cause any errors, so I guess it was right, but it always returns 0, and I don't think the SetBass function works at all.

Edited by IceMetalPunk, 12 August 2006 - 06:19 PM.

  • 0

:GM123: Are you an artist who likes creating original creature designs? Maybe you can help out with Elementa here! Give it a look; you might like the idea :)

:bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny:


#7 Catscratch

Catscratch

    GMC Member

  • New Member
  • 225 posts

Posted 12 August 2006 - 07:43 PM

This sounds really coooool!!! Ain't on a computer with GM right now but i'll sure try it out!!!
  • 0

#8 DefuzionGames

DefuzionGames

    GMC Member

  • GMC Member
  • 1460 posts
  • Version:Unknown

Posted 13 August 2006 - 01:33 PM

this is important can it play streaming media within the GM windo??!!!

i.e. mms:// and rtsp: feeds say bbcnews24 live channel??
  • 0

#9 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 14 August 2006 - 10:13 AM

this is important  can it play streaming media within the GM windo??!!!

i.e.  mms:// and rtsp: feeds say bbcnews24 live channel??

<{POST_SNAPBACK}>


Thanks, for reminding me about streams.
I didn't try it before, but it works!! :D
  • 0
The empty archive bug should be fixed on my site.
Please use the "report bug" button on my site to report bugs, makes things clearer.

#10 Sindarin

Sindarin

    Indie Game Developer

  • New Member
  • 1644 posts
  • Version:GM:HTML5

Posted 14 August 2006 - 10:20 AM

I tried it, Really good.

-edit: can you make that it does not show the mouse cursor when the video is playing?

Does it use DirectX or mci?

Edited by Sindarin, 14 August 2006 - 10:20 AM.

  • 0
GM 8.1 / GM:HTML5 User

#11 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 14 August 2006 - 10:33 AM

I tried it, Really good.

-edit: can you make that it does not show the mouse cursor when the video is playing?

Does it use DirectX or mci?

<{POST_SNAPBACK}>


MCI, it could be done in gml, but a dll is faster because the commands in a dll are compiled.
Mayb will make make the mouse hiding in a further version.

Edited by h0bbel, 14 August 2006 - 10:39 AM.

  • 0
The empty archive bug should be fixed on my site.
Please use the "report bug" button on my site to report bugs, makes things clearer.

#12 DefuzionGames

DefuzionGames

    GMC Member

  • GMC Member
  • 1460 posts
  • Version:Unknown

Posted 16 August 2006 - 08:12 PM

how does it work can u make an exmple
how do i play streaming gmedia

http://wwitv.com/w_tv/8267.asx

e.g link above!

i used svp-init();
then handle=svp_open("http://wwitv.com/w_tv/8267.asx");
then svp_play(handle);


EDIt: it does work only if it is a stream with an extension like wmv,mpeg,asx etcc...
some stremas which have no extension will not be played.

BUT how do you close the video window after stopping playback i cant close the video window.

Edited by DefuzionGames, 16 August 2006 - 09:21 PM.

  • 0

#13 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 18 August 2006 - 09:48 AM

how does it work can u make an exmple
how do i play streaming gmedia

http://wwitv.com/w_tv/8267.asx

e.g link above!

i used svp-init();
then handle=svp_open("http://wwitv.com/w_tv/8267.asx");
then svp_play(handle);


EDIt: it does work only if it is a stream with an extension like wmv,mpeg,asx etcc...
some stremas which have no extension will not be played.

BUT how do you close the video window after stopping playback i cant close the video window.

<{POST_SNAPBACK}>


You're not opening the stream directly, because you are using a url with http:// protocol.
You have to download this file and open it, than you see this code:
<ASX version = "3.0">
    <entry clientskip="no" skipifref="no">
	<Ref href = "mms://wmslive.stream.aol.com/live%5Cabc%5Cnow"/>
    </entry>
</ASX>


You can see that the file is a sort of playlist containing the mms:// stream url, so you have to call handle=SVP_Open("mms://wmslive.stream.aol.com/live%5Cabc%5Cnow");.

I've forgot the close function, i'l send you a message when that is added to the DLL.
  • 0
The empty archive bug should be fixed on my site.
Please use the "report bug" button on my site to report bugs, makes things clearer.

#14 DefuzionGames

DefuzionGames

    GMC Member

  • GMC Member
  • 1460 posts
  • Version:Unknown

Posted 19 August 2006 - 11:41 AM

explain this

alll these are .asx live streams

http://wwitv.com/w_tv/7826.asx
http://wwitv.com/w_tv/7987.asx
http://wwitv.com/w_tv/8123.asx

all work in wmplayer but only the first works with your superplay dll

try it

and tell me why please.
  • 0

#15 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 20 August 2006 - 03:29 PM

explain this

alll these are .asx live streams

http://wwitv.com/w_tv/7826.asx
http://wwitv.com/w_tv/7987.asx
http://wwitv.com/w_tv/8123.asx

all work in wmplayer but only the first works with your superplay dll

try it

and tell me why please.

<{POST_SNAPBACK}>


I can explain why the first one is the only one working.

The first file contains this text:
mms://s-lon-01a.global-mix.net/e-music

The second file contains this text:
<ASX version = "3.0">
    <entry clientskip="no" skipifref="no">
	<Ref href = "mms://live.wm.p1.str3.com/000999_bc_v365_telecaprisport_mi"/>
    </entry>
</ASX>
The content of the third file is this:
<ASX version = "3.0">
    <entry clientskip="no" skipifref="no">
	<Ref href = "mms://kibo.hopto.org/IslamVideo"/>
    </entry>
</ASX

As you see, the 1st file only contains a url, the 2nd and 3rd contain a ASX playlist for the stream.
My DLL only understands video urls, not ASX playlists, so only the first file is played.

Tip: You can read the ASX file contents by simply opening the url in notepad.
  • 0
The empty archive bug should be fixed on my site.
Please use the "report bug" button on my site to report bugs, makes things clearer.

#16 Sindarin

Sindarin

    Indie Game Developer

  • New Member
  • 1644 posts
  • Version:GM:HTML5

Posted 20 August 2006 - 04:24 PM

I like this dll. But I thought this dll used DirectX like Roach's.
Anyways is good, I just need to hide the mouse cursor over the video.
  • 0
GM 8.1 / GM:HTML5 User

#17 just4fun

just4fun

    GMC Member

  • New Member
  • 16 posts

Posted 20 August 2006 - 08:10 PM

can anyone make example for me, i can`t play any links. when i play your example then there is nothing to see onley one black window
  • 0

#18 Catscratch

Catscratch

    GMC Member

  • New Member
  • 225 posts

Posted 25 August 2006 - 02:31 PM

just4fun: Are you on the Internet when playing???

Anyway. May I sell things I use this with? You will of course get credits.
  • 0

#19 DefuzionGames

DefuzionGames

    GMC Member

  • GMC Member
  • 1460 posts
  • Version:Unknown

Posted 26 August 2006 - 10:28 PM

hey thanks .

really alot
streamin gis now working
ive got the vol things working
but the setPos thing does NOT work atall


maybe you could make an exmaple to show off all the functions and show that they do work!!

when i use the SVP_SetPos(playob.Handle,5000)
it just pauses the screen
and if i use the SVP_Pause and Resume function before and after the setpos respectively it just restarts from the start.

so i s it a bug!!

EDIT sorted..

after you set pos you have to use the SVP_Play(handle) function to play from that pos cool

BUT now the brightness things dont work

Edited by DefuzionGames, 27 August 2006 - 12:00 AM.

  • 0

#20 DefuzionGames

DefuzionGames

    GMC Member

  • GMC Member
  • 1460 posts
  • Version:Unknown

Posted 28 August 2006 - 12:35 AM

how do you play th evid using fullscreen?? and then go back to embedded mode by pressing a key key say SPACE
  • 0

#21 contactnero

contactnero

    GMC Member

  • GMC Member
  • 12 posts

Posted 01 September 2006 - 09:21 AM

man, pls make a example and upload it to a server...
  • 0

#22 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 01 September 2006 - 11:47 AM

how do you play th evid using fullscreen?? and then go back to embedded mode by pressing a key key say SPACE

<{POST_SNAPBACK}>


Go fullscreen:
SVP_Window ( Handle, 0, 0,0 ,monitor_width,monitor_height);

Go back:
SVP_Window ( Handle, window_handle(), x,y,width,height);

You can put this codes in key events and there you go :D

Edited by h0bbel, 01 September 2006 - 11:48 AM.

  • 0
The empty archive bug should be fixed on my site.
Please use the "report bug" button on my site to report bugs, makes things clearer.

#23 DefuzionGames

DefuzionGames

    GMC Member

  • GMC Member
  • 1460 posts
  • Version:Unknown

Posted 01 September 2006 - 08:05 PM

thats good but you took your time..

why do the brightness and gamma functions not work

also what the min max values!!!!!

i have a 3d card win xp
  • 0

#24 pyrozz

pyrozz

    Everything Else

  • New Member
  • 487 posts

Posted 18 October 2006 - 03:26 AM

Thanks a bunch! I am working on a program for broadcasting news, every morning at school we broadcast a 5 min session of news annoncements, etc. And this program I'm making with game maker works with the chroma key on our main video mixing board so we can overlay the program ontop of it. This DLL will work perfectly, I mean PERFECTLY for it. THANK YOU!
  • 0

#25 gmazan

gmazan

    Studio 61 Leader

  • Validating
  • 171 posts

Posted 26 October 2006 - 07:43 PM

I really need an example for this. I don't understand it, so please don't complain. And Sindrian can't you just be lazy and when the mouse goes over the window the mouse sprite becomes and transparent sprite?

#26 foslock

foslock

    Do you concurr?

  • New Member
  • 716 posts

Posted 28 October 2006 - 08:03 PM

Wow, this is really awesome. I made a friend a quick program for him so he could stream vids (appropriate) past his stupid parental controls. He's 16 for crying out loud!!
  • 0
Proud Member of 64Digits. Join NOW!

If you need any kind of help with anything GML related (cept for 3D) Please IM at Foslock on AIM.

#27 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 31 October 2006 - 06:35 PM

Version 2 update ...
  • 0
The empty archive bug should be fixed on my site.
Please use the "report bug" button on my site to report bugs, makes things clearer.

#28 DefuzionGames

DefuzionGames

    GMC Member

  • GMC Member
  • 1460 posts
  • Version:Unknown

Posted 10 January 2007 - 03:55 PM

can you take screenshots with this version?
  • 0

#29 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 10 January 2007 - 09:37 PM

can you take screenshots with this version?

<{POST_SNAPBACK}>


No, i think the "recording" status is a little confusing, the DLL actually can't record, i will remove that.
  • 0
The empty archive bug should be fixed on my site.
Please use the "report bug" button on my site to report bugs, makes things clearer.

#30 Fedor

Fedor

    GMC Member

  • New Member
  • 294 posts

Posted 10 January 2007 - 10:53 PM

why don't you make a example to a streaming file? :)
  • 0

#31 Sindarin

Sindarin

    Indie Game Developer

  • New Member
  • 1644 posts
  • Version:GM:HTML5

Posted 17 March 2007 - 06:47 PM

I really need an example for this. I don't understand it, so please don't complain. And Sindrian can't you just be lazy and when the mouse goes over the window the mouse sprite becomes and transparent sprite?


It's Sindarin, and I mean hiding the actual windows cursor when the video is playing like what many commercial games do, not a sprite.

Also hobbel the example you provide in the zip does not work. It gives me an external defining error. Can you remake it, and please do not use the maxwinapi with it because it becomes even more complicated.

Finally, is there a function to check if the codec, for the video you are trying to play, exists?

Edited by Sindarin, 17 March 2007 - 06:48 PM.

  • 0
GM 8.1 / GM:HTML5 User

#32 Relinquished

Relinquished

    GMC Member

  • New Member
  • 265 posts

Posted 07 April 2007 - 01:01 AM

um, i get this error here:
Posted Image
What di I need to do to get that?
  • 0

#33 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 08 April 2007 - 10:40 AM

um, i get this error here:
Posted Image
What di I need to do to get that?

<{POST_SNAPBACK}>


You should install this: http://download.divx....2-01112006.exe
  • 0
The empty archive bug should be fixed on my site.
Please use the "report bug" button on my site to report bugs, makes things clearer.

#34 Relinquished

Relinquished

    GMC Member

  • New Member
  • 265 posts

Posted 08 April 2007 - 11:54 PM

Now when it plays the video, it goes too fast.
  • 0

#35 a2h

a2h

    GMC Member

  • New Member
  • 382 posts

Posted 09 April 2007 - 01:54 AM

You should add a feature that automatically resizes the video to fit to the video area as large as possible without losing its aspect ratio.

Also - how do I make the video get displayed in a Game Maker window, not a Max WinAPI window? I have gone through all the help files and this topic to no avail.

Edited by rctxtreme, 10 April 2007 - 06:27 AM.

  • 0

ion.developments does not exist, ignore my user title

#36 DefuzionGames

DefuzionGames

    GMC Member

  • GMC Member
  • 1460 posts
  • Version:Unknown

Posted 09 April 2007 - 03:01 PM

hey please can u make a save_snapshot function ???!!!
i really need i as the screen sav part function doesnt work with your movies

ps. i tried the following stream in windows media player and it works (the link is jus an example of "http://domain/file/" which you said openStream could play)

however when i try the link with SVP_open and SVP_OpenStream it doesnt work..it loads the vid but doesnt play it.

Edited by DefuzionGames, 09 April 2007 - 03:12 PM.

  • 0

#37 -Vampire-

-Vampire-

    GMC Member

  • New Member
  • 1 posts

Posted 03 June 2007 - 09:00 PM

Good Dll for video streaming. By the way, if connection is not fast, video playback is not smooth. Can you embed some sort of a buffer?
  • 0

#38 DefuzionGames

DefuzionGames

    GMC Member

  • GMC Member
  • 1460 posts
  • Version:Unknown

Posted 01 July 2007 - 08:59 PM

for some reason i cant seem to puse a video using SVP_Pause(global.Handle) BUT sometimes when i use the command from the DEBUG execute command function it works...why is this

fixed....use
script_execute(SVP_Pause,global.Handle);

Edited by DefuzionGames, 01 July 2007 - 09:05 PM.

  • 0

#39 DefuzionGames

DefuzionGames

    GMC Member

  • GMC Member
  • 1460 posts
  • Version:Unknown

Posted 04 September 2007 - 06:34 PM

did you manage to get a snapshot current vid playing function
  • 0

#40 thesynapse

thesynapse

    GMC Member

  • New Member
  • 1 posts

Posted 03 April 2008 - 07:33 AM

Hello all.....I would like to ask you if there`s a way to integrate these dll`s with AutoIt..I`ve been trying to do it for a couple of day and nothing came out...In AutoIt i don`t have a REAL return type what can I use to replace that. Oh and btw every time I try to call a function it returns: @error = 3 "function" not found in the DLL file....
Thx in advanced and hope some one will answer

Edited by thesynapse, 03 April 2008 - 07:34 AM.

  • 0

#41 Botyto

Botyto

    GMC Member

  • GMC Member
  • 1252 posts

Posted 19 August 2008 - 07:52 PM

Really sorry, wrong topic...

Edited by Botyto, 19 August 2008 - 07:56 PM.

  • 0

#42 newman

newman

    GMC Member

  • New Member
  • 5 posts

Posted 03 January 2009 - 08:34 PM

Hello,
Any chance you can release the source code for the DLL ? I am using it for video streaming but it's not very good, it can be improved.
I can try to do that.
PM me please if you think you can give me the source code.

Thank you
  • 0

#43 jar913

jar913

    GMC Member

  • GMC Member
  • 99 posts
  • Version:GM8

Posted 26 August 2012 - 07:45 PM

Hi!

When playing a local video file, does this dll load the file once into the memory or does it stream the file?
I'm working on a network media application, and need a video dll that does not just load the file once, but streams it like for example VLC player.
  • 0

#44 fabiao724

fabiao724

    GMC Member

  • New Member
  • 5 posts
  • Version:GM:Studio

Posted 27 January 2014 - 09:30 PM

PLEASE SHARE THE LINK!!!


  • 0

#45 master123

master123

    GMC Member

  • GMC Member
  • 68 posts
  • Version:GM8

Posted 11 October 2014 - 07:40 AM

I am with the last commenter. I downloaded this before and I want ths specific player example. Does anyone still have the link?

 

Thanks.


  • 0

#46 Razon

Razon

    GMC Member

  • GMC Member
  • 268 posts
  • Version:GM:Studio

Posted 14 October 2014 - 12:20 PM

Here's a mirror link for the DLL.

 

http://www.mediafire...bdc5qzmtc2w65dc


Edited by Razon, 14 October 2014 - 12:53 PM.

  • 0