Help needed with SWF and Flash Args
#1
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&amp;id=0&amp;autoPlay=0&amp;isAd=na" width="432" height="402">
Reply
#2
you can't play swf files you have to find the actual media (probably flv) using wireshark or something similar.
Always read the XBMC online-manual, FAQ and search and search the forum before posting.
For troubleshooting and bug reporting please read how to submit a proper bug report.

If you're interested in writing addons for xbmc, read docs and how-to for plugins and scripts ||| http://code.google.com/p/xbmc-addons/
Reply
#3
What is the url of the page that has the live stream?

i looked at the site and tired

PageURL: http ://www.ndtv.com/convergence/ndtv/video/video.as px?id=49745

swfUrl: http://www.ndtv.com/convergence/ndtv/ima...20x240.swf

tcUrl: rtmp://96.17.74.68:1935/ondemand?_fcs_vhost=cp26136.edgefcs.net

PlayPath: flashvods/100k/04012009_n_nez_PrimeshowWeThePeopleEng_256k

with a little looking i found that it looks for http://www.ndtv.com/convergence/ndtv/vid...p?id=49745
that id is the same as the one from the page url and you get some text like below.

&videoname=04012009_n_nez_PrimeshowWeThePeopleEng_256k&headline=Best of We the people 2008

I think you have to parse that as to the playpath for the videos.

I am looking at the live streams now
Reply
#4
NDTV India Live
pageUrl: http://www.ndtv.com/convergence/ndtv/vid....aspx?id=1
swfUrl: http://www.ndtv.com/convergence/ndtv/ima...20x240.swf
tcUrl: rtmp://cp60963.live.edgefcs.net/live
PlayPath: ndtv_india@6324

NDTV 24x7 Live
pageUrl: http://www.ndtv.com/convergence/ndtv/vid....aspx?id=0
swfUrl: http://www.ndtv.com/convergence/ndtv/ima...20x240.swf
tcUrl: rtmp://cp40181.live.edgefcs.net/live
PlayPath: ndtve@2834

is what i am seeing. i don't know if you are creating a script or something but i think you should be able to get it working

Edit:
rtmp://cp40181.live.edgefcs.net/live/ndtve@2834


I don't think there is any protection based on swfurl or pageurl so i think you can combined the tcurl and playpath to a single url and have it play correctly. like

NDTV India Live
rtmp://cp60963.live.edgefcs.net/live/ndtv_india@6324

NDTV 24x7 Live
rtmp://cp40181.live.edgefcs.net/live/ndtve@2834

anyway i hope you get working what you wanted working.
Reply
#5
BlueCop Wrote:snip...
is what i am seeing. i don't know if you are creating a script or something but i think you should be able to get it working

snipp...

anyway i hope you get working what you wanted working.

Thanks for the info. Did you get this by decompiling the swf? I just went through that process this afternoon to find this information but was wondering if you found it through clever means that I could script or just brute force by hand.

Thanks.
Reply
#6
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.
Reply
#7
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";
Reply
#8
http://wiki.xbmc.org/?title=HOW-TO_write...s_for_XBMC


Wink
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#9
Gamester17 Wrote:http://wiki.xbmc.org/?title=HOW-TO_write...s_for_XBMC

while that is an excellent guide. i don't really see where they use wireshark?

http://www.actionscript.org/resources/ar...Page1.html

is an interesting read on rtmp/wireshark and i think will be of help too for discovering rtmp information.
Reply
#10
BlueCop Wrote:while that is an excellent guide. i don't really see where they use wireshark?

http://www.actionscript.org/resources/ar...Page1.html

is an interesting read on rtmp/wireshark and i think will be of help too for discovering rtmp information.

That is just the beginning Smile More is planned for that tutorial.
Also that is a nice link, thanks!
Always read the XBMC online-manual, FAQ and search and search the forum before posting.
For troubleshooting and bug reporting please read how to submit a proper bug report.

If you're interested in writing addons for xbmc, read docs and how-to for plugins and scripts ||| http://code.google.com/p/xbmc-addons/
Reply
#11
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!
Reply
#12
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.
Reply
#13
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.
Reply
#14
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.
Reply
#15
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
Reply

Logout Mark Read Team Forum Stats Members Help
Help needed with SWF and Flash Args0