var iframeUrl = this.props.context.pageContext.web.absoluteUrl;
iframeUrl += '/portals/hub/_layouts/15/VideoAssetDialog.aspx?list=&IsDlg=1';
Video portal url is: {RootTenantSite}/portals/hub/, not {someWeb}/portals/hub/
I suppose a good option is to use "Video REST API" and the method {RootSite}/_api/VideoService.Discover, it returns "VideoPortalUrl" and "IsVideoPortalEnabled" params.
In addition, it would be great to add a configurable parameter with the video portal url to IPropertyFieldOfficeVideoPickerProps.
If webpart with PropertyFieldOfficeVideoPicker is added not at the tenant root site collection, the picker can't open a video dialog.
The problem is here: https://github.com/OlivierCC/sp-client-custom-fields/blob/master/src/PropertyFieldOfficeVideoPickerHost.tsx#L246
Video portal url is: {RootTenantSite}/portals/hub/, not {someWeb}/portals/hub/
I suppose a good option is to use "Video REST API" and the method
{RootSite}/_api/VideoService.Discover
, it returns "VideoPortalUrl" and "IsVideoPortalEnabled" params.In addition, it would be great to add a configurable parameter with the video portal url to IPropertyFieldOfficeVideoPickerProps.
Thanks a lot. Max.