Forum Discussion

RyanStanford1's avatar
RyanStanford1
Qrew Captain
6 years ago

stream quickbase video file attachment

I'm working on adding a custom button that will be present in a embedded record, and when this button is clicked, it will open a pop up and stream the video attachment in that same record.

I'm having issues with having the click event tracking the embedded button, and the actual notation for the source link for the video.

any help would be greatly appreciated.

Thanks in advance.
  • You can use the iframe technique from the magic buttons app.

    create a formula rich text field, [iframe], and give it the following code:
    "<video src = " & URLRoot() &"up/"& Dbid() &"/a/r"& [Record ID#]&"/e9/v0\" width=\"500\" controls>\n</video>"

    substitute the 9 in 'e9' for the field ID# of your attachment field.




    create a report link field, [link], and set the field relationship as follows:


    In my example the app name is QB Developer Resources and the table name is Tests; set the relationship to match your app and table name.

    Next add the link field to your form and it will display the video and the user can play the video on the form.




    This function also works for your table views (here both videos were playing simultaneously):


  • Hey Adam, yes those will work to have the video/file/image showing in a field...
    My usage isn't in an actual itself, but actually shows as a pop up when the button is clicked.
     
    • AdamKeever1's avatar
      AdamKeever1
      Qrew Commander
      Glad its working for you. I wonder if the pop up is a web browser setting? I use Chrome with default settings and it plays in the form or in the table.
    • RyanStanford1's avatar
      RyanStanford1
      Qrew Captain
      Nope, the popup is custom HTML code I wrote myself. It's the user experience we were looking for.
    • AdamKeever1's avatar
      AdamKeever1
      Qrew Commander
      Nice. Good job. Do you mind sharing the code for reference?