Hi @sheldon
As I see it there is no general solution for this as the .applies
is used guess which panel to apply to an unknown object. Normally you would not use Video on any url.
But you might be able to create a CustomVideo
class supporting your use case. Something along the lines of
import panel as pn
class CustomVideo(pn.pane.Video):
@classmethod
def applies(cls, obj):
if isinstance(obj, str) and str.startswith("https://some-user.s3.amazonaws.com/media/video/"):
return True
return super(pn.pane.Video, cls).applies(obj)
CustomVideo("https://some-user.s3.amazonaws.com/media/video/457874dsfsd-dfdsfd-erer-45454-dfdf/original_safeguarded?AWSAccessKeyId=ASDFJDFD34384739784DFD&Signature=SDFSD545345DFGDFG&Expires=162469845984")
Let me know if it works.