Handling currentBroadcastStartTime

PLAT-1762
And yet, it makes no sense to set the field from the media server and reset it from the server side.

T.

From: Avi Bueno [mailto:notifications@github.com]
Sent: Sunday, October 26, 2014 10:36 AM
To: kaltura/media-server
Cc: Jonathan Kanarek
Subject: Re: [media-server] Handling currentBroadcastStartTime (#50)


In KalturaMediaServer/src/com/kaltura/media/server/managers/KalturaLiveManager.java:

> +            onEntryPublished( liveEntryCache, serverIndex, applicationName );

> +     }

> +

> +     protected void onEntryPublished(LiveEntryCache liveEntryCache, final KalturaMediaServerIndex serverIndex, String applicationName) {

> +            if ( liveEntryCache != null && liveEntryCache.getLiveEntry() != null ) {

> +                    KalturaLiveEntry liveEntry = liveEntryCache.getLiveEntry();

> +                    KalturaLiveEntry updatedLiveEntry;

> +

> +                    try {

> +                            updatedLiveEntry = liveEntry.getClass().newInstance();

> +                    } catch (Exception e) {

> +                            logger.error("failed to instantiate [" + liveEntry.getClass().getName() + "]: " + e.getMessage());

> +                            return;

> +                    }

> +

> +                    updatedLiveEntry.currentBroadcastStartTime = (int) (new Date().getTime() / 1000);

@tan-tan-kanarek<https://github.com/tan-tan-kanarek> This was wrongly merged to 3.0.9, reverted in #56<https://github.com/kaltura/media-server/pull/56> and re-merged to 3.0.9-WEBC in #57<https://github.com/kaltura/media-server/pull/57>.

—
Reply to this email directly or view it on GitHub<https://github.com/kaltura/media-server/pull/50/files#r19379917>.