The Entity Relationship feature connects your Browser or Mobile entities with Media Streaming entities. When video content plays in your web or mobile application, you can track the data flow to the media player entity and monitor cross-platform streaming performance.
With this feature, you can:
- Monitor video playback performance across applications
- Identify performance bottlenecks in video delivery
- Analyze user engagement with video content
- Track dependencies between services and media streaming infrastructure
- Visualize entity relationships in service maps
- Correlate data between application and media streaming telemetry
- Troubleshoot video playback issues
Prerequisites
Before establishing entity relationships, ensure you have:
- An active Browser or Mobile monitoring entity
- An active Media Streaming monitoring entity
- Parent app ID configured in your media streaming instrumentation
Configure Streaming Media & Ads with browser/mobile
Configure parent application id
Pass your Browser or Mobile entity's application ID and media account ID as custom attributes when initializing the media streaming tracker. These custom attributes establish the relationship between entities.
Find your Browser or Mobile app ID:
Navigate to one.newrelic.com > All entities
Select your Browser or Mobile entity
Copy the application ID from the entity details or URL
For Browser applications:
// Initialize the media streaming tracker with custom attributesconst options = {info: {beacon: "bam-cell.nr-data.net",applicationID: "YOUR_MEDIA_APPLICATION_ID",licenseKey: "YOUR_LICENSE_KEY"},customData: {parentAppId: YOUR_BROWSER_APP_ID, // Browser entity app IDmediaAccountId: YOUR_MEDIA_ACCOUNT_ID // Media account ID}};const player = videojs('my-video');const tracker = new VideojsTracker(player, options);For Android applications:
// Initialize the media streaming tracker with custom attributesMap<String, Object> customData = new HashMap<>();customData.put("parentAppId", YOUR_MOBILE_APP_ID); // Mobile entity app IDcustomData.put("mediaAccountId", YOUR_MEDIA_ACCOUNT_ID); // Media account IDMap<String, Object> config = new HashMap<>();config.put("applicationID", "YOUR_MEDIA_APPLICATION_ID");config.put("licenseKey", "YOUR_LICENSE_KEY");config.put("customData", customData);NewRelicVideoTracker tracker = new NewRelicVideoTracker(config);tracker.init(player);For iOS applications:
// Initialize the media streaming tracker with custom attributeslet customData: [String: Any] = ["parentAppId": YOUR_MOBILE_APP_ID, // Mobile entity app ID"mediaAccountId": YOUR_MEDIA_ACCOUNT_ID // Media account ID]let config: [String: Any] = ["applicationID": "YOUR_MEDIA_APPLICATION_ID","licenseKey": "YOUR_LICENSE_KEY","customData": customData]let tracker = NewRelicVideoTracker(config: config)tracker.initialize(player: player)중요
The
parentAppIdandmediaAccountIdmust be passed as custom attributes. TheparentAppIdmust exactly match the application ID of your Browser or Mobile entity. A mismatch will prevent the relationship from being established.
Entity creation
- Navigate to New Relic and create/verify your Browser entity is active
- Create your Media Streaming entity in Streaming Video & Ads
- Confirm both entities are reporting data successfully
Establish relationship
- Deploy your application with the parent app ID configuration
- Generate user activity that flows from browser/mobile to media streaming
- Wait 1-2 minutes for the relationship to be established automatically
Verification
- In Browser entity:
- Navigate to your Browser entity
- Check the Dependencies section
- Verify the media streaming entity appears as a connected service
- In Service maps for Streaming Video & Ads:
- Navigate to your Media Streaming entity
- Verify the parent relationship is visible in service maps
- Access the Service Map view
- Confirm both entities are displayed with connection lines
- Use the query
FROM Relationship SELECT * where targetEntityGuid = '<media_streaming_entity_guid>'to verify the relationship type shows as connects_to
Monitoring & analysis
- Use Service Maps to visualize the complete user journey
- Monitor dependency health and performance metrics
- Cross-reference data between related entities for comprehensive analysis