MegaVideo and flash player (1 Viewer)

kroko

Portal Pro
February 4, 2007
428
420
55
Itzehoe
Home Country
Germany Germany
Hi,

I'm working on a program to fetch Megavideo links from certain sites. This part is already working. Now I want to play them via the flash player (ocx). It works, but to bypass the advertising I need to simulate the click on the buttons. Even that I could get working somehow.

Question:

Do anybody know if there is a way to get the url out of the megavideo link or xml url ?
What could be alternate used to play the swf objects ?

I was googling some hours but not with a good result.

Thank you.
kroko
 

Attachments

  • test.jpg
    test.jpg
    114.6 KB

kroko

Portal Pro
February 4, 2007
428
420
55
Itzehoe
Home Country
Germany Germany
Hurray,

there is way. I looked into the action script inside the mv_player with the great SourceTec SWF decompiler. There is something calculating the link inside the action script.

So the answer is that it is possible to get the link to play the flv directly using some calculations.

for example

h**p://www.megavideo.com/?v=2Q2RGOFP

parse the flash vars on that page for un,k1,k2,s

using my calculation will lead you to

h**p://www523.megavideo.com/files/cd74f37bdc37954f07505d164b57cd9f/

and sending this to vlc play the stream and we need no flash player at all.

Regards
kroko :)
 

cubii

Portal Pro
November 1, 2006
627
32
48
let me please test the plugin!

love to play with online videos, its really missing in mp (if you look @ xbmc for ex. there are many online vids plugins)
 

keith2045

Portal Pro
February 16, 2006
264
2
Missouri
Home Country
United States of America United States of America
I'm working on a similar plugin for sites like hulu.com and joost.com. I have never heard of megavideo.com. After looking over the site it looks like the content is provided by the end users, meaning that they have to upload it, is that correct?

Is your plugin going to play any videos from the website, or just certain types? Because in your screenshot it appears that you are grabbing just movies.

The only way i was able to play flash videos (videos that had their own player like the ones you are playing) is by integrating flash into my plugin. I was not able to play them within windows media player within MP. The videos would show up, but i couldnt click on them to play. The only other way i can think of is to launch a 3rd party utility to play the videos (like vlc).

I dont know if bypassing the ads is a good idea, I mean you should probably have a backup built within the plugin. Hulu is always changing their system to prevent us from directly accessing the stream, and I'm not sure if megavideo would do the same.

I would be very interested to see your code and figure out how it worked since i'm working on a similar plugin.
 

kroko

Portal Pro
February 4, 2007
428
420
55
Itzehoe
Home Country
Germany Germany
Hi keith2045,

basicly there are some sites providing links for megavideo. The plugin is grabing the links from a web page. Mostly movies which are in the cinemas right now. So this streams are not that legal. So I decided to keep my plugin just for me and maybe never release it.

But here is the code for the flash player. I made a mouse event to simulate the click on the form. Also I killed all process like firefox or iexplorer because the flash opens sometimes advertisment pages. The player itself uses the activeX part of flash. Its quite similar what you will find in OnlineVideos (flv player)

Take a look the attached user control. Its a bit dirty, but doing its job ;-)
If you have more question, let me know.

Btw playing flv with videolan is ok, as long you have the link,which could be tricky.

Regards

kroko
 

Attachments

  • Flash.zip
    30.6 KB

Users who are viewing this thread

Top Bottom