Forum Discussion
ShreyaAgrawal
Microsoft
Oct 23, 2023Embed Code - would it change if the video is edited ?
I am trying to use Embed code from Stream video into our webpage using an iFrame , following this doc Embedding Stream content in third-party sites - Microsoft Support The video plays perfectly fi...
ShreyaAgrawal
Microsoft
Oct 26, 2023Thank you. This is helpful.
Can you elaborate on question 3 ? Is there any API or any way possible to get the embed code of a stream video even if the video filename or the location keeps changing ?
Can you elaborate on question 3 ? Is there any API or any way possible to get the embed code of a stream video even if the video filename or the location keeps changing ?
Marc Mroz
Microsoft
Oct 26, 2023The only way the Graph API can know of a specific file is by drive id and drive item. Those change under the same circumstances I described above.
So file name change is fine, move to new folder within the same site is fine, the embed code and drive item and drive id don’t change. But if you move across sites the both the emended code and graph drive item and drive id will change.
To track a file across site moves the only thing I can think of is to run a search for the file and hope you find it. There is no universal id for SP or ODB files, the id is unique within a site only.
So file name change is fine, move to new folder within the same site is fine, the embed code and drive item and drive id don’t change. But if you move across sites the both the emended code and graph drive item and drive id will change.
To track a file across site moves the only thing I can think of is to run a search for the file and hope you find it. There is no universal id for SP or ODB files, the id is unique within a site only.