YouTube v2.0 Plugin for Showtime PS3 Media Player is Updated


68w ago - Following up on his previous release, this weekend PlayStation 3 developer facanferff has updated the YouTube Plugin to version 2.0 for Showtime PS3 Media Player dubbed the New Experience with the changes outlined below followed by v2.2, v2.21 and v2.2.5.

Download: YouTube v2.0 Plugin for Showtime PS3 Media Player / GIT

Below are the changes, as follows:

The first major release of the plugin was more than a year ago and now it is time to renew that experience and provide a improved experience that I hope everyone will enjoy. Please see carefully the changelog so you know exactly what's new:

  • Add: Support for Continuous Playback (needs to activate setting in Showtime's Video Playback Settings)
  • Add: Main Page now supports order customization (like Showtime Main Page)
  • Add: Youtube Disco
  • Add: Native Sorting (by Publish Date, by Views, by Title (incrementing/decrementing) and as Default)
  • Add: Youtube EDU
  • Add: Featured feed in Youtube Movies
  • Add: New User Profile Interface/Experience
  • Add: New Advanced Mode for videos
  • Add: Choose what feeds to show in User Profile
  • Add: Header buttons in Oceanus skin plugin
  • Add: Item Menu:
  • Like/Dislike video
  • Comment video
  • Add to Favorites
  • Add to Watch Later
  • Related Videos
  • Response Videos
  • Redirect to Movie (if video is a known trailer)
  • Trailers (if video is a movie)
  • Redirect to a Show (if video belongs to a Show)
  • Redirect to the Show Season (if video belongs to a Show Season)
  • Fix: Video Playback
  • Fix: Some videos would fail due to some RegEx differences
  • Fix: Videos that are no available don't show friendly error message
  • Fix: The plugin would load additional pages of a feed that didn't contain entries
  • Fix: User Favorites didn't work
  • Improvement: Updated video metadata for support in Oceanus skin plugin
  • Improvement: More flexibe Youtube Search
  • Improvement: Don't show login popup in search

v2.25 Changelog:

  • Add: Add video to existing playlist (available in item menu in video listing and in Actions in Advanced Mode)
  • Add: Itemhook "Search in Youtube" for video entries in Showtime (in item menu,
    you can use this feature to search for videos in Youtube given any title of a video item in Showtime) (requires 4.3.261)
  • Add: Show debug information if setting is enabled

2.2.1

  • Fix: Search for space separated queries

v2.2 Changelog:

  • Add: Support for Live Streaming videos using HLS
  • Add: Show videos that authenticated user liked
  • Add: Searchers for API v3 (old searchers are still active)
  • Add: Authentication for API v3
  • Add: New URI routes for video playback
  • Add: My Activity (provides recommendations, videos that users subscribed liked/favorited)
  • Add: Subscribe to User in User Profile
  • Add: Initial support for Guide Categories
  • Add: Initial support for Video Categories (old "Browse Videos" section)
  • Add: Video Advanced Mode actions: Like, Dislike, Add to Favorites, Add to Watch Later, Comment
  • Add: Show more information for videos in pages using API v3 (enable in Settings)
  • Enhancement: Improved User Profile
  • Enhancement: Started work to upgrade plugin from API v2 to v3

As you may see several things that were being asked since the first release are now here, fresh and ready to be used.

Showtime Plugin Youtube changes:

  • The new Home Screen, using SELECT + Arrows in PS3 you can customize the order of the items.
  • The improved item listing.
  • The new Youtube Search screen providing easy to use search for everything you want.
  • The new advanced mode in videos, cleaner and easier to use.
  • The new User Profile screen, featuring an easy to use and fast experience.

Installation:

Go to Plugin Central (puzzle icon in home screen) inside Showtime and download the plugin.

Special thanks:

  • andoma: for creating Showtime and maintaining it
  • Tyrant: for beta testing the plugin and giving fresh ideas

Note:

  • When testing, my Beta Tester (El Tyrant) found that the resume videos of Showtime does not work properly with the plugin, so please disable the following settting: Video playback -> Resume video playback

FAQ:

1. I found some issues, had crashes or have suggestions, where can I inform the developer about them?

At lonelycoder.com/redmine/projects/showtime.

Finally, below is a brief tutorial on how to log out from the Showtime Plugin YouTube from facanferff (via psx-scene.com/forums/content/tutorial-log-out-showtime-plugin-youtube-2841/) for those interested:

Recently a user in IRC (EFNET, #showtime) asked how to log out from the current user in Youtube plugin for Showtime, so here is a tutorial for it. This method is only needed for versions 1.5 and up where it uses OAuth2 as the main authentication method. This method works for the standalone version.

The process is really simple and may be done via Multiman:

1. Go to the jsstore folder of showtime.

  • In PS3: /dev_hdd0/HTSS00003/USRDIR/settings/settings/jsstore
  • In Linux: /home//.hts/showtime/settings/jsstore

2. Delete the file called youtube-oauth2.

3. Open Showtime and it will no longer use your old user account, so you may authenticate again for another user account.

FAQ

1. Now every time I try to play a video, it fails with random errors, what is happening?

With the recent website changes featuring a new layout, the plugin is unable to play any video. A fix for it is being worked on and will be available once it is possible and it is confirmed to be stable. Sorry for this.

2. I found the plugin crash for some reason, what can I do?

The simplest answer is report it, you can either use lonelycoder.com/redmine/projects/showtime/ or github.com/facanferff/showtime-plugin-youtube/issues. Please report any issue you encounter, if you don't I may not face it so I will not fix it by the simple aspect that I won't know about it.








Stay tuned for more PS3 Hacks and PS3 CFW news, follow us on Twitter and be sure to drop by the PS3 Hacks and PS3 Custom Firmware Forums for the latest PlayStation 3 scene updates and homebrew releases!

Comments 543 Comments - Go to Forum Thread »

Quick Reply Quick Reply

PS3 News's Avatar
#533 - PS3 News - 18w ago
Following up on the previous updates, today PlayStation 3 homebrew developer Andreas Oman updated the Showtime PS3 Media Player testing builds alongside some MultiMAN PS3 PKG updates by deank with details below.

Download: showtime-gh-4.3.576-gb49e21c4.pkg / showtime-4.3.576-gb49e21c4.pkg / showtime-4.3.576-gb49e21c4.self / Showtime 04.03.582 [CEX].pkg / Showtime 04.03.582 [DEX].pkg / showtime-gh-4.2.pkg / showtime-4.2.pkg / showtime-4.2.self / Showtime-4.3.601-g7b1aca53.pkg.471.v4.3.601.pkg

v4.3.576 & Recent Changes

ps3: Fix bug in litecoin miner causing it to be a lot less efficient than it should be
ps3: Relax memory warning thresholds a bit. Now that we use TLSF it's much less of a problem
stos: sync() after critical writes to disk
Fix crash in UPNP code Fixes #1773
js: Add support for plugins to set cookies directly
ps3: Add a miner
Transfer Copyright to Lonelycoder AB
prop: Disable prop subscription stats
prop: Redeuce memory usage by reusing compile time strings during prop symlinking
prop: Correctly handle settings of a PROP_DIR to some other value
glw/view: Improve trace() function a bit
prop/core: We must use prop_ref_dec_locked() when prop_mutex is held Fixes #1797
ps3: Make it possible to edit discovered FAT and HDD sources from settings
ps3: Add NTFS support
httpclient: Fix broken cookie domain validation Fixes #1794
Add so called 'managed services'
Huge rework of prop tree symbolic links
Add missing title and contents for network discovered services
Add str_cleanup() helper
ps3: Add some mutex debug helpers
Update fr_FR.lang
Update it_IT.lang
glw: Fix problem when assigning 'args' attribute with a non-prop p Fixes #1776

From aldostools: Build 4.3.582 has two important changes since 4.3.576:

ps3: Fix bug causing NTFS drives not being able to be remounted
ps3: Show CPU and RSX temperature in sysinfo (Press L3 to view)

For more details: github.com/andoma/showtime/commits/master

From deank: I compiled showtime 4.3.582 for mM... It is available in the WEB column of multiMAN and also from the VIDEO column -> Update. Standalone versions are in the web column.

Update: v4.3.601 Testing Changelog:

subtitles/sub: Watch out for division by zero
glw: Fix minor memleak (one per glw session)
Fix play/pause issues
glw: Rework how we auto-rescale UI
audio: Fix invalid assert()
ftpserver: Add support for "OPTS UTF8 ON/OFF" and report is as a FEATure
Resolve prop for track in playqueue
audio: When flushing pipeline we must also flush resampler
builtin-osk: Add '@' character and close when user press back/exit button
Drop shoutcast support
httpserver: Send encoding as UTF-8 in various places
Fix 'use after free'
miner: Drop debug info
ps3: Fix bug causing NTFS drives not being able to be remounted.
ps3: Show CPU and RSX temperature in sysinfo (Press L3 to view)

More PlayStation 3 News...

PS3 News's Avatar
#532 - PS3 News - 20w ago
Following up on the previous update, today PlayStation 3 developer facanferff has made available a Quickstart to PS3 Plugin Development in Showtime with details below.

To quote: Since a long time ago, some users have requested me to write a tutorial so they could create their own Showtime plugins. This is an initial attempt to it, I hope you like. If I make some mistake, I'm sorry, I'm not a teacher.

Overview

Before we get our hands dirty, it’s important to explain some little things that might help you later in making your own plugins. Plugins for Showtime (also known as Apps) are exclusively written, at the moment, in Javascript. To bring plugins to life, Showtime uses a Javascript engine called Spidermonkey (as of now, Showtime uses Spidermonkey 1.8.0-rc1). To learn more about this engine, you may go to developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey.

If you ever did web development, you may wonder if the Javascript API that work in normal web browser might work here, well, the answer is no. Due to this, you will not find things like DOM or AJAX in your toolbox, but you may and should use the basic Javascript.

In this quickstart, I will assume the reader has good understanding of Javascript. If you don’t know it, you may check the several resources available online/offline. From these, I recommend check this: codecademy.com

The Showtime plugins’ job is to respond to browse and search requests and populate the internal data model with the actual information to be shown to the user via Showtime’s user interface(s).

Since there are different types of plugins, I will focus in this tutorial in only a type, plugins that browse content in the web and show it to user (e.g. Youtube plugin).

Structure of a plugin

Every plugin lives in a directory of their own. From the several files this directory may have, you need to have at least one file in the root of the plugin, plugin.json, which contains information about the plugin and the author. You may use sub-directories and custom names for other files in order to organize it better.

plugin.json

plugin.json is a JSON (json.org) encoded text file containing information about the plugin and its author. Example of a plugin.json file (from the Channel9 plugin):

Now it’s time to learn more about each field and which ones are required for every plugin:

Getting Started

To run a plugin in a development environment, you may call from a terminal:

The flag –p means that you want to load a plugin in development environment.

If you ran this already, you might get the following error: This will output something like: plugins [ERROR]: Unable to load development plugin: testplugin Unable to load testplugin/plugin.json -- File not found. This means or we don’t have a testplugin directory or we don’t have a plugin.json inside it. To create the directory do:

Now, to edit the plugin.json, open the file testplugin/plugin.json in any text editor that you like.
In there, let’s make our initial plugin.json:

With this, we specified that the plugin testplugin uses Javascript engine, has an ID ‘testplugin’ and the script is ‘testplugin.js’.

Whenever you want to reload the plugin you can use Shift+F5 in Showtime. This is helpful when you make changes to a plugin already in development environment inside Showtime, without the need of restarting Showtime. Even if the plugin gave an error, you may use this to try to reload it. When you reload it, all hooks and resources associated to the plugin are removed. This phenomenon happens also when a user removes a plugin from Showtime.

In case you are already in a page that belongs to the plugin itself, Showtime will reload the plugin and reload the page itself.

Now open your testplugin/testplugin.js in a text editor. Since we want to have a plugin that lives forever (so it can be called anytime) we need to have a scope where all local variables will live and also need to remember ‘this’ which is, when the script is invoked, a plugin object created by Showtime itself (showtimemediacenter.com/projects/showtime/wiki/JSAPI_plugin).

So, let’s edit this file:

Reload the plugin now with Shift+F5, if you look in the terminal windows from which you opened Showtime, you will find a line saying ‘Hello, Showtime XXX’ where XXX is your current Showtime version that was obtained via showtime.currentVersionString .

Routing an URI to the plugin

Since our plugin will respond to browse requests we need to have an URI associated to it. An URI is something like a URL you use to browse the Internet, but in this case it is used to browse in Showtime. Every plugin reservers URI space starting with the plugin’s ID specified in plugin.json. These URI routes registered by plugins have higher priority than URI routes that Showtime itself handles, so you can create an URI route like it is in a web browser (e.g. youtube.com)

With this new knowledge let’s make it in use (edit it to match this code):

Now, reload the plugin and if you type “testplugin:hello” in the search input field on Showtime’s home page, you will notice Showtime will open a new page with only a loading symbol, but in the terminal it will show the message provided to showtime.print.

A look in a real plugin

For this tutorial, I decided to use a real plugin made by me, which is called Videocopilot. The plugin source is located at github.com/facanferff/showtime-plugins/tree/master/videocopilot and its a plugin for Web site videocopilot.net.

I will not discuss the plugin.json of the plugin (https://github.com/facanferff/showti...ot/plugin.json) in this tutorial.
The lines of code or numbers of line are relative to version 0.9 (the most updated version at this moment).

Lets see then the plugin script (github.com/facanferff/showtime-plugins/blob/master/videocopilot/videocopilot.js).

To make Showtime provide a link in home page to the plugin’s start page we need to create a service:

Lets check each argument given to plugin.createService:

  • 1st: “Video Copilot” is the display name of the service
  • 2nd: PREFIX (which is a global variable specified as “videocopilot” + “:start” is the initial route of the service (the URI where is located the home page of the plugin)
  • 3rd: “video” tells Showtime this plugin provides video resources
  • 4th: true means the service should be enabled immediately, making it visible to user and
  • 5th: plugin.path (gives you the full path to the plugin’s root directory) + “logo.png” is the path to an image that identifies the plugin.

Since we registered the home page’s URI route, we need to specify what does that URI route:

Here, plugin.addURI registers a new URI route, in this case called “videocopilot:start” and startPage is the function to be called when this route is open by user request. The function provided to addURI should accept at least one argument, where the 1st one is a page object created by Showtime and used to manipulate the page.

function startPage:

Here, page.appendItem will append a new item to the current page. Lets see the arguments:

  • 1st: PREFIX + ':browse:' + escape('http://www.videocopilot.net/tutorials/') + ':undefined' , is the URI route that should be called when the user clicks this item
  • 2nd: type of item, from the several ones, the most used are: directory, used to specify this item will open a new page to browse contents; and video that specified this item will open a video resource
  • 3rd: metadata for the item, you may provide any information about this item as you want. The most used are: title, title of the item; icon, image to be shown associated to the item; description, a description of the item

Means this page is a directory to browse content.

Tells Showtime that the contents of this page are “items”, in most cases, you want to use this one, we will use it for this tutorial.

Tells Showtime that we don’t want anymore the loading symbol to be shown to user.

Function getVideoList:

Here, showtime.httpGet is a function you may call to do a GET request to a page (e.g. to obtains its source code) and .toString() is to convert its response to a Javascript String to manipulate.

plugin.addURI(PREFIX + ":video:simple: (.*)", function(page, link):

This is a Javascript object where we specify only the title of a video (displayed in video playback) and sources is an array where each object contains at least the url (e.g. the video’s url).

Here, page.source is the way to tell Showtime what we want to reproduce. Since we want to play a video we need to put always “videoparams:” before the parameters of video as specified before encoded in a JSON string.

This finally tells Showtime we have a video, so Showtime can handle everything to prepare video playback.

This function is used to add continuously items to a page. In the current version of the tutorial, I will not explain this, so whenever you want to show more items (e.g. of a second page) use page.appendItem and pass what you need.

This function adds a searcher to Showtime that can be used when a user searches for something (not a URI route) in search input field in Showtime’s home page. This function accepts 3 arguments:

  • 1st: title of the searcher, shown to user when searching something
  • 2nd: image of the search, also shown to user
  • 3rd: function that receives a page and query arguments (page is the same as specified before in the tutorial and query is a string containing what to search). This function is runs always whenever a user searches for something.

Note: In the function passed to plugin.addSearcher you need to specify somewhere the number of found entries via page.entries, otherwise Showtime will not show your searcher to user for that query.

I recommend you study carefully the code at: github.com/facanferff/showtime-plugins/blob/master/videocopilot/videocopilot.js

Publishing plugins

You may check showtimemediacenter.com/projects/showtime/wiki/SPMC for all details about it.

Bibliography

showtimemediacenter.com/projects/showtime/wiki/PluginDevelopment (maintained by Andreas Oman (andoma), Fábio Ferreira (facanferff) and Leonid Protasov (lprot))

Thanks

andoma: for creating Showtime

Final notes

I hope, you learned a little about plugin development in Showtime with this small tutorial. This tutorial is far away from being finished, I just wanted to give you an initial overview to the process of creating plugins for Showtime.

With a look in a real plugin, I believe you have now the fundamental tools to study better existing plugins and create new plugins. Whenever I can, I will try to update this tutorial to make it more complete and easier to understand.

For a reference of the functions Showtime provides I recommend you check showtimemediacenter.com/projects/showtime/wiki/JSAPIREF

And to conclude I leave here a screenshot of plugin TMDb so you can see the potential you can get from a plugin (below).

I hope you liked, facanferff.

More PlayStation 3 News...

B0rm0t0s's Avatar
#531 - B0rm0t0s - 26w ago
wow, amazing

PS3 News's Avatar
#530 - PS3 News - 26w ago
Following up on the previous updates and his Haider ENG2AR (Arabic) v1.03 PS3 CFW 4.46, this weekend PlayStation 3 developer Haider.Kiara has made available Showtime Arabic with details below.

Download: Showtime Arabic by haider.rar / Convert Sub arabic srt for ps3.rar

To quote: Hi all. Today I finished translation Showtime with some features

Features

  • added arabic language
  • support arabic subtitle (.srt)
  • added EarthLink TV (Only In Iraq)

Channels

  • Asian Series
  • Arabic Movies
  • EarthToon
  • Documentary
  • TV Shows Drama
  • TV Shows comedy
  • Sports (1,2,3,4,5,6,7,8,9,10)

Tutorial

How to convert .srt arabic to play on ps3 (you need use showtime above):





More PlayStation 3 News...

msteffes's Avatar
#529 - msteffes - 32w ago
I can play mkv file on my ps3 I have CEChH01 and also CECHK01, CECHL01 they all play them. I wish i coud get XBMC on the ps3 as a media player.













Affiliates - Contact Us - PS3 Downloads - Privacy Statement - Site Rules - Top - © 2014 PlayStation 3 News