Custom Embed handler For OneDrive files
Now that OneDrive is being used at CUNY, can we develop a way to handle embeds? Here is an example of the embed code that OneDrive suggests, using iframe:
<iframe src=”https://urldefense.proofpoint.com/v2/url?u=https-3A__cuny907-2Dmy.sharepoint.com_personal_vanbich-5Ftran74-5Flogin-5Fcuny-5Fedu_-5Flayouts_15_Doc.aspx-3Fsourcedoc-3D-257B980914bd-2D4076-2D4c91-2Dafba-2D9ebce95f14ec-257D-26amp-3Baction-3Dembedview-26amp-3BwdAr-3D1.7777777777777777&d=DwIFAw&c=2tStSn3Yyb7CMXxZW9nuG-Sh-vz6mhnySBmFi7HdCsM&r=S-XAbz96Ftx1w54qbjGC-9X8Y9sp29fMCNAnJqAwcdhTMKxITkW6cVsRjSmfprTn9-PIl3BWbBpd9mBdiuIbfA&m=z452bsGqiTFRV7dBWW6d31QAVhbamKito7p_pDrdy1M&s=YxQ5T1jrZNkaT_onebYQ-V-sVckVqH_0_1hGwZY0mwI&e= ” width=”350px” height=”221px” frameborder=”0″>This is an embedded Microsoft Office presentation, powered by Office.</iframe>
#1 Updated by Boone Gorges 8 months ago
- Status changed from New to Reporter Feedback
We should be able to do something, but there's something funky about the sample code you've shared: src attribute is wrapped by ProofPoint.
To make this work, I need to be able to determine how the regular URL (or some other unique identifier that's easy to get from the page) of a OneDrive item is related to the iframe code. Unfortunately, the sample URL here appears to be non-public. Scott, do you have an example of a CUNY OneDrive presentation that's publicly available, so that I can do some comparisons?
#2 Updated by scott voth 8 months ago
Here is a onedrive url that is public - https://cuny907-my.sharepoint.com/:p:/g/personal/vanbich_tran74_login_cuny_edu/Eb0UCZh2QJFMr7qevOlfFOwBpG1IZIPPqZ23fWbFd5lHJw?e=NQEw41