Posts: 31
Joined: Dec 2008
Reputation:
0
I have a swf file that I would like to play on XBMC. It's a live video stream that's pushed through a player. It seems like the player is built into the SWF. The problem is that there some some flash variables that need to be passed in otherwise the stream won't load. Here is the embed statement. Any ideas on how to get this to work on XBMC or even if it's possible?
<embed type="application/x-shockwave-flash" src="http://www.ndtv.com/convergence/ndtv/images/site/videozone/video_320x240.swf" style="" id="mpl" name="mpl" quality="high" wmode="transparent" flashvars="domain=www.ndtv.com/convergence&id=0&autoPlay=0&isAd=na" width="432" height="402">
Posts: 1,331
Joined: Jan 2008
Reputation:
3
rwparris2
Team-XBMC Python Developer
Posts: 1,331
you can't play swf files you have to find the actual media (probably flv) using wireshark or something similar.
Posts: 1,432
Joined: May 2004
Reputation:
73
BlueCop
Skilled Python Coder
Posts: 1,432
I just used wireshark and a plugin for firefox called adblock plus. you can bring up blockable items with ad block plus and it lists most items on the page and you can usually get the flv files or the configuration files needed for finding the rtmp urls. Then i match that up with the sniffing and see how to parse the rtmp information to get proper urls.
I didn't see info on how the live urls are formed but if i look at the swf maybe i can figure it out. i think they might just constant because they are just live streams and might not change.
I didn't decompile the swf but if you need any more help just let me know and i can take a look at it if you want.
good luck. i am really just an amateur here.
Posts: 1,432
Joined: May 2004
Reputation:
73
BlueCop
Skilled Python Coder
Posts: 1,432
after decompiling the swf i can see that it looks like the live streams are hardcoded.
some of these are slightly different so i thought i would post them
_loc2 = "rtmp://cp60963.live.edgefcs.net/live/";
stationid = "ndtv_india@6324";
_loc2 = "rtmp://cp40181.live.edgefcs.net/live";
stationid = "ndtve@2834";
stationid = "112124";
stationid = "ndtve@2834";
serverurl = "rtmp://cp40181.live.edgefcs.net:80/live";
stationid = "112183";
stationid = "ndtv_india@2835";
serverurl = "rtmp://cp40181.live.edgefcs.net/live";
Posts: 31
Joined: Dec 2008
Reputation:
0
Thanks all for the help. I actually used that tutorial from Voinage's code page when I started developing plugins. I'm moving on to my third now and ran into this SWF issue. Seems I'll have to hard code these values in (I found the same stuff form decompiling) since can't really script the intuitiveness of RTMP/wireshack finding.
Thanks again for all the help!
Posts: 15
Joined: Jan 2008
Reputation:
0
a7n9
Junior Member
Posts: 15
adityaag,
While you are at it, can you please have a look at Bharatmovies.com, Bhejafry.net, and the most stable of them all is rajshri.com.
I have my eyes on all these three from many months. I tried to create plugins myself, but faced with numerous challenge. Now, that we have Voinage's tutorial, it might get little easier. Rajshri.com is using flash more and more these days. WMV links are easy to find.
If you need any help, please let me know; I'm willing to chip in.
Posts: 31
Joined: Dec 2008
Reputation:
0
a7n9
I've made plugins for iDesiTV and BWcinema.com if you're interested in those. I'm wary of sites like Bhejafry.net because they're loaded with random spyware that gets pulled down to your computer when you play. I will have a look though in a virtual env or something.
Posts: 15
Joined: Jan 2008
Reputation:
0
a7n9
Junior Member
Posts: 15
spyware really? I use FF with Adblock plus and NoScript, and I'm hoping that will block this kind of stuff. I will be watchful, thanks. I also got your PM- thanks for that too.
Posts: 1
Joined: Mar 2009
Reputation:
0
Hello adityaag,
I found out about xmbc recently and saw this thread today, very excited. Can you please share the plugin for idesitv and bwcinema.com ?
Thanks
Deepak