Currently, when there is a YouTube URL configured on the track, we
automatically set the layout of the track page as "widescreen".
This implies that we hide some menus and adapt the layout to display the full
video player.
However, in the XML template of the track view, we only display the video
player if there is a YouTube URL configured AND one or more of those conditions
is respected:
- The track is configured as a "YouTube Replay"
- The track is "coming soon" (< 30 minutes)
- The track is live
- The track is done
This is done to match the two behaviors and get a consistent display.
Task-2643147
closesodoo/odoo#76296
X-original-commit: bfb692dd5c6480841d5c6fb1e54dba1b4bd928ab
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
PURPOSE
Clean organization and models linked to Event Online feature introduced in
semi stable saas-13.3 at odoo/odoo@981f95bbf4 and odoo/enterprise@14722028ae
Also clean website event menu not being available in website event but only
in website event track, which implies some extra-code to manage it.
In short: merge website_event_online in website_event, website_event_track
_(online/session) in website_event_track.
RATIONALE
_online modules have been added to extend content of website_event and
website_event_track without having any impact on those module. First step
of cleaning is to move this content directly in base module.
track_session module is mainly a rewrite of track module. Second step of
cleaning is to move its content directly in website_event_track.
SPECIFICATIONS
Move all content of website event track session to website event tracK. It
was mainly of rewriting of views and can now be safely merged into the base
track module.
Update dependencies accordingly.
LINKS
Task ID-2319779
COM odoo/odoo#56067
ENT odoo/enterprise#12520
UPG odoo/upgrade#1654
RATIONALE
Events are sometimes held online, gathering a community. In this merge we
improve Event application to better support full-online events with improved
tracks, wishlists, chat rooms, ...
PURPOSE
Allow to include a youtube video / live stream on event tracks and update the
interface to show "online" capabilities.
SPECIFICATIONS
This commit improves the existing event.tracks to include the possibility to
configure a Youtube live stream or video.
The frontend view of the track was adapted accordingly to show the stream /
video instead of the track description when available.
At the end of the video, the track view will automatically suggest a next track
to the attendee in order to keep him looping through interesting tracks.
Those suggestions are based on an algorithm that tries to select the track that
would be the most interesting to this attendee based on his wishlist, similar
tags with current track, same room, ...
In addition, we automatically fallback to a Youtube thumbnail for tracks
website image when available.
We support two youtube modes
* streaming: start and end of video is detected based on youtube API;
* replay: boolean flag on track, telling the video is a static one, allowing
to know by advance the end of video, and to pre-compute thumbnail and give
early access if necessary;
KNOWN LIMITATIONS
Tracks do not hold any protection for payment-based tickets. Everything that
is published is available using standard ACLs. Content protection based on
tickets is currently not supported.
LINKS
Task ID-2252655 (Main Online Event task)
Task ID-2283735 (Talks -> Session upgrade)
Task ID-2283729 (Live/Youtube Tracks)
Co-Authored-By: Aurélien Warnon <awa@odoo.com>
Co-Authored-By: David Beguin <dbe@odoo.com>
Co-Authored-By: Thibault Delavallée <tde@odoo.com>