jw-showcase-appletv
jw-showcase-appletv copied to clipboard
Adding EPG
Hello!,
I love it! And got everything to work :) Thank you for the good manual.
I know want to place a EPG (TV Guide) to a video (live stream). So when you choose a video and it shows you the description and button to play video I would like to show the EPG of that video/stream. Is this somehow easy to do with JW player? Have you got any tips or tricks how to get this done?
Thank you!
One way you could do this is by extending the ItemDetail template, you probably want to do something like the following:
- In
ItemDetail.js
when the view is registered make a XMLHttpRequest to your API that provides the EPG data. - When the data has been loaded you can modify the document and insert your data using TVML elements.
Thank you for you reply! Also This feed I've got is a .json format. In here there is a collection of all kinds of videos. First it shows the info about the program, time etc. But is it possible to extract the video urls in this feed and put them in a playlist? So all video's will be shown in 1 playlist.
So I got a .json file and want to show all videos in this .json file to show up in 1 playlist. I'm searching for it in Google but can't find anything to get this done.
Thanks again!
Yes! You'll need to parse the url, build a regular playlist with media item objects, and feed the media item objects into the player in order to play them.
If you look at the source code under appletv/jwplayer-appletv-web-app/js/PlaylistLoader.js you can modify the xml playlist code to achieve this.
There is also more documentation on the player and playlist objects from Apple developers here
Hope this helps!.
123mijnwebsite... wij zijn ook bezig met het ontwikkelen van een TVOS app op basis van de JW Player maar kunnen nog wel wat extra handjes gebruiken... ook hebben we eventueel wel interesse in je source code daar wij hetzelfde bouwen denk ik...en app met live tv zenders en epg data
mijn email is [email protected] hoop snel van je te horen
@123mijnwebsite and @telergyhd , very exciting to hear that more people plan to use the code! Forks are great, but we also welcome pull requests to Master. :-)
JL
Still working on it... Can't figure out how to add a rss/json feed to show a tv guid (EPG) tips are welcome :)