TVideoGrabber.Facebook_GoLive_ReturnStreamURL

Prev

Next

TVideoGrabber

Methods

 




Returns the streaming URL of a Facebook live session


Declaration
function Facebook_GoLive_ReturnStreamURL (EndPointURL: string; Title: string; Description: string; Status: string; AccessToken: string; caBundlePath: string): string;


System::UnicodeString __fastcall Facebook_GoLive_ReturnStreamURL(System::UnicodeString EndPointURL, System::UnicodeString Title, System::UnicodeString Description, System::UnicodeString Status, System::UnicodeString AccessToken, System::UnicodeString caBundlePath);

Description

Used to obtain the RTMP URL of a Facebook endpoint, in order to pass it to the Multipurpose Encoder for Facebook live streaming.

C# sample code:

string strEndPointURL, strAccessToken, strRTMPURL;

strEndPointURL = "https://graph.facebook.com/v23.0/64572161632085/live_videos";

strAccessToken = "EAALucaCaoyABPAyE9rl4agr5hZB6YjwVxUS9bVg2hCcR089kiStO1A10smuVFxZAZAyspzW7Uh6MlWZCocsv7pYy2AE4tZCnLK4iVcAcYkjOHHWNUD5omifalyMeL8ZBA0qm53TlsnDmGjVTtlpiZBMyx3ggHZBKkuuZCDs9TNN9IlUp8z5nWAoNFsZCJq8pH8wvBGUDfFOV4y18ZBS4C5CZC7lUrhlaogWB8XS1xAtZC3WDJ2t4efsuurGeZCRQo3tLYZD";

// Assuming you have a method similar to the helphi function:

strRTMPURL = VideoGrabber.Facebook_GoLive_ReturnStreamURL(

strEndPointURL,

"fb streaming test",

"my description",

"LIVE_NOW",

strAccessToken,

""

);

Delphi sample code:

procedure TestFacebookGoLive;
var strEndPointURL, strAccessToken, strRTMPURL: string;
begin
strEndPointURL := 'https://graph.facebook.com/v23.0/64572161632085/live_videos';
strAccessToken := 'EAALucaCaoyABPAyE9rl4agr5hZB6YjwVxUS9bVg2hCcR089kiStO1A10smuVFxZAZAyspzW7Uh6MlWZCocsv7pYy2AE4tZCnLK4iVcAcYkjOHHWNUD5omifalyMeL8ZBA0qm53TlsnDmGjVTtlpiZBMyx3ggHZBKkuuZCDs9TNN9IlUp8z5nWAoNFsZCJq8pH8wvBGUDfFOV4y18ZBS4C5CZC7lUrhlaogWB8XS1xAtZC3WDJ2t4efsuurGeZCRQo3tLYZD';
strRTMPURL := VideoGrabber.Facebook_GoLive_ReturnStreamURL(strEndPointURL, 'fb streaming test', 'my description', 'LIVE_NOW', strAccessToken, '');
if copy (strRTMPURL, 1, 5) <> 'ERROR' then begin
showmessage(strRTMPURL);
end;
end;
end;