Your Digital Media Has Never Looked So Good

 
perrycbrown
Topic Author
Posts: 6
Joined: Mon Jan 22, 2018 11:34 am

Question about accessing several videos' info within a Video playlist

Thu Aug 23, 2018 12:46 pm

After I have created a playlist and assigned it to a Video node, how do I access the info of each video within the playlist, as the playlist moves from video 1, to video 2, to video 3, etc. ?

I'm already watching the Video.contentIndex field :
m.Video.ObserveField("contentIndex", "OnPlaylistIndexChange")


...but when I examine m.Video or m.Video.content within sub OnPlayListIndexChange( ), I'm not seeing anything that looks like a listing of the individual videos within the playlist.

I need to know the individual videos' info so I can log tracking info to Boxcast, where the vids originate, and thus track each video within the playlist separately in Boxcast.

Thanks for any help...
 
norcaljohnny
Posts: 99
Joined: Thu Apr 13, 2017 11:00 pm

Re: Question about accessing several videos' info within a Video playlist

Thu Apr 18, 2019 11:22 pm

Not sure what all info you need but you can use something as simple as..

sub OnPlaylistIndexChange()
  print m.Video.content
end sub



Which will return something similar to this.


  <Component: roSGNode:ContentNode> =
  {
      change: <Component: roAssociativeArray>
      focusable: false
      focusedChild: <Component: roInvalid>
      id: ""
      HDPOSTERURL: "https://archive.org/download/TheBobNewhartShow/TheBobNewhartShow.thumbs%2FThe%20Bob%20Newhart%20Show%20-%20Season%201%2FThe%20Bob%20Newhart%20Show%20s01e01%20-%20Fly%20the%20Unfriendly%20Skies_001463.jpg"
      SHORTDESCRIPTIONLINE1: ""
      STREAMFORMAT: "mp4"
      TITLE: "2 The Bob Newhart Show - Season 1 The Bob Newhart Show s01e01 - Fly the Unfriendly Skies"
      URL: "https://archive.org/download/TheBobNewhartShow/The%20Bob%20Newhart%20Show%20-%20Season%201%2FThe%20Bob%20Newhart%20Show%20s01e01%20-%20Fly%20the%20Unfriendly%20Skies.mp4"
  }
 
bryandunbar42
Posts: 6
Joined: Fri Feb 23, 2018 10:19 am

Re: Question about accessing several videos' info within a Video playlist

Wed May 01, 2019 1:34 pm

You need to access the children of m.video.content. I.e. m.video.content.getChild(m.video.contentIndex)

Who is online

Users browsing this forum: No registered users and 8 guests