NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 49 50 51 52 53 … 93 Next »
CNN Video Plugin

 
  • 0 Vote(s) - 0 Average
CNN Video Plugin
HTPCGB
Offline

Member

Posts: 215
Threads: 15
Joined: Jun 2006
#1
2006-07-31, 01:47 AM
CNN (http://www.cnn.com) currently offers video news on their website. The popups that are used to display the video uses windows media player.

My Question:

Would it be possible for a plugin to search the cnn home page and category pages, look for the little video icon that precedes every video link, access the popup and then stream the video in gbpvr? (This all depends on cnn keeping the video icon the same.)

I just recently began to learn C# so this won't be something that I'll be working on soon...

Opinions are greatly welcome!
HTPCGB
Offline

Member

Posts: 215
Threads: 15
Joined: Jun 2006
#2
2006-07-31, 02:12 PM
I've decided to break this project down into five parts:

-A form to display and control the video
-some code that makes a list of links to the video popups
-some code that extracts the video from the popup and passes it to the video form
-a configuration form that allows the user to select which sections of CNN they want scanned for videos
-the user interface and skin that brings this all together

Right now I'm just trying to get a video to play on a form. I'm attempting to use a browser object to display the wmv directly, however; it just pops up windows media player. Is there any way to suppress this and force playback within the form?
HTPCGB
Offline

Member

Posts: 215
Threads: 15
Joined: Jun 2006
#3
2006-07-31, 03:21 PM
I ditched the browser window idea. I am now using a windows media player object that goes full screen when the form is initialized. Now I just have to make it respond to key presses (and thus remote control presses). Then I have to make a plugin that calls on this form in GBPVR.
boohiss
Offline

Junior Member

Posts: 30
Threads: 11
Joined: Apr 2006
#4
2006-07-31, 08:22 PM
If you are going to be scraping the HTML source of CNN pages for video links, let me know. I've got some scraping code for YouTube that I've been working on.

It isn't fast, but it does work.

Alternatively, if you already know a good way to scrape HTML source, let me know so that I can improve my slow-poke code.
HTPCGB
Offline

Member

Posts: 215
Threads: 15
Joined: Jun 2006
#5
2006-07-31, 09:36 PM
boohiss Wrote:If you are going to be scraping the HTML source of CNN pages for video links, let me know. I've got some scraping code for YouTube that I've been working on.

It isn't fast, but it does work.
I do plan on scraping the source code. I greatly appreciate your offer and I'll contact you when the plugin gets to that stage.

Quote:Alternatively, if you already know a good way to scrape HTML source, let me know so that I can improve my slow-poke code.
Sorry, I'm pretty much learning everything as I go along. If I find a faster method you'll be the first to know.


Right now I'm trying to decide between two ways of implementing this plugin:

The Windows Media Player Object:

I've made a simple form where a .wmv url is passed to it and the form plays the stream full screen. The problem is that CNN buried the location of the .wmv inside files upon files of javascript. This would require two seperate scrapers.

I have yet to find the actual location of the .wmv so if anyone can help, it would be greatly appreciated.

The video popup:http://www.cnn.com/video/player/player.h....kabc.kabc

The frame within the popup that displays the video: http://www.cnn.com/video/us/2006/07/30/g...ntent.html


The Web Browser Object:

I have made a second form with a web browser object on it. The web browser is currently hard coded to go to the above URL (the second one). The web browser has been sized so only the video is displayed. When the web browser is double clicked (and hence the embedded .wmv), it goes full screen.

If I could programattically "double click" the web browser when the form loads, this would be the ideal way to go as it would eliminate the need to sift through javascript. Does anyone know how to do this?

Screenshots are coming soon.
ccsnet
Offline

Member

Posts: 115
Threads: 16
Joined: Sep 2004
#6
2006-07-31, 10:20 PM
BTW - The BBC use a simular system here where our ISPs for the most part boost the feeds - UKers and x Pats may find it usefull and I reckon the same format / system your developing here would fit pretty closley.

Terran
http://www.letscommunicate.co.uk/carpc/

http://www.digital-car.co.uk/

Now also on Skynet ( SkyTV UK ) at wtv.letscommunicate.co.uk
HTPCGB
Offline

Member

Posts: 215
Threads: 15
Joined: Jun 2006
#7
2006-07-31, 10:58 PM (This post was last modified: 2006-08-17, 11:25 PM by HTPCGB.)
ccsnet Wrote:BTW - The BBC use a simular system here where our ISPs for the most part boost the feeds - UKers and x Pats may find it usefull and I reckon the same format / system your developing here would fit pretty closley.

Terran

If I manage to finish the CNN aspect, adding BBC support shouldn't be that difficult. (The BBC site seems to be more javascript oriented though..)


I was unable to get a screenshot that included the video being played so I made a demo instead. (see attached) .net 2.0 is required

It is currently hard coded to one URL. Double clicking the playing video will make it fullscreen. The idea would be to have the GBPVR plugin pass the form an URL and make it go fullscreen.

Now I'm going to start to work on the GBPVR plugin and UI.

Edit: There will sometimes be a *scream* commercial *scream* which CNN seems to control randomly.
HTPCGB
Offline

Member

Posts: 215
Threads: 15
Joined: Jun 2006
#8
2006-08-01, 09:52 PM
I am officialy stuck and am requesting some help.

It would really be a lot easier if I could play the .wmv directly. If that's even possible.

Here is the page that I'm looking at:

http://www.cnn.com/video/us/2006/07/28/h...ntent.html

and attached are the three .js files that are referenced on that page.

If someone with more javascript knowledge than me could find out the URL of the raw video, that would help a lot!
elite
Offline

Senior Member

Posts: 700
Threads: 26
Joined: Sep 2004
#9
2006-08-02, 08:27 AM
Here ya go:

Code:
http://dynamic.cnn.com/apps/tp/video/us/2006/07/28/henrehan.md.marijuana.gumballs.wttg/video.ws.asx

I don't know javascript myself - but got this through this

HTH
Alternative music reviews[URL="http://soundblab.com"]
[/URL]
ccsnet
Offline

Member

Posts: 115
Threads: 16
Joined: Sep 2004
#10
2006-08-02, 09:33 AM
HTPCGB Wrote:I am officialy stuck and am requesting some help.

It would really be a lot easier if I could play the .wmv directly. If that's even possible.

Here is the page that I'm looking at:

http://www.cnn.com/video/us/2006/07/28/h...ntent.html

and attached are the three .js files that are referenced on that page.

If someone with more javascript knowledge than me could find out the URL of the raw video, that would help a lot!
If I could DL I would.... can you attach via rapidshare.de ?

Terran
http://www.letscommunicate.co.uk/carpc/

http://www.digital-car.co.uk/

Now also on Skynet ( SkyTV UK ) at wtv.letscommunicate.co.uk
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (5): 1 2 3 4 5 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 3,080 2022-10-17, 12:44 AM
Last Post: sgilani
  Video streaming URL and parameters? cncb 1 1,936 2021-10-22, 06:58 PM
Last Post: sub
  Extras device - using hardware video encoder gdogg371 6 3,408 2021-03-09, 12:18 AM
Last Post: gdogg371
  Loading Local Video Files Syler 25 6,996 2021-03-07, 09:20 PM
Last Post: Syler
  New Systems Plugin kirschey 10 3,556 2020-11-14, 08:01 PM
Last Post: sub
  Resuming a video imilne 28 15,101 2016-10-30, 09:27 PM
Last Post: mvallevand
  How to tell when video playback has finished in web client? cncb 6 4,392 2015-09-29, 08:07 PM
Last Post: cncb
  VIdeo playback from plugin mvallevand 5 3,638 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 3,000 2014-11-14, 02:05 AM
Last Post: Benoire
  Inset Video - Stop mvallevand 2 2,139 2013-08-07, 09:57 PM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode