(video_url)
| 446 | } |
| 447 | # Extract video ID and platform from URL |
| 448 | def get_video_id_from_url(video_url): |
| 449 | |
| 450 | try: |
| 451 | if 'vimeo.com' in video_url: |
| 452 | video_id = video_url.split('/')[-1].split('?')[0] |
| 453 | return video_id, 'vimeo' |
| 454 | else: |
| 455 | return video_url, 'direct' |
| 456 | except Exception as e: |
| 457 | st.error(f"Error processing video URL: {str(e)}") |
| 458 | return None, None |
| 459 | |
| 460 | # Format time in seconds to URL compatible format |
| 461 | def format_time_for_url(time_in_seconds): |
no outgoing calls
no test coverage detected