# ABC iView plugin

**URL:** https://forums.plex.tv/t/abc-iview-plugin/1821
**Category:** Dev/API Corner
**Tags:** plugin-dev
**Created:** [May 21, 2009, 2:17am UTC](https://forums.plex.tv/t/abc-iview-plugin/1821 "2009-05-21T02:17:20Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![cmccallu](https://avatars.discourse-cdn.com/v4/letter/c/838e76/32.png) [@cmccallu](https://forums.plex.tv/u/cmccallu)
#### Post date: [May 21, 2009, 2:17am UTC](https://forums.plex.tv/t/abc-iview-plugin/1821/1 "2009-05-21T02:17:20Z")

</div>

ABC iView plugin
Thinking about writing a plugin for ABC iView here in OZ and was wondering if anyone else is  
interested in helping out? I'm a Java developer rather than python but willing to give it a go  
to contribute something back to the plex community!  
  
Cheers  
Chris

---

<div class="post-metadata">

### Author: ![pdonovan](https://avatars.discourse-cdn.com/v4/letter/p/71c47a/32.png) [@pdonovan](https://forums.plex.tv/u/pdonovan)
#### Post date: [May 23, 2009, 1:03pm UTC](https://forums.plex.tv/t/abc-iview-plugin/1821/2 "2009-05-23T13:03:23Z")

</div>

> [@](#):
>
> Thinking about writing a plugin for ABC iView here in OZ and was wondering if anyone else is  
>   
> interested in helping out? I’m a Java developer rather than python but willing to give it a go  
>   
> to contribute something back to the plex community!

  
  
I started to write one a few weeks ago (just messing around for a single evening). I've got as far as scraping all the channel information and listing each programme for each channel and presenting the menus. It does build a URL of what should be the URL to view the show, but that's not working yet.  
  
I haven't done any of the setup required for a flash player (it's on the wiki somewhere) because I'm not sure how to get the co-ordinates of the controls for a player that resizes as you resize the window. I wonder if Plex's WebKit view uses a fixed size that you could set your browser window to in order to find the play,stop, scrub etc widget positions?  
  
I'm not really sure if I'll have much more time for working on it (a 4 month old baby takes a lot of time), so I've attached what I've got here. This DOES NOT play videos yet.  
  
Good luck!  
  
Paul

---

<div class="post-metadata">

### Author: ![cmccallu](https://avatars.discourse-cdn.com/v4/letter/c/838e76/32.png) [@cmccallu](https://forums.plex.tv/u/cmccallu)
#### Post date: [May 29, 2009, 2:42am UTC](https://forums.plex.tv/t/abc-iview-plugin/1821/3 "2009-05-29T02:42:35Z")

</div>

> [@](#):
>
> I started to write one a few weeks ago (just messing around for a single evening). I’ve got as far as scraping all the channel information and listing each programme for each channel and presenting the menus. It does build a URL of what should be the URL to view the show, but that’s not working yet.  
>   
>   
>   
> I haven’t done any of the setup required for a flash player (it’s on the wiki somewhere) because I’m not sure how to get the co-ordinates of the controls for a player that resizes as you resize the window. I wonder if Plex’s WebKit view uses a fixed size that you could set your browser window to in order to find the play,stop, scrub etc widget positions?  
>   
>   
>   
> I’m not really sure if I’ll have much more time for working on it (a 4 month old baby takes a lot of time), so I’ve attached what I’ve got here. This DOES NOT play videos yet.  
>   
>   
>   
> Good luck!  
>   
>   
>   
> Paul

  
  
Thanks Paul appreciate you giving me a copy of what you have done. I started to have a look at the list of channels etc and started to get a weird decoding error but could be my lack of  
knowledge on the framework etc. Totally understand with your time as I have 3 kids myself! Will try and take more of a look and let you know how I go.  
  
Thanks again  
Chris

---

<div class="post-metadata">

### Author: ![Ryan](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@Ryan](https://forums.plex.tv/u/Ryan)
#### Post date: [May 30, 2009, 3:55am UTC](https://forums.plex.tv/t/abc-iview-plugin/1821/4 "2009-05-30T03:55:50Z")

</div>

Cheers for the bundle, it is a great start.  
  
  
  
I had a go at working out the site configuration file. Using this, it does pull in the flash and display the right stream… however, I think the stream actually does a redirect (or something similar) to a summary page. I’m fairly certain it is using the correct URL as pasting it into a browser it will start the right stream, but only the second time around… (hard to explain!)  
  
  
  
So what is needed is for Plex to do a single click to start the video… not sure how to do that.  
  
  
  
Also, the stretching of the stream to fit the window is a bit tricky…  
  
Hope this helps someone.  
  
  
  
[ABC\_iView.xml](https://global.discourse-cdn.com/plex/original/3X/f/3/f37ded1945c4efd98988d8b1ad5305a55465f476.xml) (547 Bytes)

---

<div class="post-metadata">

### Author: ![cmccallu](https://avatars.discourse-cdn.com/v4/letter/c/838e76/32.png) [@cmccallu](https://forums.plex.tv/u/cmccallu)
#### Post date: [May 30, 2009, 5:49am UTC](https://forums.plex.tv/t/abc-iview-plugin/1821/5 "2009-05-30T05:49:00Z")

</div>

> [@](#):
>
> Cheers for the bundle, it is a great start.  
>   
>   
>   
> I had a go at working out the site configuration file. Using this, it does pull in the flash and display the right stream… however, I think the stream actually does a redirect (or something similar) to a summary page. I’m fairly certain it is using the correct URL as pasting it into a browser it will start the right stream, but only the second time around… (hard to explain!)  
>   
>   
>   
> So what is needed is for Plex to do a single click to start the video… not sure how to do that.  
>   
>   
>   
> Also, the stretching of the stream to fit the window is a bit tricky…  
>   
> Hope this helps someone.  
>   
>   
>   
> [ABC\_iView.xml](https://forums.plex.tv/uploads/default/original/3X/f/3/f37ded1945c4efd98988d8b1ad5305■■■465f476.xml) (547 Bytes)

  
  
Cheers Ryan just got a basic site configuration file myself and will take a look at what you have done also. Looking at the BBC iplayer configuration I think we need to configure some sort of event to pickup the need to click to  
start the video.  
  
Cheers  
Chris

---

<div class="post-metadata">

### Author: ![cmccallu](https://avatars.discourse-cdn.com/v4/letter/c/838e76/32.png) [@cmccallu](https://forums.plex.tv/u/cmccallu)
#### Post date: [May 31, 2009, 1:16pm UTC](https://forums.plex.tv/t/abc-iview-plugin/1821/6 "2009-05-31T13:16:52Z")

</div>

Below is part of my Site Configuration file for ABC iView. For the life of me I still cann’t get to play. Have also tried looking for the white pixel on the play arrow symbol.  
  
  
  
[codebox]   
  
\<site site=“http://.\*abc.net.au”   
  
plugin=“iview\_209\_loader.\*swf”   
  
initialState=“loading”   
  
version=“1.0”\>  
  
…   
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
[/codebox]  
  
  
  
Below is attached a picture of the iview player in action and paused.

 ![post-662-1243775756.png](https://global.discourse-cdn.com/plex/original/3X/7/5/7516ab36fc0029c90a407c8016a5237e60a7324c.png)

---

<div class="post-metadata">

### Author: ![rnio](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/rnio/32/388_2.png) [@rnio](https://forums.plex.tv/u/rnio)
#### Post date: [May 31, 2009, 5:46pm UTC](https://forums.plex.tv/t/abc-iview-plugin/1821/7 "2009-05-31T17:46:19Z")

</div>

I am in the US and am not able to play any of the streams from my web browser …  
  
  
  
So I have to guess whats happening 🙂  
  
  
  
Inside the SITE-CONFIG file I would create a STATE of “LOADING” as you did …   
  
  
  
[codebox]

  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
[/codebox]  
  
The COMMAND line you had in your site-config is something which is coming from PLEX (==\> user pressed the PAUSE button)  

> [@](#):
>

  
  
I like your site definition as you use WILDCARDS for the URLs and the PLAYER.  
  

> [@](#):
>
> \<site site=“http://.\*abc.net.au”   
>   
> plugin=“iview\_209\_loader.\*swf”   
>   
> initialState=“loading”   
>   
> version=“1.0”\>

```
	 <br />

```

  
If the size of the FLASH changes, you can use RELATIVE coordinates (e.g. 10 Pixel from the bottom ==\> y=-10)  
  
The HEIGHT of the flash can be left open with a HEIGHT-SETTING of "0" the Framwework will get the correct info.  
  
  
I do not know if you have defined other CONDITIONS / STATES.  
  
I would define the various conditions of PLAY / PAUSE / END etc. with the color of a pixel (or multiple of them combined with or )  
  
Once you have this, you can have the FW test any of these and move from one STATE to the next.

---

<div class="post-metadata">

### Author: ![rnio](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/rnio/32/388_2.png) [@rnio](https://forums.plex.tv/u/rnio)
#### Post date: [May 31, 2009, 5:48pm UTC](https://forums.plex.tv/t/abc-iview-plugin/1821/8 "2009-05-31T17:48:31Z")

</div>

> [@](#):
>
> I had a go at working out the site configuration file. Using this, it does pull in the flash and display the right stream… however, I think the stream actually does a redirect (or something similar) to a summary page. I’m fairly certain it is using the correct URL as pasting it into a browser it will start the right stream, but only the second time around… (hard to explain!)

  
  
Ryan, please can you supply one of these URLs ... I would like to give it a try too.

---

<div class="post-metadata">

### Author: ![cmccallu](https://avatars.discourse-cdn.com/v4/letter/c/838e76/32.png) [@cmccallu](https://forums.plex.tv/u/cmccallu)
#### Post date: [May 31, 2009, 11:43pm UTC](https://forums.plex.tv/t/abc-iview-plugin/1821/9 "2009-05-31T23:43:04Z")

</div>

> [@](#):
>
> Ryan, please can you supply one of these URLs … I would like to give it a try too.

  
  
I notice for example   
  
[http://www.abc.net.au/iview/#/view/371393](http://www.abc.net.au/iview/#/view/371393)  
  
redirects to   
  
[http://www.abc.net.au/iview/#/program/371393](http://www.abc.net.au/iview/#/program/371393)

---

<div class="post-metadata">

### Author: ![cmccallu](https://avatars.discourse-cdn.com/v4/letter/c/838e76/32.png) [@cmccallu](https://forums.plex.tv/u/cmccallu)
#### Post date: [May 31, 2009, 11:59pm UTC](https://forums.plex.tv/t/abc-iview-plugin/1821/10 "2009-05-31T23:59:36Z")

</div>

> [@](#):
>
> I am in the US and am not able to play any of the streams from my web browser …  
>   
>   
>   
> So I have to guess whats happening 🙂

  
No worries all to do with the geo location ip checks all these sites do. Really appreciate the help tho!  
  
Have implemented you suggestions and think you are on the right track but I don't think the condition is  
matching as I see an endless 'Executing Moving to state loading' on the Plex Media Server console. But  
has atleast moved me more forward than I could get.  
  

> [@](#):
>
> The COMMAND line you had in your site-config is something which is coming from PLEX (==\> user pressed the PAUSE button)

  
Thought that maybe the case. Cann't wait for the more extensive documentation around all this!  
  
  

> [@](#):
>
> I like your site definition as you use WILDCARDS for the URLs and the PLAYER.

  
Nothing magic here just copied others. Would clean things up once it's all working  
  
  

> [@](#):
>
> If the size of the FLASH changes, you can use RELATIVE coordinates (e.g. 10 Pixel from the bottom ==\> y=-10)  
>   
>   
>   
> The HEIGHT of the flash can be left open with a HEIGHT-SETTING of “0” the Framwework will get the correct info.

  
Appreciate all the points on this stuff  
  

> [@](#):
>
> I do not know if you have defined other CONDITIONS / STATES.

  
I do but thought I need to get it playing initially first  
  
  
Thanks again for all the help

---

<div class="post-metadata">

### Author: ![rnio](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/rnio/32/388_2.png) [@rnio](https://forums.plex.tv/u/rnio)
#### Post date: [June 1, 2009, 12:04am UTC](https://forums.plex.tv/t/abc-iview-plugin/1821/11 "2009-06-01T00:04:18Z")

</div>

Unfortunately I can not see much … (being in the US)  
  
  
  
but it looks to me that the [http://www.abc.net.au/iview/#/program/371393](http://www.abc.net.au/iview/#/program/371393)  
  
  
  
leads to the “start-page”  
  
  
  
On the start-page, once you click on the episode, you get to this page:  
  
  
  
[http://www.abc.net.au/iview/#/view/371393](http://www.abc.net.au/iview/#/view/371393)  
  
  
  
  
  
so the request does not necessarily get REDIRECTED, but rather the system checks, if you are all set for iView (e.g. it is fully loaded etc.) and in case you are not ready … you get sent to the start-page first.  
  
  
  
Another possibility might be that your HTTP headers will be checked, if you got to the playable video through the star-page or not … if not … you get presented with the start page.  
  
  
  
Anyhow this should not be a big problem, if the SITE-CONFIG file is checking for this and clicks in the right place to get the iView stream started.

---

<div class="post-metadata">

### Author: ![rnio](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/rnio/32/388_2.png) [@rnio](https://forums.plex.tv/u/rnio)
#### Post date: [June 1, 2009, 12:10am UTC](https://forums.plex.tv/t/abc-iview-plugin/1821/12 "2009-06-01T00:10:27Z")

</div>

Please be careful HOW you get the COLOR info … I used a windows system first … to do the screen shots elicit colors etc. …  
  
  
  
Only the size and locations I got right … but when it came to colors I was totally off … my MAC has different colors … thus I could not get my site-config to work … until I did a screen shot on the mac and used the MAC OS tool to get the color codes of the location I was looking for.  
  
  
  
Sometimes it helped that I gave a few color options and have the FW look for any possible match … this way … if I was off a few pixels … I still got a match.

---

<div class="post-metadata">

### Author: ![cmccallu](https://avatars.discourse-cdn.com/v4/letter/c/838e76/32.png) [@cmccallu](https://forums.plex.tv/u/cmccallu)
#### Post date: [June 9, 2009, 1:04pm UTC](https://forums.plex.tv/t/abc-iview-plugin/1821/13 "2009-06-09T13:04:27Z")

</div>

Hi mio,  
  
Thanks again for all the pointers and help but still seem to be having issues. Been very busy the last week or so but will hopefully have time to again soon. Would be  
  
great to have some sort of tool that would capable the screen interaction and use that as the basis for developing the plugin.  
  
  
  
Cheers  
  
Chris

---

<div class="post-metadata">

### Author: ![pdonovan](https://avatars.discourse-cdn.com/v4/letter/p/71c47a/32.png) [@pdonovan](https://forums.plex.tv/u/pdonovan)
#### Post date: [June 10, 2009, 7:36am UTC](https://forums.plex.tv/t/abc-iview-plugin/1821/14 "2009-06-10T07:36:41Z")

</div>

> [@](#):
>
> Hi mio,  
>   
> Thanks again for all the pointers and help but still seem to be having issues. Been very busy the last week or so but will hopefully have time to again soon. Would be  
>   
> great to have some sort of tool that would capable the screen interaction and use that as the basis for developing the plugin.  
>   
>   
>   
> Cheers  
>   
> Chris

  
  
Are you able to attach the site config xml file that you're currently working with? I'll have a look and see if I can get it working (though you probably know more than me about it now).  
  
Cheers,  
  
Paul

---

<div class="post-metadata">

### Author: ![cmccallu](https://avatars.discourse-cdn.com/v4/letter/c/838e76/32.png) [@cmccallu](https://forums.plex.tv/u/cmccallu)
#### Post date: [June 11, 2009, 12:37am UTC](https://forums.plex.tv/t/abc-iview-plugin/1821/15 "2009-06-11T00:37:50Z")

</div>

> [@](#):
>
> Are you able to attach the site config xml file that you’re currently working with? I’ll have a look and see if I can get it working (though you probably know more than me about it now).  
>   
>   
>   
> Cheers,  
>   
>   
>   
> Paul

  
  
Thanks Paul that would be appreciate! I think once we can get a working site configuration code we are well on the way to a working plugin.

---

<div class="post-metadata">

### Author: ![bulge](https://avatars.discourse-cdn.com/v4/letter/b/c68b51/32.png) [@bulge](https://forums.plex.tv/u/bulge)
#### Post date: [July 22, 2009, 11:41pm UTC](https://forums.plex.tv/t/abc-iview-plugin/1821/16 "2009-07-22T23:41:58Z")

</div>

Very interested in this working… and happy to help if I can.  
  
  
  
These guys have worked out how to pull flash streams off the iview direct, techniques are in there to pull the token required and how to check whether your ISP has an unmetered peering agreement, or to pull from akamai.  
  
  
  
I don’t know my way around python, but am keen to help out… can bash some stuff.  
  
  
  
[http://forums.whirlpool.net.au/forum-repli…3&p=16#r305](http://forums.whirlpool.net.au/forum-replies.cfm?t=1212283&p=16#r305)  
  
  
  
get the bash version (you’ll need to change the token url on line 128 in the bash version)…  
  
  
  
curl -q [http://www2b.abc.net.au/iView/Services/iVi…shaker.asmx/isp](http://www2b.abc.net.au/iView/Services/iViewHandshaker.asmx/isp) \> auth.xml  
  
  
  
Then I guess you can get plex to play the flash streams directly??

---

<div class="post-metadata">

### Author: ![genroxbro](https://avatars.discourse-cdn.com/v4/letter/g/ac91a4/32.png) [@genroxbro](https://forums.plex.tv/u/genroxbro)
#### Post date: [July 28, 2009, 10:42pm UTC](https://forums.plex.tv/t/abc-iview-plugin/1821/17 "2009-07-28T22:42:54Z")

</div>

I still work with AMS6 and never worked with LUA. Its not available in my setting.  
  
  
  
I think I dont use the right terms to find out how to get a lua -plugin into my AMS6.  
  
  
  
Could someone guide me how to get things running, because I would really like to use this plugin lua with this great convertiontool for my projects.  
  
  
  
Information would be very welcome   
  
\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
  
Website I designed for [instant cash advance](http://www.paydaytown.com) company.

---

<div class="post-metadata">

### Author: ![danethomas](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/danethomas/32/81951_2.png) [@danethomas](https://forums.plex.tv/u/danethomas)
#### Post date: [December 22, 2009, 1:12am UTC](https://forums.plex.tv/t/abc-iview-plugin/1821/18 "2009-12-22T01:12:49Z")

</div>

Any progress on this - would love to have this working.

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)
#### Post date: [December 20, 2019, 8:26pm UTC](https://forums.plex.tv/t/abc-iview-plugin/1821/19 "2019-12-20T20:26:57Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
